Oslo.messaging.notifier hangs while sending notifications

Bug #1246621 reported by Christian Strack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Critical
Christian Strack

Bug Description

Oslo.messaging.notify.Notifier uses oslo.messaging.Transport as an interface for different transport drivers. The method oslo.messaging.Transport.send_notifications calls the driver method send which has a different signature than send_notification. Thus, the version number gets used as wait_for_reply flag and the whole notification process hangs while waiting for a reply.

Fix:
--- a/oslo/messaging/transport.py
+++ b/oslo/messaging/transport.py
@@ -91,7 +91,7 @@ class Transport(object):
         if not target.topic:
             raise exceptions.InvalidTarget('A topic is required to send',
                                            target)
- self._driver.send(target, ctxt, message, version)
+ self._driver.send_notification(target, ctxt, message, version)

     def _listen(self, target):
         if not (target.topic and target.server):

Christian Strack (abyth)
affects: oslo → oslo.messaging
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Christian Strack (abyth) wrote : Re: [Bug 1246621] Re: Oslo.messaging.notifier hangs while sending notifications

Hey Dims,

here is the requested workflow, at least i hope so:
https://review.openstack.org/#/c/54718/

Greetings
Christian
--
Christian Strack, M.Sc.

Distributed Systems Group
Department of Mathematics & Computer Science
Philipps-Universität Marburg, Germany

Phone: +49 6421 28 21563
Fax: +49 6421 28 21573
E-mail: <email address hidden>

Am 31.10.2013 um 12:00 schrieb Davanum Srinivas (DIMS) <email address hidden>:

> Christian,
>
> Can you please submit a gerritt review?
>
> https://wiki.openstack.org/wiki/How_To_Contribute#If_you.27re_a_developer
> https://wiki.openstack.org/wiki/Gerrit_Workflow
>
> thanks,
> dims
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1246621
>
> Title:
> Oslo.messaging.notifier hangs while sending notifications
>
> Status in Messaging API for OpenStack:
> New
>
> Bug description:
> Oslo.messaging.notify.Notifier uses oslo.messaging.Transport as an
> interface for different transport drivers. The method
> oslo.messaging.Transport.send_notifications calls the driver method
> send which has a different signature than send_notification. Thus, the
> version number gets used as wait_for_reply flag and the whole
> notification process hangs while waiting for a reply.
>
> Fix:
> --- a/oslo/messaging/transport.py
> +++ b/oslo/messaging/transport.py
> @@ -91,7 +91,7 @@ class Transport(object):
> if not target.topic:
> raise exceptions.InvalidTarget('A topic is required to send',
> target)
> - self._driver.send(target, ctxt, message, version)
> + self._driver.send_notification(target, ctxt, message, version)
>
> def _listen(self, target):
> if not (target.topic and target.server):
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/oslo.messaging/+bug/1246621/+subscriptions

Mark McLoughlin (markmc)
Changed in oslo.messaging:
assignee: nobody → Christian Strack (strack-n)
importance: Undecided → Critical
status: New → Fix Committed
Mark McLoughlin (markmc)
Changed in oslo.messaging:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in oslo.messaging:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo.messaging:
milestone: icehouse-1 → 1.3.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.