Comment 4 for bug 1778774

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

Reviewed: https://review.openstack.org/579267
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=23729bdda4099908a205f6d60f64ffad712f820e
Submitter: Zuul
Branch: stable/queens

commit 23729bdda4099908a205f6d60f64ffad712f820e
Author: Alan Bishop <email address hidden>
Date: Tue Jun 26 16:37:12 2018 -0400

    Fix quota error when deleting temporary volume

    When deleting a volume, always use the admin context to fetch the
    admin_metadata that indicates whether it's a temporary volume.

    This fixes a bug where a non-admin user failed to retrieve the
    admin_metadata, which caused the volume to not be treated as temporary.
    This, in turn, caused quota usage to be incorrectly updated.

    Closes-Bug: #1778774
    Change-Id: I8e6b0c726dc6498b28795a1ea0520ef05e53f047
    (cherry picked from commit 8d9f8629013bcb880fb3e33f03b274c10befdab0)