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: Ic62478e22a7477cfaefac3e63c383082d66bd635
Closes-Bug: #1689284
(cherry picked from commit 29c8ae3cd9653b310c3fac803e6295e5fa885d15)
Reviewed: https:/ /review. openstack. org/467028 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1b59d60f952 0c7a1992a575351 7e472f6dd8b85d
Committed: https:/
Submitter: Jenkins
Branch: stable/ocata
commit 1b59d60f9520c7a 1992a5753517e47 2f6dd8b85d
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 10c3fac803e6295 e5fa885d15)
Closes-Bug: #1689284
(cherry picked from commit 29c8ae3cd9653b3