sonata-nfv / son-gkeeper

SONATA's Service Platform Gatekeeper
http://www.sonata-nfv.eu
Apache License 2.0
2 stars 18 forks source link

Queue name to instantiate different between gtksrv and slm #228

Closed felipevicens closed 8 years ago

felipevicens commented 8 years ago

I notice that in SLM the name of the queue is: son-kernel.son-plugin.ServiceLifecycleManager.service.instances.create.f81d810c-2d97-11e6-bebf-0242ac10330c

And in the gtksrv is: service.instances.create

root@22d89fa55748:/# rabbitmqctl list_queues

Listing queues ...

son-kernel.son-plugin.ServiceLifecycleManager.platform.management.plugin.b6020807-825d-4c5e-a02e-4ac5f6802451.lifecycle.pause.f86e5c44-2d97-11e6-bebf-0242ac10330c 0

son-kernel.son-plugin.SonPluginManager.platform.management.plugin.*.heartbeat.f21dab74-2d97-11e6-85ed-0242ac10330b 0

son-kernel.son-plugin.ServiceLifecycleManager.platform.management.plugin.status.f81c96de-2d97-11e6-bebf-0242ac10330c 0

son-kernel.son-plugin.SonPluginManager.platform.management.plugin.register.f2162e58-2d97-11e6-85ed-0242ac10330b 0

son-kernel.son-plugin.ServiceLifecycleManager.platform.management.plugin.b6020807-825d-4c5e-a02e-4ac5f6802451.lifecycle.stop.f86f5da6-2d97-11e6-bebf-0242ac10330c 0

amq.gen-M2bVQo--ttm8IYQg21f0yQ 0

son-kernel.son-plugin.SonPluginManager.platform.management.plugin.deregister.f21a1af4-2d97-11e6-85ed-0242ac10330b 0

son-kernel.son-plugin.ServiceLifecycleManager.platform.management.plugin.register.f81fc322-2d97-11e6-bebf-0242ac10330c 0

service.instances.create 0

son-kernel.son-plugin.ServiceLifecycleManager.ssm.management.register.f81e7f26-2d97-11e6-bebf-0242ac10330c 0

son-kernel.son-plugin.ServiceLifecycleManager.service.instances.create.f81d810c-2d97-11e6-bebf-0242ac10330c 0

son-kernel.son-plugin.ServiceLifecycleManager.platform.management.plugin.b6020807-825d-4c5e-a02e-4ac5f6802451.lifecycle.start.f86d5560-2d97-11e6-bebf-0242ac10330c 0

mpeuster commented 8 years ago

Attention: Queues are not topics! The SLM is also using service.instances.create as its topic it subscribes/publishes to. So we are in sync here. The queue naming has nothing to do with the actual message routing.

cf.: https://www.rabbitmq.com/tutorials/tutorial-five-python.html

mpeuster commented 8 years ago

Btw. the subscription to service.instance.create is done here: https://github.com/sonata-nfv/son-mano-framework/blob/master/plugins/son-mano-service-lifecycle-management/son_mano_slm/slm.py#L88

jbonnet commented 8 years ago

@felipevicens @mpeuster can we close the issue than?