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)
Reviewed: https:/ /review. openstack. org/579267 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=23729bdda40 99908a205f6d60f 64ffad712f820e
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 23729bdda409990 8a205f6d60f64ff ad712f820e
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 8b28795a1ea0520 ef05e53f047 80fb3e33f03b274 c10befdab0)
Change-Id: I8e6b0c726dc649
(cherry picked from commit 8d9f8629013bcb8