Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 876244

Summary: Create VM from snapshot fails when original vm is Locked
Product: Red Hat Enterprise Virtualization Manager Reporter: Jakub Libosvar <jlibosva>
Component: ovirt-engineAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, amureini, bazulay, dyasny, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Regression
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-14 07:06:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Jakub Libosvar 2012-11-13 16:16:04 UTC
Description of problem:
When user wants to create snapshot from a VM that is locked, it fails in CanDoAction

2012-11-12 22:01:28,138 WARN  [org.ovirt.engine.core.dal.job.ExecutionMessageDirector] (ajp-/127.0.0.1:8702-7) [2fee7c5e] The message key AddVmFromSnapshot is missing from bundles/ExecutionMessages
2012-11-12 22:01:28,171 INFO  [org.ovirt.engine.core.bll.AddVmFromSnapshotCommand] (ajp-/127.0.0.1:8702-7) [2fee7c5e] Lock Acquired to object EngineLock [exclusiveLocks= key: 2d4ce438-e43c-4188-acdd-84266b9351f6 value: VM
, sharedLocks= ]
2012-11-12 22:01:28,269 WARN  [org.ovirt.engine.core.bll.AddVmFromSnapshotCommand] (ajp-/127.0.0.1:8702-7) CanDoAction of action AddVmFromSnapshot failed. Reasons:VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_IS_LOCKED
2012-11-12 22:01:28,269 INFO  [org.ovirt.engine.core.bll.AddVmFromSnapshotCommand] (ajp-/127.0.0.1:8702-7) Lock freed to object EngineLock [exclusiveLocks= key: 2d4ce438-e43c-4188-acdd-84266b9351f6 value: VM
, sharedLocks= ]
2012-11-12 22:01:28,283 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-7) Operation Failed: [Cannot add VM: VM is locked. Please try again in a few minutes.]


Version-Release number of selected component (if applicable):
rhevm-3.1.0-28.el6ev.noarch

How reproducible:
Always

Steps to Reproduce:
1. Have a VM with snapshot in locked status
2. Try to create a vm from the snapshot
3.


Additional info:
It worked ni si24

Comment 1 Jakub Libosvar 2012-11-13 16:17:03 UTC
Created attachment 644201 [details]
logs

Comment 3 Barak 2012-11-13 17:55:42 UTC
It looks to me that this is work as designed.

Comment 4 Ayal Baron 2012-11-14 07:06:45 UTC
(In reply to comment #3)
> It looks to me that this is work as designed.

Indeed it is.