You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Orphaned snapshots remain after deleting volumes in CLVM_NG primary storage #14154
Issue: Orphaned snapshots remain after deleting volumes in CLVM_NG primary storage
I'm seeing an issue with CLVM_NG primary storage where snapshots persist for volumes that have already been deleted.
Reproduction steps:
Deploy a VM with a single root volume that has an associated volume snapshot.
Create a new volume from that snapshot.
Detach the root volume from the VM.
Attach the newly created volume to the VM.
Delete the original volume (the one with the associated snapshot).
Observed behavior:
The snapshot remains in the system, still linked to the deleted volume.
Additional observations:
When deleting the volume, I can confirm that the LVM logical volumes (LVs) associated with both the root volume and its snapshot are deleted on the KVM hosts. So the underlying storage is cleaned up correctly.
However, the snapshot entry is not removed from the database/GUI
If I then manually delete the snapshot from the "Volume Snapshot" section, the operation reports success and the snapshot is no longer displayed in the GUI. This suggests the deletion works, but only when triggered explicitly against the snapshot record.
Expected behavior:
Deleting a volume should also remove (or orphan-clean) any snapshots associated with it, or at minimum the snapshot should no longer reference a non-existent volume.
@mbertolina , I think this is expected behaviour. After you delete a volume you can still create a new volume from any snapshot that was created from the old one, and the snapshot is expected to be deleted as a separate entity.
@DaanHoogland thanks for your reply. What is the reason of having an snapshot with a reference to a deleted volume?
Expected behavior:
Deleting a volume should also remove (or orphan-clean) any snapshots associated with it, or at minimum the snapshot should no longer reference a non-existent volume.
@DaanHoogland thanks for your reply. What is the reason of having an snapshot with a reference to a deleted volume?
Expected behavior: Deleting a volume should also remove (or orphan-clean) any snapshots associated with it, or at minimum the snapshot should no longer reference a non-existent volume.
that last bit could be discussed, but on the other hand a volume is re-storable if it has not yet been garbage collected. Volumes and snapshots are first class citizens. Snapshots have a lifecycle not necessarily links to the volume they where created from, but thay are still created from the volume (even if it doesn't anymore exist) If this would lead to bugs these need to be addressed of course. Did you encounter any, @mbertolina ?
Activity
mbertolina commentedon Sep 11, 2026
It may be related to #13331
DaanHoogland commentedon Sep 30, 2026
@mbertolina , I think this is expected behaviour. After you delete a volume you can still create a new volume from any snapshot that was created from the old one, and the snapshot is expected to be deleted as a separate entity.
mbertolina commentedon Sep 30, 2026
@DaanHoogland thanks for your reply. What is the reason of having an snapshot with a reference to a deleted volume?
Expected behavior:
Deleting a volume should also remove (or orphan-clean) any snapshots associated with it, or at minimum the snapshot should no longer reference a non-existent volume.
DaanHoogland commentedon Oct 1, 2026
that last bit could be discussed, but on the other hand a volume is re-storable if it has not yet been garbage collected. Volumes and snapshots are first class citizens. Snapshots have a lifecycle not necessarily links to the volume they where created from, but thay are still created from the volume (even if it doesn't anymore exist) If this would lead to bugs these need to be addressed of course. Did you encounter any, @mbertolina ?