VM deferred disk snapshot fails resulting in permanently LOCKED image
|Category:||Core & System|
|Target version:||Release 4.14|
|Affected Versions:||OpenNebula 4.10|
Transcription of #2430 which has been closed with no proper fix.
How to reproduce:
deploy a vm, when the vm is running go to its storage section in sunstone.
click on snapshot, choose deferred. pick a name.
Go in the images section, you can seen the snapshot image in LOCKED state.
Go back to the VM, shut it down. Give it a few hours. The snapshot image stays forever in LOCKED state.
I've also somewhat cluelessly started/stopped the VM several times in an attempt to trigger the snapshot.
#5 Updated by Carlos Martín over 6 years ago
In the steps you provide to reproduce it, is the VM shutdown from sunstone, or from inside the guest?
If the VM is shutdown from inside the VM, the state will be changed to poweroff. In this state the deferred disk snapshots are not copied to the DS, and the image is supposed to stay in the locked state.