[openstack-dev] how can I know a new instance is created from the code ?

Stephen Gran stephen.gran at theguardian.com
Fri Nov 15 19:15:14 UTC 2013


On 15/11/13 18:55, terryxing wrote:
> Hi Dear All,
>
> I am wondering that is there any way in Openstack to know when  new
> instance is created ? is there any Python API to do this ? Since I want
> to monitor the instance creation event and trigger another event, thus,
> my program needs to be know whenever a new instance is created.
>
> I can run a daemon keep listening the nova-manage or other, when a new
> instance is created,  this daemon will know then let other program know
> to take some actions.

Nova can be configured to send notifications via MQ when actions occur. 
  Please see 
https://ask.openstack.org/en/question/2224/novaquantum-notifications-in-rabbitmq/ 
for an example.

Cheers,
-- 
Stephen Gran
Senior Systems Integrator - theguardian.com
Please consider the environment before printing this email.
------------------------------------------------------------------
Visit theguardian.com   

On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad   
Save up to 33% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access.
Visit subscribe.theguardian.com

This e-mail and all attachments are confidential and may also
be privileged. If you are not the named recipient, please notify
the sender and delete the e-mail and all attachments immediately.
Do not disclose the contents to another person. You may not use
the information for any purpose, or store, or copy, it in any way.
 
Guardian News & Media Limited is not liable for any computer
viruses or other material transmitted with or as part of this
e-mail. You should employ virus checking software.
 
Guardian News & Media Limited
 
A member of Guardian Media Group plc
Registered Office
PO Box 68164
Kings Place
90 York Way
London
N1P 2AP
 
Registered in England Number 908396

--------------------------------------------------------------------------




More information about the OpenStack-dev mailing list