Ask Your Question

Cannot delete snapshot with ceph backend

asked 2016-04-04 07:23:12 -0600

updated 2016-04-04 07:24:45 -0600

Hi All,

Environment : Openstack_Juno, cinder version 1.1.1

I have created volume ("V1") and created snapshot from V1 as "Snap_1". From Snap_1 i have created a volume "V2", where ceph is my backend.

Now i couldn't able to delete Snap_1, cinder saying "its has dependency" where ceph is backend.

While doing rbd list with volume ID " rbd ls -l | grep <volume_id> .. Protected = true ...

Same environment with LVM as backend, I could able to delete it, May i know its bug with Ceph ?

Thanks in Advance !!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-11-29 04:59:26 -0600

eblock gravatar image

Hi, this is definitely not a bug, this is by design. Ceph creates the snapshots as COW images, that's why the snapshots are created immediately. But they have a dependency on their parents and only the diffs are in that snapshot. So if you want to delete snap_1, you either have to remove V2 and then delete Snap_1 or you flatten V2, then you should also be able to remove Snap_1. Hope this helps.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-04 07:23:12 -0600

Seen: 985 times

Last updated: Nov 29 '16