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/464548 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=29c8ae3cd96 53b310c3fac803e 6295e5fa885d15
Committed: https:/
Submitter: Jenkins
Branch: master
commit 29c8ae3cd9653b3 10c3fac803e6295 e5fa885d15
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.
Change-Id: Ic62478e22a7477 cfaefac3e63c383 082d66bd635
Closes-Bug: #1689284