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

Bug 1093047

Summary: Failed to commit custom preview of snapshot
Product: Red Hat Enterprise Virtualization Manager Reporter: Kevin Alon Goldblatt <kgoldbla>
Component: ovirt-engineAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acanan, acathrow, amureini, ebenahar, gklein, iheim, knesenko, lpeer, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: org.ovirt.engine-root-3.4.0-17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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
vdsm and engine logs none

Description Kevin Alon Goldblatt 2014-04-30 13:23:06 UTC
Created attachment 891179 [details]
vdsm and engine logs

Description of problem:
Custom Preview of snapshot fails to commit

Version-Release number of selected component (if applicable):
vdsm-4.14.7-0.1.beta3.el6ev.x86_64
rhevm-3.4.0-0.15.beta3.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1.Create a vm with 4 disks
2.Create a snapshot with 1 disk only
3.Select to Custom Preview the snapshot
4.Changed the selection of the engine configuration and selected to commit
5.The operation failed with candoaction 

Actual results:
The commit snapshot action fails to execute

Expected results:
The Commit operation of custom preview snaphots should complete

Additional info:
014-04-30 14:01:06,058 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.HSMClearTaskVDSCommand] (org.ovirt.thread.pool-4-thread-1) FINISH, HSMClearTaskVDSCommand, log id: 42a69dc5
2014-04-30 14:01:06,058 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.SPMClearTaskVDSCommand] (org.ovirt.thread.pool-4-thread-1) FINISH, SPMClearTaskVDSCommand, log id: 5891a7e8
2014-04-30 14:01:06,060 INFO  [org.ovirt.engine.core.bll.SPMAsyncTask] (org.ovirt.thread.pool-4-thread-1) BaseAsyncTask::RemoveTaskFromDB: Removed task 160611e7-904e-4605-8211-b990f6bca078 from DataBase
2014-04-30 14:01:06,060 INFO  [org.ovirt.engine.core.bll.CommandAsyncTask] (org.ovirt.thread.pool-4-thread-1) CommandAsyncTask::HandleEndActionResult [within thread]: Removing CommandMultiAsyncTasks object for entity 84ea029a-5bf8-4469-b7d6-760897c4f61e
2014-04-30 14:02:23,719 INFO  [org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand] (ajp-/127.0.0.1:8702-1) [5c55d836] Lock Acquired to object EngineLock [exclusiveLocks= key: 12550b1b-6fea-4d65-a517-a143d719450b value: VM
, sharedLocks= ]
2014-04-30 14:02:23,720 WARN  [org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand] (ajp-/127.0.0.1:8702-1) [5c55d836] CanDoAction of action RestoreAllSnapshots failed. Reasons:VAR__ACTION__REVERT_TO,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_SNAPSHOT_DOES_NOT_EXIST
2014-04-30 14:02:23,720 INFO  [org.ovirt.engine.core.bll.RestoreAllSnapshotsCommand] (ajp-/127.0.0.1:8702-1) [5c55d836] Lock freed to object EngineLock [exclusiveLocks= key: 12550b1b-6fea-4d65-a517-a143d719450b value: VM
, sharedLocks= ]

Comment 1 Daniel Erez 2014-05-01 06:44:12 UTC
Seems that the issue is reproduced only when selecting the "Active VM" on custom preview (due to some changes in command validation). Lowering severity to high as it affects only that special use case.

Comment 2 Elad 2014-05-12 15:34:18 UTC
Commit to a pre-viewd snapshot that contains the configuration file of the 'Active VM' with the disk of the snapshot (not the 'Active VM') succeeds. 

Note that when committing a snapshot that contains only 'Active VM' components (disk and conf.), user doesn't get any report about the result of the snapshot restore. https://10.35.163.99/ovirt-engine/webadmin/

Verified using av9 against av8.1 where the bug reproduces

Comment 3 Elad 2014-05-12 15:40:10 UTC
*The link for the bug is: https://bugzilla.redhat.com/show_bug.cgi?id=1096884

Comment 4 Itamar Heim 2014-06-12 14:07:40 UTC
Closing as part of 3.4.0