Re: [Openstack] Notifiers

2012-03-14 Thread Juan Antonio García Lebrijo

Hi,

we are thinking to contribute to increase the types of notifications 
(events) through the rabbit server. We are thinking to notify from each 
Openstack component (nova, glance,  quantum in the future ...)


We think that unify the code on the openstack-common stuff is a great idea.

We are really interested to collaborate on this topic.

Cheers,
Juan

On 12/03/12 14:33, Swaminathan Venkataraman wrote:

Hi,
I've been playing around with openstack for a month now and was 
looking to see how I can contribute. I saw that nova and glance use 
different methods to send out notifications. It looked relatively 
straight forward to make them use one common library for 
notifications. That way, when we make changes or add new transports we 
do not have to do it twice (or more number of times depending on how 
other components of openstack do notifications). Let me know if 
someone is already working on this. If not, let me know if this makes 
sense and I can start by creating a blueprint. Also, is there any 
preference to use object oriented (or not)?


Cheers,
Venkat


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp



--

Juan Antonio García Lebrijo
*CTO*
*www.stackops.com* http://www.stackops.com/ *| * 
juan.lebr...@stackops.com mailto:juan.lebr...@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.



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] instance event subscription?

2012-02-13 Thread Juan Antonio García Lebrijo

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.lebr...@stackops.com mailto:juan.lebr...@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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] instance event subscription?

2012-02-13 Thread Juan Antonio García Lebrijo

On 02/13/2012 06:37 PM, Andrew Bogott wrote:

On 2/13/12 9:47 AM, Juan Antonio García Lebrijo wrote:

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. snip


This looks like just what I need.  Is there documentation someplace 
about the set of supported events, or do I just need to grep the code 
for that?
I took the ideas from SystemUsageData link 
http://wiki.openstack.org/SystemUsageData(but it seems not implemented 
yet), and take information testing the nova rabbit exchange. But grep 
the code could be a good way to gather info about it.


Regards,
--

Juan Antonio García Lebrijo
*Senior Developer / Software Architect*
*www.stackops.com* http://www.stackops.com/ *| * 
juan.lebr...@stackops.com mailto:juan.lebr...@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.



___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp