unable to see details of the messages between the client and server

Bug #1035008 reported by Naveen Joy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Medium
Shiv Haris
python-neutronclient
Invalid
Undecided
Shiv Haris

Bug Description

I am seeing a 404 Quantum Client Exception when I create a network. However, I am unable to see any further details and as a result it's difficult to debug this issue. Need to show the curl data messages transferred between the client and the server when using the --debug switch so the users could see what's going on before the exception is raised [similar to the messages generated by nova and glance clients].

$ quantum --debug net-create test
ERROR: cliff.app 404 Not Found

The resource could not be found.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 218, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/common/command.py", line 35, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 84, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/common/command.py", line 41, in take_action
    return self.get_data(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/quantum/v2_0/__init__.py", line 229, in get_data
    data = obj_creator(body)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 102, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 214, in create_network
    return self.post(self.networks_path, body=body)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 382, in post
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 307, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 288, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/local/lib/python2.7/dist-packages/python_quantumclient-0.1.1.7-py2.7.egg/quantumclient/v2_0/client.py", line 82, in exception_handler_v20
    message=message)
QuantumClientException: 404 Not Found

The resource could not be found.

Revision history for this message
dan wendlandt (danwent) wrote :

note: you can use the --verbose flag to see the content passed between client and server, but it would be good if this flag was consistent with other openstack client (seems like nova uses the --debug flag for this).

Changed in python-quantumclient:
status: New → Confirmed
Changed in quantum:
status: New → Confirmed
milestone: none → folsom-3
importance: Undecided → Low
importance: Low → Medium
tags: added: low-hanging-fruit
Shiv Haris (shh)
Changed in python-quantumclient:
assignee: nobody → SH (shivharis)
Changed in quantum:
assignee: nobody → SH (shivharis)
Revision history for this message
yong sheng gong (gongysh) wrote :

in openstack unified command project, we are tending to use -v to show the message between client and server. --debug is used to show the call stack if there is a exception happening.

dan wendlandt (danwent)
Changed in quantum:
milestone: folsom-3 → none
Changed in quantum:
status: Confirmed → Invalid
Changed in python-quantumclient:
status: Confirmed → Invalid
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.