[Openstack] Running code on instance start/terminate

heut2008 heut2008 at gmail.com
Mon Mar 26 16:03:16 UTC 2012


with nova's notification system.you can get instance action messages
ref:http://wiki.openstack.org/NotificationSystem

2012/3/26 Rogério Vinhal Nunes <rogervn at dcc.ufmg.br>:
> Hello,
>
> I'm developing a application to work along with openstack. My application
> needs to keep track of all instances being started or terminated such as
> feeding it information about the location, status and other information
> about launched and terminated instances. The current version makes timed
> queries to OpenStack database, but this is showing to be a little consuming
> and inefficient, so I would like to add a portion of code to make OpenStack
> actively feed my application information whenever an instance changes its
> status or location.
>
> What is the least intrusive way to do that? It would be very nice if
> OpenStack provided a way to run code on these situations without actually
> changing any code, such as defining a directory of scripts to run in every
> instance status change.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>




More information about the Openstack mailing list