"Direct" vs. "direct" in impl_qpid

Bug #1211338 reported by David Ripton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Unassigned
Declined for Grizzly by Alan Pevec
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned
Grizzly
Won't Fix
Undecided
Unassigned
neutron
Fix Released
Undecided
Unassigned
Grizzly
Fix Released
High
Assaf Muller
oslo-incubator
Fix Released
High
David Ripton

Bug Description

impl_qpid.py has {"type": "Direct"} (with a capital D) in one place. "direct" (lowercase) in others. It appears that qpid is case-sensitive about exchange types, so the version with the capital D is invalid. This ends up causing qpid to throw an error like:

>> "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py",
>> line 567, in _ewait\n self.check_error()\n', ' File
>> "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py",
>> line 556, in check_error\n raise self.error\n', 'NotFound:
>> not-found: Exchange type not implemented: Direct
>> (qpid/broker/SessionAdapter.cpp:117)(404)\n']

It should be a one-character fix.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/41427

Changed in oslo:
assignee: nobody → David Ripton (dripton)
status: New → In Progress
Mark McLoughlin (markmc)
Changed in oslo:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/41427
Committed: http://github.com/openstack/oslo-incubator/commit/bec54ac5fb6a190c98079537f63d2f0e17584d21
Submitter: Jenkins
Branch: master

commit bec54ac5fb6a190c98079537f63d2f0e17584d21
Author: David Ripton <email address hidden>
Date: Mon Aug 12 10:09:20 2013 -0400

    Fix case error in qpid exchange type "direct"

    Most places correctly have "direct", but one place has "Direct"
    instead, which is incorrect.

    Fixes bug #1211338

    Change-Id: I2516317ff7f6ff18ee0a99a60d0c058ed309d4da

Changed in oslo:
status: In Progress → Fix Committed
Revision history for this message
David Ripton (dripton) wrote :

The fix is in oslo-incubator but needs to be merged to projects that use it. I see impl_qpid.py in neutron, nova, cinder, heat, and ceilometer. There's already a nova review to update the rpc code from oslo. For the other projects, I may need to initiate merge reviews.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/44924

Thierry Carrez (ttx)
Changed in oslo:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo:
milestone: havana-3 → 2013.2
Revision history for this message
Russell Bryant (russellb) wrote :
Changed in nova:
status: New → Fix Released
Revision history for this message
Eric Harney (eharney) wrote :

Fixed in Cinder master (in 2013.2): https://review.openstack.org/#/c/44532/

Changed in cinder:
status: New → Fix Released
Revision history for this message
Eric Harney (eharney) wrote :
Revision history for this message
Assaf Muller (amuller) wrote :

Neutron master (Merged): https://review.openstack.org/#/c/42358/
Neutron stable/grizzly (In review): https://review.openstack.org/#/c/62663/
* stable/havana already has it

Revision history for this message
Assaf Muller (amuller) wrote :

Merged to Havana stable, Grizzly stable, master.

Changed in neutron:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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