yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #42303
[Bug 1207914] Re: nova stacktraces when neutron throws a quota error
When the bug was reported, there was no action in neutronclient side.
After that, neutron exception handling was improved and now neutronclient raises OverQuotaClient exception and nova catches it.
** Changed in: python-neutronclient
Status: New => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1207914
Title:
nova stacktraces when neutron throws a quota error
Status in OpenStack Compute (nova):
Fix Released
Status in python-neutronclient:
Fix Released
Bug description:
From nova-compute log when exceeding a quota.
/json; charset=UTF-8'} {"NeutronError": "Quota exceeded for resources: ['port']"}
http_log_resp /opt/stack/python-neutronclient/neutronclient/common/utils.py:179
2013-08-02 21:30:38.115 30306 DEBUG neutronclient.v2_0.client [-] Error message: {"NeutronError": "Quota exceeded for resources: ['port']"} _handle_fault_response /opt/stack/python-neutronclient/neutronclient/v2_0/client.py:756
2013-08-02 21:30:38.115 30306 ERROR nova.compute.manager [-] Instance failed network setup after 1 attempt(s)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager Traceback (most recent call last):
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/nova/nova/compute/manager.py", line 1280, in _allocate_network_async
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager security_groups=security_groups)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/nova/nova/network/api.py", line 49, in wrapper
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager res = f(self, context, *args, **kwargs)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/nova/nova/network/neutronv2/api.py", line 310, in allocate_for_instance
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager LOG.exception(msg, port_id)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/nova/nova/network/neutronv2/api.py", line 287, in allocate_for_instance
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager port_client.create_port(port_req_body)['port']['id'])
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 108, in with_params
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager ret = self.function(instance, *args, **kwargs)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 276, in create_port
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager return self.post(self.ports_path, body=body)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 872, in post
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager headers=headers, params=params)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 795, in do_request
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager self._handle_fault_response(status_code, replybody)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 765, in _handle_fault_response
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager exception_handler_v20(status_code, des_error_body)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager File "/opt/stack/python-neutronclient/neutronclient/v2_0/client.py", line 81, in exception_handler_v20
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager message=error_dict)
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager NeutronClientException: Quota exceeded for resources: ['port']
2013-08-02 21:30:38.115 30306 TRACE nova.compute.manager
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 97, in wait
readers.get(fileno, noop).cb(fileno)
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in main
Furthermore nova doesn't show its a quota issue but instead says:
| fault | {u'message': u'NoValidHost',
u'code': 500, u'created': u'2013-08-02T21:31:04Z'} |
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1207914/+subscriptions