diff --git a/cinder/api/contrib/volume_actions.py b/cinder/api/contrib/volume_actions.py index 2961112684f..22cb24eea18 100644 --- a/cinder/api/contrib/volume_actions.py +++ b/cinder/api/contrib/volume_actions.py @@ -264,6 +264,8 @@ class VolumeActionsController(wsgi.Controller): msg = "%(err_type)s: %(err_msg)s" % {'err_type': error.exc_type, 'err_msg': error.value} raise webob.exc.HTTPBadRequest(explanation=msg) + except Exception as error: + raise webob.exc.HTTPBadRequest(explanation=unicode(error)) return {'os-volume_upload_image': response} @wsgi.action('os-extend')