Bug 1408977 - Failed to cold merge snapshot on Command 'PrepareMerge' ended with failure code = 100
Summary: Failed to cold merge snapshot on Command 'PrepareMerge' ended with failure co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Ala Hino
QA Contact: Raz Tamir
URL:
Whiteboard:
: 1398956 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-28 16:27 UTC by Raz Tamir
Modified: 2017-02-01 15:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-01 15:00:05 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: blocker+


Attachments (Terms of Use)
engine and vdsm logs (423.43 KB, application/x-gzip)
2016-12-28 16:27 UTC, Raz Tamir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 69619 0 master MERGED Cold Merge: Support merge of shared base parent 2017-01-17 10:32:49 UTC
oVirt gerrit 70619 0 ovirt-4.1 MERGED Cold Merge: Support merge of shared base parent 2017-01-17 12:11:43 UTC

Description Raz Tamir 2016-12-28 16:27:41 UTC
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

Comment 1 Red Hat Bugzilla Rules Engine 2016-12-29 10:27:12 UTC
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.

Comment 2 Ala Hino 2017-01-01 14:09:08 UTC
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?

Comment 3 eberman 2017-01-10 11:03:24 UTC
*** Bug 1398956 has been marked as a duplicate of this bug. ***

Comment 4 Raz Tamir 2017-01-22 18:32:16 UTC
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


Note You need to log in before you can comment on or make changes to this bug.