Cinder store migration will fail if first GET'er is not the owner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Unassigned | ||
Wallaby |
Confirmed
|
Undecided
|
Unassigned | ||
Xena |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
During an upgrade to Xena, cinder-backed image locations are migrated to include the store name in the URL field. This is lazily done on the first GET of the image. The problem is that the first user to GET an image after the migration may not be an admin or the owner of the image, as would be the case for a public or shared image. If that happens, the user gets a 404 for a valid image because the DB layer refuses the modify operation. This is logged:
2021-06-17 08:50:06,559 WARNING [glance.
The lazy migration code needs to tolerate this and allow someone else to perform the migration without breaking non-owner GET operations until the migration is complete.
Changed in glance: | |
status: | Confirmed → In Progress |
Fix proposed to branch: master /review. opendev. org/c/openstack /glance/ +/796885
Review: https:/