Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cinder volume/snapshot cascade delete not successful #41

Open
databunnysg opened this issue Oct 23, 2023 · 1 comment
Open

Cinder volume/snapshot cascade delete not successful #41

databunnysg opened this issue Oct 23, 2023 · 1 comment

Comments

@databunnysg
Copy link
Contributor

Issue:
when using cinder client with --cascade parameter to delete volume with snapshot attached
#cinder delete --cascade 2762015d-cad8-4b03-a117-63e10ea9406b
Request to delete volume 2762015d-cad8-4b03-a117-63e10ea9406b has been accepted.
Unexpected result: the snapshot and any volume cloned from this snapshot not deleted
Expected result: volume, snapshot and volume cloned from snapshot all deleted

This also failed tempest test case: https://docs.openstack.org/tempest/latest/_modules/volume/test_volume_delete_cascade.html

@YiHuangDB
Copy link
Contributor

The root cause of this issue: OpenStack requires a snapshot to be independent of child volume. However, the existing truenas /zfs/snapshot/clone api does not support this.
For example, VolumeA  create snapsnot volumeA@snapshot,  volumeA@snapshot create child volume volumeAsnapshotchild. At this time, volumeA@snapshot should be able to removed safely. There should be no dependency between volumeA@snapshot and volumeAsnapshotchild. However this is not possible with the current Truenas/freenas /zfs/snapshot/clone api. Promote volumeAsnapshotchild won't help, cause as long as VolumeA exists there are dependencies prevented from volumeA@snapshot to be removed.

william-gr added a commit that referenced this issue Nov 30, 2023
Enhancement fix for #41 Cinder volume/snapshot cascade delete not successful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants