Management command 'host list' does not work

Bug #1130983 reported by Steve Leon on 2013-02-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Low
Unassigned

Bug Description

Using the management API 'host list' raises the following error: 'Client' object has no attribute 'rdhosts' (HTTP 500)

From the reddwarf-api log, the following is observed:

2013-02-20 16:28:16 61161 INFO reddwarf.extensions.mgmt.host.service [-] Indexing a host for tenant 'bf58af4d8d0947dc8607654d5926ed5a'
2013-02-20 16:28:16 61161 ERROR reddwarf.common.wsgi [-] 'Client' object has no attribute 'rdhosts'
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi Traceback (most recent call last):
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/common/wsgi.py", line 244, in execute_action
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi **action_args)
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 328, in execute_action
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi return self.dispatch(self.controller, action, request, **action_args)
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 337, in dispatch
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi return method(*args, **kwargs)
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/common/auth.py", line 87, in wrapper
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi return f(*args, **kwargs)
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/extensions/mgmt/host/service.py", line 42, in index
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi hosts = models.SimpleHost.load_all(context)
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi File "/Users/steveleon/reddwarf/reddwarf/extensions/mgmt/host/models.py", line 49, in load_all
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi LOG.debug("Client.rdhosts=" + str(client.rdhosts))
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi AttributeError: 'Client' object has no attribute 'rdhosts'
2013-02-20 16:28:16 61161 TRACE reddwarf.common.wsgi
2013-02-20 16:28:16 61161 ERROR reddwarf.common.wsgi [-] unserializable result detected! Exception type: <type 'exceptions.ValueError'> Message: Circular reference detected
2013-02-20 16:28:16 61161 INFO eventlet.wsgi [-] 127.0.0.1 - - [20/Feb/2013 16:28:16] "GET /v1.0/bf58af4d8d0947dc8607654d5926ed5a/mgmt/hosts HTTP/1.1" 500 231 0.211077

Changed in reddwarf:
assignee: nobody → Kevin Conway (kevinjacobconway)

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

Changed in reddwarf:
status: New → In Progress
Changed in trove:
importance: Undecided → Low
milestone: none → ongoing
Amrith Kumar (amrith) on 2016-04-05
Changed in trove:
assignee: Kevin Conway (kevinconway) → nobody
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers