Why can not we delete a volume with snapshot, what is the dependency?

asked 2019-10-29 02:38:26 -0600

shrey_chauhan gravatar image

I understand A Cinder snapshot is a point-in-time, read-only copy of a Cinder volume. Once the snapshot is created, why is it not allowed to delete the parent volume.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-10-29 03:50:56 -0600

You cannot delete a volume unless snapshots and backups related to it are deleted/cleaned. In the code if you see this function, it is clear that it will remove snapshots first. Furthemore for deleting the volume you have to delete all the references to it. See this function in cinder.py for more understanding.


If the volume has copy on write clones Openstack will not be able to delete it. Instead it will be kept as a silent volume and will be deleted when it's snapshot and clones are deleted.

I hope this answers your question !!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-10-29 02:38:26 -0600

Seen: 201 times

Last updated: Oct 29 '19