[Openstack] instance event subscription?

Juan Antonio García Lebrijo juan.lebrijo at stackops.com
Mon Feb 13 15:47:38 UTC 2012


Hello Andrew,

as we could find in the notification system wiki 
<http://wiki.openstack.org/NotificationSystem>, we had to add the flag 
(--notification_driver=nova.notifier.rabbit_notifier) in all modules 
configuration ( /etc/nova/nova-network.conf, nova-compute.conf, 
nova-volume.conf). And restart them.

Then you can consume from the exchange name "nova" (in the rabbitmq 
server) the create/delete events. You can see the following example from 
my system:

{
  "_context_roles": [],
  "_context_request_id": "80ad9bd1-b68d-4484-be3f-6525b2f57b8f",
  "event_type": "compute.instance.create",
  "timestamp": "2012-01-13 11:39:55.946786",
  "_context_auth_token": null,
  "_context_user_id": null,
  "payload": {
  		"display_name": "one instance",
  		"created_at": "2012-01-13 11:39:52",
  		"instance_type_id": 2,
  		"instance_id": 14,
  		"instance_type": "m1.tiny",
  		"image_ref": "9",
  		"user_id": "admin",
  		"project_id": "2",
  		"launched_at": ""
  		},
"_context_read_deleted": false,
"priority": "INFO",
"_context_strategy": "noauth",
"_context_is_admin": true,
"_context_project_id": null,
"_context_timestamp": "2012-01-13T11:39:55.946820",
"publisher_id": "compute.nova-controller",
"message_id": "3dc192a1-c263-46d4-bde1-94406978517f",
"_context_remote_address": null
}

This is what I have found for the moment in the Diablo release.

Regards
-- 

Juan Antonio García Lebrijo
*Senior Developer / Software Architect*
*www.stackops.com* <http://www.stackops.com/> *| * 
juan.lebrijo at stackops.com <mailto:juan.lebrijo at stackops.com>| 
skype:juan.lebrijo.stackops

******************** ADVERTENCIA LEGAL ********************
Le informamos, como destinatario de este mensaje, que el correo 
electrónico y las comunicaciones por medio de Internet no permiten 
asegurar ni garantizar la confidencialidad de los mensajes transmitidos, 
así como tampoco su integridad o su correcta recepción, por lo que 
STACKOPS TECHNOLOGIES S.L. no asume responsabilidad alguna por tales 
circunstancias. Si no consintiese en la utilización del correo 
electrónico o de las comunicaciones vía Internet le rogamos nos lo 
comunique y ponga en nuestro conocimiento de manera inmediata. Este 
mensaje va dirigido, de manera exclusiva, a su destinatario y contiene 
información confidencial y sujeta al secreto profesional, cuya 
divulgación no está permitida por la ley. En caso de haber recibido este 
mensaje por error, le rogamos que, de forma inmediata, nos lo comunique 
mediante correo electrónico remitido a nuestra atención y proceda a su 
eliminación, así como a la de cualquier documento adjunto al mismo. 
Asimismo, le comunicamos que la distribución, copia o utilización de 
este mensaje, o de cualquier documento adjunto al mismo, cualquiera que 
fuera su finalidad, están prohibidas por la ley.

***************** PRIVILEGED AND CONFIDENTIAL ****************
We hereby inform you, as addressee of this message, that e-mail and 
Internet do not guarantee the confidentiality, nor the completeness or 
proper reception of the messages sent and, thus, STACKOPS TECHNOLOGIES 
S.L. does not assume any liability for those circumstances. Should you 
not agree to the use of e-mail or to communications via Internet, you 
are kindly requested to notify us immediately. This message is intended 
exclusively for the person to whom it is addressed and contains 
privileged and confidential information protected from disclosure by 
law. If you are not the addressee indicated in this message, you should 
immediately delete it and any attachments and notify the sender by reply 
e-mail. In such case, you are hereby notified that any dissemination, 
distribution, copying or use of this message or any attachments, for any 
purpose, is strictly prohibited by law.





On 02/13/2012 04:05 PM, Andrew Bogott wrote:
> Is there a way to subscribe to nova events so that I get notified of 
> instance changes?  For example, I'd like to know when a server changes 
> state from 'Build' to 'Active'.
>
> If there isn't, would the addition of such a facility be welcome?
>
> _______________________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120213/348cffb2/attachment.html>


More information about the Openstack mailing list