glance_store/glance_store
Abhishek Kekane 3d221ec529 [RBD] Clone v2: Image is unusable if deletion fails
Recently cinder has utilized Ceph clone v2 support for its
RBD backend, since then if you attempt to delete an image from
glance that has a dependent volume, all future uses of that
image will fail in error state. Despite the fact that image
itself is still inside of Ceph/Glance. This issue is reproducible
if you are using ceph client version greater than 'luminous'

To resolve this issue glance RBD driver now checks whether snapshot
of original image has any external references before deleting/removing
it's snapshot and returns 409 Conflict response if it has any.

NOTE: To check this dependency glance osd needs 'read' access to
cinder and nova side RBD pool.

Closes-Bug: #1954883
Depends-on: https://review.opendev.org/c/openstack/devstack-plugin-ceph/+/819476
Change-Id: If30b7bd7acac148b6f89ce46abbe128c678c90e7
2021-12-21 17:11:45 +00:00
..
_drivers [RBD] Clone v2: Image is unusable if deletion fails 2021-12-21 17:11:45 +00:00
common Add volume multiattach handling 2021-08-12 09:20:20 -04:00
locale Imported Translations from Zanata 2020-05-05 06:43:27 +00:00
tests [RBD] Clone v2: Image is unusable if deletion fails 2021-12-21 17:11:45 +00:00
__init__.py Enable multi store support for glance 2018-07-15 15:10:27 +00:00
backend.py Add S3 store support to glance_store 2020-03-26 10:53:46 +09:00
capabilities.py Removed 'store_capabilities_update_min_interval' config option 2019-05-29 06:23:03 +00:00
driver.py Add location prefix url to store instance 2019-06-03 16:16:58 +00:00
exceptions.py Add lock per share for cinder nfs mount/umount 2020-05-01 11:35:01 +00:00
i18n.py Update oslo libraries 2015-03-19 11:43:42 -05:00
location.py Add S3 store support to glance_store 2020-03-26 10:53:46 +09:00
multi_backend.py Handle sparse images in glance_store 2020-08-21 07:02:43 -07:00