Description of problem:
I can not remove VM with snapshot in preview mode. (VM is powered off)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a snapshot
2. Preview the snapshot
3. Turn off the VM
4. Remove the VM
"Cannot remove VM. VM is previewing a Snapshot."
VM will be removed.
Allon, any storage limitation on removing disk in preview?
it think it means that one of the images in the chain has 2 volumes linked to it, the original and the previewed one
(In reply to Omer Frenkel from comment #1)
> it think it means that one of the images in the chain has 2 volumes linked
> to it, the original and the previewed one
> Allon, any storage limitation on removing disk in preview?
In the old API this should work (but need to double check).
In the SPM-less API, you'd just have to remove all the volumes.
There is an issue with allowing this: since the snapshot might contain memory volumes, the engine has logic of reference count for these volumes,
if the count is more than 1, the memory volumes are not deleted because it is assumed they are in use by other snapshot.
when vm is in preview, and the preview has memory volumes, the count is 2 because the active snapshot is also referencing the volumes.
so the result is the vm is removed but we leave unused memory volumes in the storage, which is not good.
we should improve the logic around this, i suggest to re-think about this in 4.0 where we plan to improve the implementation of memory volumes in the engine.
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.
With https://gerrit.ovirt.org/#/c/50478/ the memory volumes are not an issue anymore.
oVirt 4.0.0 has been released, closing current release.