[Openstack] [openstack-dev] Does openstack have a notification system that will let us know when a server changes state ?
Gabriel.Hurley at nebula.com
Fri Oct 18 21:01:40 UTC 2013
The answer is "sort of". Most projects (including Nova) publish to an RPC "notifications" channel (e.g. in rabbitMQ or whichever you use in your deployment). This is how Ceilometer gets some of its data.
There is common code for connecting to the notification queue in Oslo (the "rpc" and "notifier" modules, particularly), but the exercise of actually setting up your consumer is left up to you, and there are various gotchas that aren't well-documented. Ceilometer's code is a reasonable starting point for building your own.
As this is an area I've been experimenting with lately I'll say that once you get it all working it is certainly functional and will deliver exactly what you're asking for, but it can be a fair bit of engineering effort if you're not familiar with how these things work already.
This is an area I hope can be improved in OpenStack in future releases.
Hope that helps,
From: openstack learner [mailto:openstackleaner at gmail.com]
Sent: Friday, October 18, 2013 11:57 AM
To: openstack at lists.openstack.org; openstack-dev at lists.openstack.org
Subject: [openstack-dev] Does openstack have a notification system that will let us know when a server changes state ?
I am using the openstack python api. After I boot an instance, I will keep polling the instance status to check if its status changes from BUILD to ACTIVE.
My question is:
does openstack have a notification system that will let us know when a vm changes state (e.g. goes into ACTIVE state)? then we won't have to keep on polling it when we need to know the change of the machine state.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openstack