Command 'account get' in the management api raises error

Bug #1130924 reported by Steve Leon
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Low
Paul Marshall

Bug Description

If you try to get an account information, by using reddwarf-mgm-cli account get, you will get an error from the client:
'Client' object has no attribute 'accounts' (HTTP 500)

From the reddwarf-api log, you can see the following error trace:

2013-02-20 13:28:48 61161 INFO reddwarf.extensions.account.service [-] Showing account information for '56e518c01f5347c39fbea6c1acea98f3' to 'bf58af4d8d0947dc8607654d5926ed5a'
2013-02-20 13:28:48 61161 ERROR reddwarf.common.wsgi [-] 'Client' object has no attribute 'accounts'
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi Traceback (most recent call last):
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/common/wsgi.py", line 244, in execute_action
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi **action_args)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 328, in execute_action
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi return self.dispatch(self.controller, action, request, **action_args)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 337, in dispatch
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi return method(*args, **kwargs)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/common/auth.py", line 87, in wrapper
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi return f(*args, **kwargs)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/extensions/account/service.py", line 44, in show
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi account = models.Account.load(context, id)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/extensions/account/models.py", line 53, in load
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi account = client.accounts.get_instances(id)
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi AttributeError: 'Client' object has no attribute 'accounts'
2013-02-20 13:28:48 61161 TRACE reddwarf.common.wsgi
2013-02-20 13:28:48 61161 ERROR reddwarf.common.wsgi [-] unserializable result detected! Exception type: <type 'exceptions.ValueError'> Message: Circular reference detected
2013-02-20 13:28:48 61161 INFO eventlet.wsgi [-] 127.0.0.1 - - [20/Feb/2013 13:28:48] "GET /v1.0/bf58af4d8d0947dc8607654d5926ed5a/mgmt/accounts/56e518c01f5347c39fbea6c1acea98f3 HTTP/1.1" 500 232 0.161727

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/24121

Changed in reddwarf:
assignee: nobody → Justin Hopper (justin-hopper)
status: New → In Progress
Changed in trove:
importance: Undecided → Low
milestone: none → ongoing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
assignee: Justin Hopper (justin-hopper) → Paul Marshall (paulvmarshall)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/110420
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=7f67ad6d39b06c141f96c766276f3c18521af38e
Submitter: Jenkins
Branch: master

commit 7f67ad6d39b06c141f96c766276f3c18521af38e
Author: Paul Marshall <email address hidden>
Date: Tue Jul 29 11:41:27 2014 -0500

    Remove accounts use of non-existent Nova extension

    The accounts mgmt extension uses a Nova accounts extension that doesn't
    exist. This removes the use of Nova accounts and instead shows all
    trove instance ids associated with the account. Accounts index is unchanged
    and returns the total number of instances per account for all accounts.

    Change-Id: I8a4387aec2e124dfbfb5c55a62fe4154e5e38544
    Closes-Bug: 1130924

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
milestone: ongoing → juno-3
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: juno-3 → 2014.2
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.