Translate NoMoreFloatingIps exception in floating ip create API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Christopher Yeoh |
Bug Description
In tempest test test_allocate_
2013-04-17 11:25:54 DEBUG [routes.middleware] Matched POST /418618d2fea641
2013-04-17 11:25:54 DEBUG [routes.middleware] Route path: '/{project_
te', 'controller': <nova.api.
2013-04-17 11:25:54 DEBUG [routes.middleware] Match dict: {'action': u'create', 'controller': <nova.api.
.Resource object at 0x31eaf10>, 'project_id': u'418618d2fea64
2013-04-17 11:25:54 DEBUG [nova.api.
<pool >non_exist_
2013-04-17 11:25:54 DEBUG [nova.api.
api.openstack.
2013-04-17 11:25:54 DEBUG [nova.quota] Created reservations ['a2d9fde5-
2013-04-17 11:25:54 DEBUG [nova.quota] Rolled back reservations ['a2d9fde5-
2013-04-17 11:25:54 ERROR [nova.api.
Traceback (most recent call last):
File "/srv/compile/
return req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
return resp(environ, start_response)
File "/opt/stack/
return self.app(env, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
response = self.app(environ, start_response)
File "/usr/local/
return resp(environ, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/srv/compile/
content_type, body, accept)
File "/srv/compile/
action_result = self.dispatch(meth, request, action_args)
File "/srv/compile/
return method(req=request, **action_args)
File "/srv/compile/
address = self.network_
File "/srv/compile/
return func(self, context, *args, **kwargs)
File "/srv/compile/
context.
File "/srv/compile/
return func(*args, **kwargs)
File "/srv/compile/
QUOTAS.
File "/usr/lib/
self.gen.next()
File "/srv/compile/
pool)
File "/srv/compile/
return IMPL.floating_
File "/srv/compile/
return f(*args, **kwargs)
File "/srv/compile/
raise exception.
NoMoreFloatingIps: Zero floating ips available.
2013-04-17 11:25:54 INFO [nova.api.
2013-04-17 11:25:54 DEBUG [nova.api.
g-ips returned with HTTP 404
2013-04-17 11:25:54 DEBUG [nova.api.
2013-04-17 11:25:54 INFO [nova.osapi_
We should catch the exception and raise an HTTPNotFound instead so we don't leave a confusing stack trace when in an expected code path
Changed in nova: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/27036
Review: https:/