image creation causes stacktrace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Christopher Yeoh | ||
Grizzly |
Fix Released
|
Medium
|
Christopher Yeoh |
Bug Description
From a tempest test test_create_
a name which is too long it causes a stacktrace in the logs because the exception from glance is
not caught. Though the end result is ok as the uncaught exception is still a 400 Bad Request.
x-openstack-
400 Bad Request
Image name too long: 269
2013-04-16 17:10:37 ERROR [glanceclient.
2013-04-16 17:10:37 ERROR [nova.api.
Image name too long: 269
(HTTP 400)
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/
return f(*args, **kwargs)
File "/srv/compile/
extra_
File "/srv/compile/
return func(self, context, target, *args, **kwargs)
File "/srv/compile/
return f(self, context, instance, *args, **kw)
File "/srv/compile/
'snapshot', extra_propertie
File "/srv/compile/
return self.image_
File "/srv/compile/
context, 1, 'create', **sent_
File "/srv/compile/
return getattr(
File "/usr/local/
'POST', '/v1/images', headers=hdrs, body=image_data)
File "/usr/local/
return self._http_
File "/usr/local/
raise exc.from_
HTTPBadRequest: 400 Bad Request
Image name too long: 269
(HTTP 400)
2013-04-16 17:10:37 INFO [nova.api.
2013-04-16 17:10:37 DEBUG [nova.api.
2013-04-16 17:10:37 INFO [nova.osapi_
Changed in nova: | |
assignee: | nobody → Christopher Yeoh (cyeoh-0) |
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
tags: | removed: in-stable-grizzly |
Changed in nova: | |
milestone: | havana-1 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/26999
Review: https:/