DescriptionKevin 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= ]
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.
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
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= ]