Bug #3533

VM deferred disk snapshot fails resulting in permanently LOCKED image

Added by Nuno Taborda over 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:01/29/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:Release 4.14
Resolution:invalid Pull request:
Affected Versions:OpenNebula 4.10

Description

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.

History

#1 Updated by Nuno Taborda over 6 years ago

Performing a live snapshot (instead of deferred) will successfully create an usable image:

onevm disk-snapshot --live <vm-name> <disk> <image-name>

#2 Updated by Ruben S. Montero over 6 years ago

  • Target version set to Release 4.14

#3 Updated by Ruben S. Montero over 6 years ago

  • Category set to Core & System

#4 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Pending to New

#5 Updated by Carlos Martín over 6 years ago

Hi,

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.

#6 Updated by Carlos Martín about 6 years ago

  • Status changed from New to Closed
  • Resolution set to invalid

Also available in: Atom PDF