Bug 1188309 - Declare DirectPublisher exchanges with passive=True
Summary: Declare DirectPublisher exchanges with passive=True
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-oslo-messaging
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.0 (Juno)
Assignee: hguemar
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-02 15:08 UTC by John Eckersberg
Modified: 2023-02-22 23:02 UTC (History)
11 users (show)

Fixed In Version: python-oslo-messaging-1.4.1-5.el7ost
Doc Type: Bug Fix
Doc Text:
This update addresses potential race conditions involving the 'oslo' messaging backend used in RabbitMQ.
Clone Of:
Environment:
Last Closed: 2015-08-24 14:48:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bug_1338732_script_resaults (348.65 KB, text/plain)
2015-08-18 14:49 UTC, Udi Shkalim
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1659 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Bug Fix and Enhancement Advisory 2015-08-24 18:47:56 UTC

Description John Eckersberg 2015-02-02 15:08:59 UTC
From upstream change, https://review.openstack.org/#/c/109373/

"If rabbit dies, the consumer can be disconnected before the publisher
sends, and if the consumer hasn't declared the queue, the publisher's
will send a message to an exchange that's not bound to a queue, and
the message wll be lost.  Setting passive=True will cause the
publisher to fail and retry if the consumer hasn't declared the
receiving queue yet."

This change addresses this race condition.  It would be good to have it backported for RHOS-6.0.

Comment 7 Udi Shkalim 2015-08-18 14:49:28 UTC
Created attachment 1064343 [details]
bug_1338732_script_resaults

Comment 8 Udi Shkalim 2015-08-18 14:55:34 UTC
Verified.

Running the script from bug https://bugs.launchpad.net/oslo.messaging/+bug/1338732 before the fix got the same results (bug reproduced)

Running on the new version:
2014.2.3
python-oslo-messaging-1.4.1-5.el7ost.noarch

Script results changed (see attached).

Fix is also related to bug: https://bugzilla.redhat.com/show_bug.cgi?id=1188304
Which also verified.

Comment 10 errata-xmlrpc 2015-08-24 14:48:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1659.html


Note You need to log in before you can comment on or make changes to this bug.