Bug 1868643

Summary: Volume not deactivated after ejecting CDROM
Product: [oVirt] ovirt-engine Reporter: Vojtech Juranek <vjuranek>
Component: BLL.StorageAssignee: Vojtech Juranek <vjuranek>
Status: CLOSED CURRENTRELEASE QA Contact: Amit Sharir <asharir>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.2.1CC: bugs, eshenitz, michal.skrivanek, nsoffer, sfishbai
Target Milestone: ovirt-4.4.6Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.6.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-14 07:30:21 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 Vojtech Juranek 2020-08-13 11:21:20 UTC
Description of problem:
When iso image created on block SD is attached as CD to a VM, it's activated during VM startup a deactivated when VM stops. Hoever, when CD is ejected (clicking on ... -> Change CD -> Eject), the LV is not deactivated. It should be deactivated after eject, not when VM stops.


How reproducible:
Always

Steps to Reproduce:
1. Upload iso image to iSCSI domain
2. Create a VM and attach iso image as a CD to it.
3. Start VM and click on Eject CD

Actual results:
LV with CD iso is active

Expected results:
LV is deactivated

Comment 1 Nir Soffer 2020-08-13 11:36:03 UTC
Keeping unused logical volume active is risky. For example the volume may
be deleted on the SPM. In this case the lv will refer to area on storage
which now possibly used by another disk.

Comment 2 Shir Fishbain 2021-01-19 09:42:45 UTC
QE doesn't have enough capacity to verify this bug on the 4.4.5 release.