summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorSean Dague <sdague@linux.vnet.ibm.com>2013-03-21 18:48:30 -0400
committerSean Dague <sdague@linux.vnet.ibm.com>2013-03-22 10:23:07 -0400
commit3801a4d2f4c59dbfda49131ddde22fcb3976d651 (patch)
tree267d275e373a4c757dab8bfafb00ab8e3beebd27 /nova/openstack
parent5499640f639009f60fbf909786770654e1f1b5a0 (diff)
downloadnova-3801a4d2f4c59dbfda49131ddde22fcb3976d651.tar.gz
nova-3801a4d2f4c59dbfda49131ddde22fcb3976d651.tar.xz
nova-3801a4d2f4c59dbfda49131ddde22fcb3976d651.zip
translate cinder BadRequest exception
if we attempt to create a volume with values that are invalid (like a non numeric value for size) we properly get a BadRequest returned from cinder. However we inproperly pass that cinderclient exception all the way to the top of the request process, causing a stack trace to appear in the logs because this is an exception type Nova doesn't understand. This situation is triggered by Tempest on every run, and while the return is successful, the stack trace might spook people. Fix this by increasing the scope of the existing _reraise_translated_volume_exception() method. Longer term it would make sense to have a decorator that handles all possible exceptions we'd expect from cinder client and turn them into Nova exceptions. This reduces the number of stack traces in nova-api by 6 on a successful Tempest run. Fixes bug #1158505 Step towards blueprint no-stacktraces-in-logs Change-Id: Ifcfbd5eb11fe9f038f648ca5291499290b7126b1
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions