Created attachment 1235670 [details] engine and vdsm logs Description of problem: In our automation, we create a VM with 1 disk (the VM is cloned from a template as thin copy), create a snapshot to the VM, add a second disk, and one more snapshot that includes both disks. We are cloning a new VM from the second snapshot and removes the cloned VM. Delete the second disk, and when trying to remove the snapshot, the operation fails with: 2016-12-28 18:13:23,158+02 ERROR [org.ovirt.engine.core.bll.tasks.SPMAsyncTask] (DefaultQuartzScheduler5) [2dadba28] BaseAsyncTask::logEndTaskFailure: Task 'd44baa4f-60f1-4431-8dc1-22d0cdbe60aa' (Parent Command 'PrepareMerge', Parameters Type 'org.ovirt.engine.core.common.asynctasks.AsyncTaskParameters') ended with failure: -- Result: 'cleanSuccess' -- Message: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = Resource '03_lvm_5e4f145b-5215-4a8e-9982-743fc1513105.174d4b9f-d700-42e1-8d52-82180470795e' is not currently registered, code = 100', -- Exception: 'VDSGenericException: VDSErrorException: Failed to HSMGetAllTasksStatusesVDS, error = Resource '03_lvm_5e4f145b-5215-4a8e-9982-743fc1513105.174d4b9f-d700-42e1-8d52-82180470795e' is not currently registered, code = 100' Version-Release number of selected component (if applicable): ovirt-engine-4.1.0-0.3.beta2.el7.noarch vdsm-4.19.1-1.el7ev.x86_64 How reproducible: 100% Steps to Reproduce: 1. Clone a VM from template as thin copy (includes 1 disk) 2. Create snapshot 3. Add second disk to the VM 4. Add second snapshot 5. Clone a new VM from the second snapshot and remove it 6. Remove the second disk 7. Try to remove the second snapshot I tried to isolate the problem to avoid this long flow but seems it reproduced in that way only Actual results: The snapshot fails to delete with "VDSM host_mixed_2 command failed: Resource '03_lvm_5e4f145b-5215-4a8e-9982-743fc1513105.174d4b9f-d700-42e1-8d52-82180470795e' is not currently registered" Expected results: Additional info: Works great in 4.0.z
This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.
A simpler version to reproduce: 1. create a vm with a disk (either Preallocated or Thin Provision), let's call it vm01 2. create a template from that vm, let's call it vm01-template 3. create a new vm from the template, let's call it vm02 4. create a snapshot of vm02, let's call it vm02-s1 5. delete snapshot vm02-s1 of vm02 Raz, Can you please confirm that the steps above end with same results you encountered?
*** Bug 1398956 has been marked as a duplicate of this bug. ***
Verified on ovirt-engine-4.1.0.3-0.0.master.20170122091652.gitc6fc2c2.el7.centos Followed the steps to reproduce and the snapshot removal works