Damans227 commented on issue #12002:
URL: https://github.com/apache/cloudstack/issues/12002#issuecomment-4056304853

   To add context, per [Ceph snapshot 
docs](https://docs.ceph.com/en/reef/rbd/rbd-snapshot/), a snapshot can be 
"protected" to serve as a parent for clones (e.g. template base images). 
Protected snapshots can't be deleted until unprotected, and can't be 
unprotected until all clones are flattened/deleted.
   
   CloudStack's own code acknowledges this in 
[LibvirtStorageAdaptor.java#L1172-L1206](https://github.com/apache/cloudstack/blob/main/plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/LibvirtStorageAdaptor.java#L1172-L1206):
   
   "RBD volume can have snapshots and while they exist libvirt can't remove the 
RBD volume. We have to remove those snapshots first"
   
   It loops through all snapshots, unprotects them if protected, then removes 
them, that too, all before deleting the image. 
   
   So the Ceph side is always consistent, it's just the DB that's left behind.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to