glance/releasenotes/notes/cinder-store-migration-non-owner-80a2a8114d8602aa.yaml
Dan Smith ee1849714e Fix failed cinder store migration for non-owners
This fixes the bug related to cinder store migration being unable to
complete if a non-owner, non-admin user GETs the image before one of
the authorized users has triggered the lazy migration.

Change-Id: I187f626816ef1bc7303251165d2282bf6985cfd1
Closes-Bug: #1932337
2021-09-08 15:23:42 -07:00

14 lines
611 B
YAML

---
fixes:
- |
The cinder store lazy migration code assumed that the user
performing the GET was authorized to modify the image in order to
perform the update. This will not be the case for shared or public
images where the user is not the owner or an admin, and would
result in a 404 to the user if a migration is needed but not
completed. Now, we delay the migration if we are not sufficiently
authorized, allowing the first GET by the owner (or an admin) to
perform it. See Bug 1932337_ for more information.
.. _1932337: https://bugs.launchpad.net/glance/+bug/1932337