Bug 1122856

Summary: ambiguous nodes: the queue is removed by exchange removal request
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: python-qpidAssignee: Gordon Sim <gsim>
Status: CLOSED ERRATA QA Contact: Valiantsina Hubeika <vhubeika>
Severity: medium Docs Contact:
Priority: unspecified    
Version: DevelopmentCC: esammons, gsim, iboverma, lzhaldyb, mtoth, vhubeika
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-qpid-0.22-17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1151983 (view as bug list) Environment:
Last Closed: 2014-09-24 15:12:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1151983    

Description Petr Matousek 2014-07-24 08:48:19 UTC
Description of problem:

Having defined two ambiguous node (queue and exchange of the same name), the queue is deleted by issuing exchange removal request.

Version-Release number of selected component (if applicable):
python-qpid-0.22-15

How reproducible:
100%

Steps to Reproduce:
1. drain  -f "ambiguous_node;{'node': {'type': 'queue'}, 'create': 'receiver'}"
2. drain  -f "ambiguous_node;{'node': {'type': 'topic'}, 'create': 'receiver'}"
3. drain "ambiguous_node;{'node': {'type': 'topic'}, 'delete': 'always'}"
4. The queue was removed instead of the topic (not expected)
5. repeat step 3
6. the exchange is removed (expected)


Actual results:
A queue is removed first when when ambiguous nodes exists regardless of the node type specified in the address string.

Expected results:
Only the node of type defined in the address string is removed when ambiguous nodes exists.

Additional info:

Comment 1 Gordon Sim 2014-07-24 13:54:29 UTC
Fixed upstream: https://svn.apache.org/r1613131

Comment 2 Gordon Sim 2014-07-24 14:00:48 UTC
Oops, actually the fix is https://svn.apache.org/r1613130, the revision above is related but is just adding exclusions for AMQP 1.0 (where delete is not supported).

Comment 7 Valiantsina Hubeika 2014-08-04 14:14:24 UTC
verified on
python-qpid-0.22-17

Comment 8 errata-xmlrpc 2014-09-24 15:12:22 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.

http://rhn.redhat.com/errata/RHEA-2014-1296.html