Bug 1251958

Summary: VDSM: Live merge fails after a disk containing a snapshot has been extended
Product: Red Hat Enterprise Virtualization Manager Reporter: rhev-integ
Component: vdsmAssignee: Adam Litke <alitke>
Status: CLOSED ERRATA QA Contact: Aharon Canan <acanan>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.1CC: acanan, alitke, amureini, bazulay, ecohen, gwatson, lpeer, lsurette, mkalinin, ratamir, tnisan, ycui, yeylon, ylavi
Target Milestone: ovirt-3.5.7Keywords: ZStream
Target Release: 3.5.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: vdsm-4.16.27-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1232481 Environment:
Last Closed: 2016-01-12 20:34:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1232481    
Bug Blocks:    

Comment 1 Aharon Canan 2015-10-06 12:27:00 UTC
Verified using the following versions:
---------------------------------------
rhevm-3.5.5-0.1.el6ev.noarch - running on Rhel6.7
vdsm-4.16.27-1.el7ev.x86_64 - running on Rhel7.1

Scenario 1:
----------------
1. Create a VM with 1gb preallocated disk (probably thin as well, didn't test that) in a block-based domain.
2. Create a snapshot.
3. Extend the disk to 2gb.
4. Start the VM.
5. Delete the snapshot - Live merge works well!


same verification like in https://bugzilla.redhat.com/show_bug.cgi?id=1241433 - same issue and 2 bugs - engine and vdsm

Comment 2 Adam Litke 2015-10-22 13:50:18 UTC
This will fail when the VM is not running on an SPM host as described in bug 1274323

Comment 3 Adam Litke 2015-10-22 13:51:40 UTC
Moving back to ASSIGNED per previous comment.

Comment 5 Yaniv Lavi 2015-10-28 14:07:57 UTC
Why did you move this to 3.5.7?

Comment 6 Tal Nisan 2015-11-01 11:20:06 UTC
See comment #2, the bug is not completely fixed

Comment 7 Adam Litke 2015-11-03 14:20:16 UTC
Talked with Tal and we decided to move this back to MODIFIED and track the backport of bug 1274323 in a new clone.  It will just keep things simpler.

To re-verify, you can rerun the scenario in comment one ensuring that the VM runs on the SPM host.

Comment 8 Aharon Canan 2015-12-24 10:18:20 UTC
Verified using the following versions:
---------------------------------------
rhevm-3.5.7-0.1.el6ev.noarch - running on Rhel6.7
vdsm-4.16.31-1.el7ev.x86_64 - running on Rhel7.2

Scenario 1:
----------------
1. Create a VM with 1gb preallocated disk (probably thin as well, didn't test that) in a block-based domain.
2. Create a snapshot.
3. Extend the disk to 2gb.
4. Start the VM on SPM.
5. Delete the snapshot

Scenario 2:
--------------------
1) Create a VM with 1gb preallocated disk in a block-based domain.
2) Create a snapshot.
3) Create a second snapshot.
4) Extend the disk to 2gb.
5) Start the VM on SPM.
6) Delete the second snapshot


Same flows on HSM will be verified on https://bugzilla.redhat.com/show_bug.cgi?id=1292129

Also, didn't face any errors like in https://bugzilla.redhat.com/show_bug.cgi?id=1232481#c28

Comment 11 errata-xmlrpc 2016-01-12 20:34:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0034.html