commit 6673a1d6b33ca72062d35450f97de43bf550b705
Author: Jon Bernard <email address hidden>
Date: Fri Apr 11 10:44:55 2014 -0400
Re-raise exceptions in upload-to-image
This patch catches any exceptions returned from Glance during an
upload-to-image operation and re-raises them so that the user can see
the failure message and make the appropriate adjustments. More
specifically, this addresses an invalid container format.
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-f19bad2f-c39d-40a2-a3cc-6db9b9fe64cd)
To:
ERROR: 400 Bad Request
Invalid container format 'foobar' for image.
(HTTP 400) (HTTP 400) (Request-ID: req-47cb2772-78c4-48b7-87ce-fb124ecfa989)
Reviewed: https:/ /review. openstack. org/88063 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=6673a1d6b33 ca72062d35450f9 7de43bf550b705
Committed: https:/
Submitter: Jenkins
Branch: master
commit 6673a1d6b33ca72 062d35450f97de4 3bf550b705
Author: Jon Bernard <email address hidden>
Date: Fri Apr 11 10:44:55 2014 -0400
Re-raise exceptions in upload-to-image
This patch catches any exceptions returned from Glance during an
upload-to-image operation and re-raises them so that the user can see
the failure message and make the appropriate adjustments. More
specifically, this addresses an invalid container format.
For example, the following command:
$ cinder upload-to-image --container-format foobar ...
Goes from:
ERROR: The server could not comply with the request since it is
either malformed or otherwise incorrect. (HTTP 400)
(Request- ID: req-f19bad2f- c39d-40a2- a3cc-6db9b9fe64 cd)
To:
ERROR: 400 Bad Request
(Request- ID: req-47cb2772- 78c4-48b7- 87ce-fb124ecfa9 89)
Invalid container format 'foobar' for image.
(HTTP 400) (HTTP 400)
Closes-Bug: #1308689 42f84b1eab928b4 2d809335d80
Change-Id: If18851e0b9f5c2