Internal server error when deleting an associated network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Alexej Ababilov | ||
Essex |
New
|
Undecided
|
Unassigned |
Bug Description
If you try to delete a network through API and this network is associated with a project, you will retrieve compute fault message.
curl -X 'DELETE' 'http://
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
To fix the bug, a RemoteError has to be caught.
nova-api.log:
[u'Traceback (most recent call last):\n', u' File "/usr/lib/
6/site-
rk\n \' before delete\') % network.
2012-07-11 11:26:37 TRACE nova.api.openstack Traceback (most recent call last):
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return req.get_
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack application, catch_exc_
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack app_iter = application(
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return self.app(env, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack response = self.app(environ, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return resp(environ, start_response)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack content_type, body, accept)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return method(req=request, **action_args)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack self.network_
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack 'uuid': network_uuid}})
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return _get_impl(
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack return rpc_amqp.
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack rv = list(rv)
2012-07-11 11:26:37 TRACE nova.api.openstack File "/usr/lib/
2012-07-11 11:26:37 TRACE nova.api.openstack raise result
2012-07-11 11:26:37 TRACE nova.api.openstack RemoteError: Remote error: ValueError Network must be disassociated from project a83299fae9d045a
affects: | nova → python-novaclient |
affects: | python-novaclient → nova |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Fix proposed to branch: master /review. openstack. org/10124
Review: https:/