<div dir="ltr">Thanks Swann, that did the trick.<div><br></div><div>Ed</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 2:44 PM, Swann Croiset <span dir="ltr"><<a href="mailto:swannon@gmail.com" target="_blank">swannon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br></div><div>try to configure nova.conf:<br><br></div><div>[DEFAULT]<br></div></div>notification_driver=messaging<br><br></div>BR<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2015-04-16 11:04 GMT+02:00 Eduard Matei <span dir="ltr"><<a href="mailto:eduard.matei@cloudfounders.com" target="_blank">eduard.matei@cloudfounders.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><br clear="all"><div><br></div>Hi,
<div><br></div><div>I've been trying to enable nova notifications on various actions, but nothing is actually sent.</div><div>I found the cause in the _notify method of /usr/local/lib/python2.7/dist-packages/oslo_messaging/notify/notifier.py.</div><div>There it performs a check "if self._driver_mgr.extensions" which always returns False.</div><div>I removed the check and i found the following traceback in n-api:</div><div><br></div><div><br></div><div><div>2015-04-16 10:58:17.955 ERROR nova.notifications [req-2909db4c-30f4-4278-8472-ec5c9440778f admin admin] [instance: a902da95-6b42-4f71-a55e-818c1d02c05</div><div>f] Failed to send state update notification</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] Traceback (most recent call last):</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] File "/opt/stack/nova/nova/notifications.py", line</div><div> 151, in send_update</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] old_display_name=old_display_name)</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] File "/opt/stack/nova/nova/notifications.py", line</div><div> 253, in _send_instance_update_notification</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] 'compute.instance.update', payload)</div><div>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_</div><div>messaging/notify/notifier.py", line 231, in info</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] self._notify(ctxt, event_type, payload, 'INFO')</div><div>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_</div><div>messaging/notify/notifier.py", line 313, in _notify</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] super(_SubNotifier, self)._notify(ctxt, event_ty</div><div>pe, payload, priority)</div><div>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_</div><div>messaging/notify/notifier.py", line 186, in _notify</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] self._driver_mgr.map(do_notify)</div><div>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</div><div>dore/extension.py", line 221, in map</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] raise RuntimeError('No %s extensions found' % se</div><div>lf.namespace)</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] RuntimeError: No oslo.messaging.notify.drivers exten</div><div>sions found</div><div>2015-04-16 10:58:17.955 TRACE nova.notifications [instance: a902da95-6b42-4f71-a55e-818c1d02c05f] </div></div><div><br></div><div><br></div><div><br></div><div>Looking in oslo directory and trying to import that module (oslo.messaging.notify.drivers) but no success, that module doesn't exist.</div><div><br></div><div>Anyone knows how to enable the notifications ?</div><div><br></div><div>I found also in the Notifier __init__ the following:</div><div><br></div><div><div> self._driver_mgr = named.NamedExtensionManager(</div><div> 'oslo.messaging.notify.drivers',</div></div><div><br></div><div>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).</div><div><br></div><div>Thanks,</div><div>Eduard</div><div><br></div></div>
<br></div></div>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><pre style="white-space:pre-wrap;font-size:10px;word-wrap:break-word;margin-top:0px;margin-bottom:0px"><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Eduard Biceri Matei, Senior Software Developer</span></b></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span style="font-size:13.5pt;font-family:Helvetica,sans-serif"><a href="http://www.cloudfounders.com/" style="color:rgb(17,85,204)" target="_blank"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#0045a3">www.cloudfounders.com</font></span></a><div style="display:inline-block;width:16px;height:16px"></div><div style="display:inline-block;width:16px;min-height:16px"></div></span><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif"><font color="#1f497d"> | </font><a href="mailto:eduard.matei@cloudfounders.com" style="color:rgb(17,85,204)" target="_blank"><font color="#0045a3">eduard.matei@cloudfounders.com</font></a></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></div><br><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif;color:rgb(80,0,80)"><u></u> <u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><b><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif">CloudFounders, The Private Cloud Software Company</span></b><span lang="EN-US" style="font-size:13.5pt;font-family:Arial,sans-serif"><u></u><u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:13.5pt;font-family:Helvetica,sans-serif"><u></u> <u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-family:Helvetica,sans-serif;font-size:11px">Disclaimer:<u></u><u></u></span></div><div style="font-family:arial,sans-serif;font-size:13px;text-align:-webkit-auto;white-space:normal;margin:0px"><span lang="EN-US" style="font-size:8.5pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">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.</span><span lang="EN-US" style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><br><span style="font-size:11px">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. <br>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.</span></span></div></pre></div></div>
</div>