Thanks Swann, that did the trick. Ed
On Thu, Apr 16, 2015 at 2:44 PM, Swann Croiset <[email protected]> wrote: > Hi, > try to configure nova.conf: > > [DEFAULT] > notification_driver=messaging > > BR > > > 2015-04-16 11:04 GMT+02:00 Eduard Matei <[email protected]>: > >> >> >> Hi, >> >> I've been trying to enable nova notifications on various actions, but >> nothing is actually sent. >> I found the cause in the _notify method >> of /usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/notifier.py. >> There it performs a check "if self._driver_mgr.extensions" which always >> returns False. >> I removed the check and i found the following traceback in n-api: >> >> >> 2015-04-16 10:58:17.955 ERROR nova.notifications >> [req-2909db4c-30f4-4278-8472-ec5c9440778f admin admin] [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05 >> f] Failed to send state update notification >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] Traceback (most recent call last): >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/opt/stack/nova/nova/notifications.py", line >> 151, in send_update >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] old_display_name=old_display_name) >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/opt/stack/nova/nova/notifications.py", line >> 253, in _send_instance_update_notification >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] 'compute.instance.update', >> payload) >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/usr/local/lib/python2.7/dist-packages/oslo_ >> messaging/notify/notifier.py", line 231, in info >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] self._notify(ctxt, event_type, >> payload, 'INFO') >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/usr/local/lib/python2.7/dist-packages/oslo_ >> messaging/notify/notifier.py", line 313, in _notify >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] super(_SubNotifier, >> self)._notify(ctxt, event_ty >> pe, payload, priority) >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/usr/local/lib/python2.7/dist-packages/oslo_ >> messaging/notify/notifier.py", line 186, in _notify >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] self._driver_mgr.map(do_notify) >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] File >> "/usr/local/lib/python2.7/dist-packages/steve >> dore/extension.py", line 221, in map >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] raise RuntimeError('No %s >> extensions found' % se >> lf.namespace) >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] RuntimeError: No >> oslo.messaging.notify.drivers exten >> sions found >> 2015-04-16 10:58:17.955 TRACE nova.notifications [instance: >> a902da95-6b42-4f71-a55e-818c1d02c05f] >> >> >> >> Looking in oslo directory and trying to import that module >> (oslo.messaging.notify.drivers) but no success, that module doesn't exist. >> >> Anyone knows how to enable the notifications ? >> >> I found also in the Notifier __init__ the following: >> >> self._driver_mgr = named.NamedExtensionManager( >> 'oslo.messaging.notify.drivers', >> >> What should i put there so that the extensions can be loaded ? ( i tried >> with oslo.messaging._drivers but same error: No oslo.messaging._drivers >> extensions found). >> >> Thanks, >> Eduard >> >> >> __________________________________________________________________________ >> OpenStack Development Mailing List (not for usage questions) >> Unsubscribe: >> [email protected]?subject:unsubscribe >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >> >> > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: [email protected]?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > > -- *Eduard Biceri Matei, Senior Software Developer* www.cloudfounders.com | [email protected] *CloudFounders, The Private Cloud Software Company* Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee or an employee or agent responsible for delivering this message to the named addressee, you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this email in error we request you to notify us by reply e-mail and to delete all electronic files of the message. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, and shall have no liability for any loss or damage suffered by the user, which arise as a result of e-mail transmission.
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
