Catch exception.OverQuota when create image for volume backed instance
When create image for a volume backed instance, nova will
create snapshots for all volumes attached to the instance
in Cinder, and if quota exceed in Cinder, HTTP 500 will
raise, we should capture this error and raise 403.
Reviewed: https:/ /review. openstack. org/467441 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5448a44c703 c96d38ebfaf7682 14bf0600364c5b
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 5448a44c703c96d 38ebfaf768214bf 0600364c5b
Author: Kevin_Zheng <email address hidden>
Date: Mon May 15 15:02:00 2017 +0800
Catch exception.OverQuota when create image for volume backed instance
When create image for a volume backed instance, nova will
create snapshots for all volumes attached to the instance
in Cinder, and if quota exceed in Cinder, HTTP 500 will
raise, we should capture this error and raise 403.
Conflicts:
nova/ tests/unit/ api/openstack/ compute/ test_server_ actions. py
NOTE(mriedem): The conflict is due to the tests being refactored 5cbd0d149ab1b45 b2ec51ad49
to not use mox in Ocata: 612134ca7bd972e
Change-Id: Ic62478e22a7477 cfaefac3e63c383 082d66bd635 10c3fac803e6295 e5fa885d15) 1992a5753517e47 2f6dd8b85d)
Closes-Bug: #1689284
(cherry picked from commit 29c8ae3cd9653b3
(cherry picked from commit 1b59d60f9520c7a