commit 1397faaa041b2c73050bb6225e14f31f3dd4c826
Author: Matt Riedemann <email address hidden>
Date: Mon Mar 21 12:31:19 2016 -0400
Return 400 on boot for invalid image metadata
Horizon allows a free-form input field for architecture
when creating an image. However, the architecture in
the image metadata is validated against nova.compute.arch.ALL
so when converting the image metadata in the compute API
boot validation, if we hit a ValueError we should raise
an appropriate exception so the REST API will return a 400
rather than a 500.
Change-Id: Ib01b4b088fec065c671f83f5912e928b4d7fec71
Closes-Bug: #1558866
(cherry picked from commit 52b165bf1cf019353cd90b427ac3dd9991de48c7)
Reviewed: https:/ /review. openstack. org/303706 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1397faaa041 b2c73050bb6225e 14f31f3dd4c826
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 1397faaa041b2c7 3050bb6225e14f3 1f3dd4c826
Author: Matt Riedemann <email address hidden>
Date: Mon Mar 21 12:31:19 2016 -0400
Return 400 on boot for invalid image metadata
Horizon allows a free-form input field for architecture arch.ALL
when creating an image. However, the architecture in
the image metadata is validated against nova.compute.
so when converting the image metadata in the compute API
boot validation, if we hit a ValueError we should raise
an appropriate exception so the REST API will return a 400
rather than a 500.
Change-Id: Ib01b4b088fec06 5c671f83f5912e9 28b4d7fec71 53cd90b427ac3dd 9991de48c7)
Closes-Bug: #1558866
(cherry picked from commit 52b165bf1cf0193