[openstack-dev] Does openstack have a notification system that will let us know when a server changes state ?

Łukasz Jernaś deejay1 at srem.org
Sat Oct 19 16:24:18 UTC 2013


Like Gabriel said, take a look at Ceilometer for hints, unfortunately
there isn't much documentation on how to do it properly (well, you
could just stick with kombu as was proposed at
https://ask.openstack.org/en/question/2224/novaquantum-notifications-in-rabbitmq/)
But please note that, you'd need to set up a separate notification
topic, as the default ones are consumed by Ceilometer.

More support from oslo documentation would be great, especially about
the Service classes, as every project uses them a bit differently - I
spent way to long on trying to work it out and ended up borrowing some
code from ceilometer's collector.

Regards,
-- 
Łukasz [DeeJay1] Jernaś


On Fri, Oct 18, 2013 at 11:01 PM, Gabriel Hurley
<Gabriel.Hurley at nebula.com> wrote:
> 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,
>
>
>
> -          Gabriel
>
>
>
> 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 ?
>
>
>
> Hi all,
>
>
> 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.
>
> Thanks
>
> xin
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list