Comment 9 for bug 1689284

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/newton)

Reviewed: https://review.openstack.org/467441
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=5448a44c703c96d38ebfaf768214bf0600364c5b
Submitter: Jenkins
Branch: stable/newton

commit 5448a44c703c96d38ebfaf768214bf0600364c5b
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
    to not use mox in Ocata: 612134ca7bd972e5cbd0d149ab1b45b2ec51ad49

    Change-Id: Ic62478e22a7477cfaefac3e63c383082d66bd635
    Closes-Bug: #1689284
    (cherry picked from commit 29c8ae3cd9653b310c3fac803e6295e5fa885d15)
    (cherry picked from commit 1b59d60f9520c7a1992a5753517e472f6dd8b85d)