openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #09141
Re: Running code on instance start/terminate
-
To:
openstack@xxxxxxxxxxxxxxxxxxx
-
From:
Russell Bryant <rbryant@xxxxxxxxxx>
-
Date:
Mon, 26 Mar 2012 11:48:29 -0400
-
In-reply-to:
<CAKGNp+svM6i7W-sH4_T=Xffs6q+0yWvHsAxacRjrzftJtA9x7Q@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1
On 03/26/2012 10:15 AM, Rogério Vinhal Nunes wrote:
> 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.
Check out the notifications system:
http://wiki.openstack.org/NotificationSystem
--
Russell Bryant
Follow ups
References