admin extension gives 500 when listing instances

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

Bug Description

./redstack rd-mgmt-client instance list gives 500 error code:

Internal Server Error. Please keep this ID to help us figure out what went wrong: (2db71349-f02c-4430-add8-741d0d3b7595) (HTTP 500)

TROVE-API ERROR TRACE:

2013-08-08 22:26:19.050 12091 INFO trove.extensions.mgmt.instances.models [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] Found 3 servers in Nova
2013-08-08 22:26:19.056 12091 INFO trove.instance.models [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] Server api_status(ACTIVE)
2013-08-08 22:26:19.057 12091 INFO trove.instance.models [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] Server api_status(NEW)
2013-08-08 22:26:19.059 12091 INFO trove.instance.models [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] Server api_status(ACTIVE)
2013-08-08 22:26:19.062 12091 DEBUG trove.instance.views [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] {'status': 'ACTIVE', 'name': u'test1', 'links': [{'href': u'https://10.6.30.245:8779/v1.0/e351a185ff1a4ed9a2044c348dafcccd/instances/47274435-9582-4355-b530-2c4a7a3af43f', 'rel': 'self'}, {'href': u'https://10.6.30.245:8779/instances/47274435-9582-4355-b530-2c4a7a3af43f', 'rel': 'bookmark'}], 'volume': {'size': 1L}, 'flavor': {'id': '9', 'links': [{'href': u'https://10.6.30.245:8779/v1.0/e351a185ff1a4ed9a2044c348dafcccd/flavors/9', 'rel': 'self'}, {'href': 'https://10.6.30.245:8779/flavors/9', 'rel': 'bookmark'}]}, 'id': u'47274435-9582-4355-b530-2c4a7a3af43f'} data /opt/stack/trove/trove/instance/views.py:58
2013-08-08 22:26:19.062 12091 ERROR trove.common.wsgi [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] 2db71349-f02c-4430-add8-741d0d3b7595: deleted
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi Traceback (most recent call last):
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/common/wsgi.py", line 323, in execute_action
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi **action_args)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 395, in execute_action
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi return self.dispatch(self.controller, action, request, **action_args)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/openstack/common/wsgi.py", line 404, in dispatch
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi return method(*args, **kwargs)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/common/auth.py", line 87, in wrapper
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi return f(*args, **kwargs)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/extensions/mgmt/instances/service.py", line 70, in index
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi return wsgi.Result(view_cls(instances, req=req).data(), 200)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/extensions/mgmt/instances/views.py", line 106, in data
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi data.append(self.data_for_instance(instance))
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/extensions/mgmt/instances/views.py", line 111, in data_for_instance
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi return view.data()['instance']
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/trove/trove/extensions/mgmt/instances/views.py", line 34, in data
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi 'deleted': server.deleted,
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi File "/opt/stack/python-novaclient/novaclient/base.py", line 425, in __getattr__
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi raise AttributeError(k)
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi AttributeError: deleted
2013-08-08 22:26:19.062 12091 TRACE trove.common.wsgi
2013-08-08 22:26:19.063 12091 ERROR trove.common.wsgi [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] unserializable result detected! Exception type: <type 'exceptions.ValueError'> Message: Circular reference detected
2013-08-08 22:26:19.066 12091 INFO eventlet.wsgi [req-09ca6738-ccfd-4d6b-8b55-e80f4d0c7269 radmin e351a185ff1a4ed9a2044c348dafcccd] 10.6.30.245 - - [08/Aug/2013 22:26:19] "GET /v1.0/e351a185ff1a4ed9a2044c348dafcccd/mgmt/instances HTTP/1.1" 500 310 0.174084

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

Changed in trove:
assignee: nobody → Anna Shen (ruiyuan-shen)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/42207
Committed: http://github.com/openstack/trove/commit/2da27356238391b17ffa4f73303aa35f87ebc6d0
Submitter: Jenkins
Branch: master

commit 2da27356238391b17ffa4f73303aa35f87ebc6d0
Author: Anna Shen <email address hidden>
Date: Thu Aug 15 12:41:40 2013 -0700

    Fix admin extension gives 500 when listing instances

    Bug# 1210322

    Change-Id: Ib2c5e3d43688f0bb002eefc1c1ca4d347aa71f3c

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