Management command diagnostic not working

Bug #1130966 reported by Steve Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Triaged
Low
Unassigned

Bug Description

When using the 'instance diagnostic' from the management API, the following error is raised from the client:

Steves-MacBook-Pro:reddwarf steveleon$ reddwarf-mgmt-cli instance diagnostic --id 5a068cdf-d207-48ff-8d07-38dc7c1ed4e0

An error occurred communicating with the guest: No such RPC function 'get_diagnostics'
Traceback (most recent call last):

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/amqp.py", line 277, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/dispatcher.py", line 150, in dispatch
    raise AttributeError("No such RPC function '%s'" % method)

AttributeError: No such RPC function 'get_diagnostics'
. (HTTP 400)

From the reddwarf-api, the following is observed:

2013-02-20 15:42:32 61161 INFO reddwarf.instance.models [-] service status=<reddwarf.instance.models.InstanceServiceStatus object at 0x10e968390>
2013-02-20 15:42:32 61161 DEBUG reddwarf.guestagent.api [-] Check diagnostics on Instance 5a068cdf-d207-48ff-8d07-38dc7c1ed4e0 get_diagnostics /Users/steveleon/reddwarf/reddwarf/guestagent/api.py:168
2013-02-20 15:42:32 61161 DEBUG reddwarf.guestagent.api [-] Calling get_diagnostics _call /Users/steveleon/reddwarf/reddwarf/guestagent/api.py:50
2013-02-20 15:42:32 61161 DEBUG reddwarf.openstack.common.rpc.amqp [-] Making asynchronous call on guestagent.5a068cdf-d207-48ff-8d07-38dc7c1ed4e0 ... multicall /Users/steveleon/reddwarf/reddwarf/openstack/common/rpc/amqp.py:359
2013-02-20 15:42:32 61161 DEBUG reddwarf.openstack.common.rpc.amqp [-] MSG_ID is 800ab8f1444e478d9e1e2e0d334892e8 multicall /Users/steveleon/reddwarf/reddwarf/openstack/common/rpc/amqp.py:362
2013-02-20 15:42:33 61161 ERROR reddwarf.guestagent.api [-] No such RPC function 'get_diagnostics'
Traceback (most recent call last):

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/amqp.py", line 277, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/dispatcher.py", line 150, in dispatch
    raise AttributeError("No such RPC function '%s'" % method)

AttributeError: No such RPC function 'get_diagnostics'

2013-02-20 15:42:33 61161 DEBUG reddwarf.common.wsgi [-] Traceback (most recent call last):
  File "/Users/steveleon/reddwarf/reddwarf/common/wsgi.py", line 244, in execute_action
    **action_args)
  File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 328, in execute_action
    return self.dispatch(self.controller, action, request, **action_args)
  File "/Users/steveleon/reddwarf/reddwarf/openstack/common/wsgi.py", line 337, in dispatch
    return method(*args, **kwargs)
  File "/Users/steveleon/reddwarf/reddwarf/common/auth.py", line 87, in wrapper
    return f(*args, **kwargs)
  File "/Users/steveleon/reddwarf/reddwarf/extensions/mgmt/instances/service.py", line 171, in diagnostics
    diagnostics = instance.get_diagnostics()
  File "/Users/steveleon/reddwarf/reddwarf/extensions/mgmt/instances/models.py", line 114, in get_diagnostics
    return self.get_guest().get_diagnostics()
  File "/Users/steveleon/reddwarf/reddwarf/guestagent/api.py", line 169, in get_diagnostics
    return self._call("get_diagnostics", AGENT_LOW_TIMEOUT)
  File "/Users/steveleon/reddwarf/reddwarf/guestagent/api.py", line 60, in _call
    raise exception.GuestError(original_message=str(e))
GuestError: An error occurred communicating with the guest: No such RPC function 'get_diagnostics'
Traceback (most recent call last):

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/amqp.py", line 277, in _process_data
    rval = self.proxy.dispatch(ctxt, version, method, **args)

  File "/home/ubuntu/reddwarf/reddwarf/openstack/common/rpc/dispatcher.py", line 150, in dispatch
    raise AttributeError("No such RPC function '%s'" % method)

AttributeError: No such RPC function 'get_diagnostics'
.
 execute_action /Users/steveleon/reddwarf/reddwarf/common/wsgi.py:250
2013-02-20 15:42:33 61161 ERROR reddwarf.common.wsgi [-] unserializable result detected! Exception type: <type 'exceptions.ValueError'> Message: Circular reference detected
2013-02-20 15:42:33 61161 INFO eventlet.wsgi [-] 127.0.0.1 - - [20/Feb/2013 15:42:33] "GET /v1.0/bf58af4d8d0947dc8607654d5926ed5a/mgmt/instances/5a068cdf-d207-48ff-8d07-38dc7c1ed4e0/diagnostics HTTP/1.1" 400 694 1.897420

Revision history for this message
Michael Basnight (hubcap) wrote :

similar to bug 1130929

Changed in trove:
status: New → Triaged
Changed in trove:
importance: Undecided → Low
milestone: none → ongoing
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

This is based on the old reddwarf-cli which is obsolete.

Changed in trove:
status: Triaged → Incomplete
Changed in trove:
status: Incomplete → Invalid
Changed in trove:
status: Invalid → Triaged
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Looks like this is still an issue with the Mgmt API, not just the mgmt cli. Re-activating the bug.

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.