The trash namespace works today for satisfying volume delete requests while storing the volume temporarily until all dependencies are removed. For full deferred deletion support we must support both volumes and snapshots and an additional piece is required: using the v2 clone format for cloned volumes. This will allow both volumes and snapshots to be moved to the trash and allow the rbd driver to accept delete requests when the final deletion will occur at a later time. This will require a configuration change on the ceph cluster: 'rbd default clone format = 2' or setting the minimum client to mimic: $ ceph osd set-require-min-compat-client mimic In a follow up patch, a background task to auto-flatten trash images to prevent this feature from consuming too many resources is planned. This bug is meant to track the initial patch providing basic functionality to support asynchronous deletion of both volumes and snapshots.
Jon, will this new rbd_default_clone_format need to be configurable by TripleO? How would upgrades work?
(In reply to Alan Bishop from comment #1) > Jon, will this new rbd_default_clone_format need to be configurable by > TripleO? How would upgrades work? Yes, until the default changes, TripleO will need to either update or deploy with this setting enabled. I’m going to try to detect this in the driver and fall back gracefully if it’s available but not enabled.
Still WIP and patch is relatively large, moving to 17.
Greetings Greg, - Logging: Notify the user if is using the V2 clone API or not: https://review.opendev.org/#/c/754849/ - Driver cleanup: No need to land any of that in this BZ. - Others: Not directly related to this BZ but It fixes the original ImageBusy error https://review.opendev.org/#/c/754397/ - We still need to unprotect snapshot code for ^
Regarding comment #8 no need to 'add support ' we only need to log information about it. Therefore, updating the case name.
Patch merged in stable/train.
*** Bug 1437392 has been marked as a duplicate of this bug. ***
*** Bug 1859370 has been marked as a duplicate of this bug. ***
Verified on: openstack-cinder-15.5.1-2.20210419143704.1ec01f3.el8ost.1.noarch Works as expected, passing automation and manual testing.
This feature is now about snapshot deletion only. The specific use case which involves volume deletion has been splitted out and it is tracked by bug 1997715.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:3483