All remote operations (nova/volumes) fails due to Context.py changes

Bug #1152827 reported by Vipul Sabhaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Vipul Sabhaya

Bug Description

ReddwarfContext was changed to invoke the superclass (openstack/common/context) in to_dict(). There is an issue in the parent's to_dict() that renames auth_tok to auth_token. So when going from a ReddwarfContext to an RPCContext, the attribute names change.

This is currently causing all operations that use a remote from remote.py to fail.

File "/mnt/opt/stack/reddwarf/reddwarf/common/remote.py", line 51, in create_nova_volume_client
   client = Client(context.user, context.auth_tok,
 File "/mnt/opt/stack/reddwarf/reddwarf/openstack/common/rpc/common.py", line 278, in __getattr__
   raise AttributeError(key)
AttributeError: auth_tok

See: https://bugs.launchpad.net/oslo/+bug/1152826

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

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

Changed in reddwarf:
assignee: nobody → Vipul Sabhaya (vipuls)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to reddwarf (master)

Reviewed: https://review.openstack.org/23978
Committed: http://github.com/stackforge/reddwarf/commit/5f73d7be8ad793fdc49e1f82b2237ef73fb0e78e
Submitter: Jenkins
Branch: master

commit 5f73d7be8ad793fdc49e1f82b2237ef73fb0e78e
Author: Vipul Sabhaya <email address hidden>
Date: Fri Mar 8 17:13:59 2013 -0800

    Ensure to_dict() returns auth_tok

    * ReddwarfContext was changed to defer to the parent's to_dict method.
      When the context is serialized to amqp, it is known by the key 'auth_token'
      instead of the expected 'auth_tok' as a side-effect.

    fixes bug 1152827

    Change-Id: I8fcdb2a3eaf8da0dda3c0229b24e32f528353619

Changed in reddwarf:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-2 → 2013.2
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.