Bug 1377849

Summary: LV is not deactivated after live merge when the VM is running on HSM
Product: [oVirt] vdsm Reporter: Ala Hino <ahino>
Component: CoreAssignee: Ala Hino <ahino>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.17.11CC: amureini, bugs, nsoffer, ratamir, tnisan
Target Milestone: ovirt-4.0.6Flags: tnisan: ovirt-4.0.z?
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 4.18.16   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:25:56 UTC 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:

Description Ala Hino 2016-09-20 18:59:21 UTC
Description of problem:
After live merge of a snapshot of a VM running on HSM, the LV is not deactivated and the device is not removed from /dev/sdUUID

How reproducible:
100%

Steps to Reproduce:
1. create a VM
2. add a block disk if any size
3. run the VM on HSM
4. create a snapshot
4. delete the snapshot while the VM is running

Actual results:
LV isn't deactivated and device is not removed from /dev/sdUUID

Expected results:
LV to be deactivated and device to be removed

Additional info:
Useful commands to verify the issue:
* dmsetup table | grep volUUID
* ls -al /dev/sdUUID/
In both commands output the volume should not present.

Comment 1 Kevin Alon Goldblatt 2016-11-20 15:51:10 UTC
Verified with the following code:
-------------------------------------------
rhevm-4.0.6-0.1.el7ev.noarch
vdsm-4.18.999-759.git435a852.el7.centos.x86_64

Verified with the following scenario:
-------------------------------------------
Description of problem:
After live merge of a snapshot of a VM running on HSM, the LV is not deactivated and the device is not removed from /dev/sdUUID

How reproducible:
100%

Steps to Reproduce:
1. create a VM
2. add a block disk if any size
3. run the VM on HSM
4. create a snapshot
4. delete the snapshot while the VM is running

Actual results:
LV IS NOW DEACTIVATED and device IS NOW removed from /dev/sdUUID

* dmsetup table | grep volUUID - RETURNED NOTHING
* ls -al /dev/sdUUID/ - NO LONGER DISPLAYS the device
In both commands output the volume IS NOT present.


MOVING TO VERIFIED!