Bug 976390

Summary: qpid-route deletes a queue correctly, but exit with failure
Product: Red Hat Enterprise MRG Reporter: Zdenek Kraus <zkraus>
Component: qpid-toolsAssignee: messaging-bugs <messaging-bugs>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.3CC: jross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 976391 (view as bug list) Environment:
Last Closed: 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: 976391    

Description Zdenek Kraus 2013-06-20 13:28:53 UTC
Description of problem:
When deleting a route with qpid-route, the route is deleted but qpid-route exit with failure, on rhel6 with exception, on rhel5 with error message and with exit code 1.

Despite that the route is successfully deleted.

Version-Release number of selected component (if applicable):
qpid-tool-0.18-8
qpid-tool-0.18-10
qpid-tool-0.22-4

How reproducible:
99%

Steps to Reproduce:
1. prepare allowing acl
  acl allow all all

2. start brokers with this acl 
  qpidd --auth=no --acl-file=/tmp/allow.acl --data-dir=/tmp/qpidd-$$-$RANDOM-$RANDOM --port=5672
  qpidd --auth=no --acl-file=/tmp/allow.acl --data-dir=/tmp/qpidd-$$-$RANDOM-$RANDOM --port=5671

3. prepare objects to queue route
  qpid-config -b localhost:5671 add queue q
  qpid-config -b localhost:5672 add exchange topic e

4. create a queue route
  qpid-route queue add localhost:5672 localhost:5671 e q

5. then delete the route with same parameters
  qpid-route queue del localhost:5672 localhost:5671 e q

Actual results:
## RHEL5:
Failed: SystemExit - 0
# ecode: 1

##RHEL6
Exception in thread Thread for broker: localhost:5672 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib/python2.6/site-packages/qmf/console.py", line 2997, in run
  File "/usr/lib/python2.6/Queue.py", line 174, in get
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
# ecode: 0

Expected results:
qpid-route delete route without error messages and errors nor exceptions

Additional info:

Comment 1 Justin Ross 2013-06-20 19:50:31 UTC
*** Bug 976391 has been marked as a duplicate of this bug. ***