NeutronClientException exception isn't handled when showing a network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Haiwei Xu |
Bug Description
When I ran 'nova net xxx' to show a network's details, I got a 500 error if the network_uuid does not exist.
This is because the NeutronClientEx
$ nova net xxx
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-e744c9ae-
2014-03-01 02:37:25.764 ERROR nova.api.openstack [req-35d8246e-
404 Not Found
The resource could not be found.
2014-03-01 02:37:25.764 TRACE nova.api.openstack Traceback (most recent call last):
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack return req.get_
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
ine 1296, in send
2014-03-01 02:37:25.764 TRACE nova.api.openstack application, catch_exc_
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
ine 1260, in call_application
2014-03-01 02:37:25.764 TRACE nova.api.openstack app_iter = application(
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
144, in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack return resp(environ, start_response)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
auth_token.py", line 598, in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack return self.app(env, start_response)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
144, in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack return resp(environ, start_response)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
144, in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack return resp(environ, start_response)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
130, in __call__
2014-03-01 02:37:25.764 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/usr/local/
2014-03-01 02:37:25.764 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack content_type, body, accept)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack return method(req=request, **action_args)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack network = self.network_
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack try:
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack ret = self.function(
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack return self.get(
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack print ("body: ", body)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack headers=headers, params=params)
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack self._handle_
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack exception_
2014-03-01 02:37:25.764 TRACE nova.api.openstack File "/opt/stack/
2014-03-01 02:37:25.764 TRACE nova.api.openstack message=message)
2014-03-01 02:37:25.764 TRACE nova.api.openstack NeutronClientEx
2014-03-01 02:37:25.764 TRACE nova.api.openstack
2014-03-01 02:37:25.764 TRACE nova.api.openstack The resource could not be found.
Changed in nova: | |
assignee: | nobody → Haiwei Xu (xu-haiwei) |
tags: | added: network neutron |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/77477
Review: https:/