Bug 1735778

Summary: when block-based SD is used for iso, iso is not ejected from the vm when ejected through admin portal
Product: Red Hat Enterprise Virtualization Manager Reporter: Marian Jankular <mjankula>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.4CC: michal.skrivanek, Rhev-m-bugs, tnisan
Target Milestone: ---Flags: lsvaty: testing_plan_complete-
Target Release: ---   
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: 2019-08-19 14:10:04 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 Marian Jankular 2019-08-01 12:33:02 UTC
Description of problem:
when block-based SD for iso, iso is not ejected from the vm when ejected through admin portal

Version-Release number of selected component (if applicable):
4.3.4.3-0.1.el7

How reproducible:
everytime

Steps to Reproduce:
1. start the vm with iso from blockbased storage
2. eject iso in "Change CD" in admin portal
3. put blockbased storage into maintenance
4, try to migrate the vm to the different host

Actual results:
migration will fail with error:

2019-08-01 08:53:16,676+02 ERROR [org.ovirt.engine.core.vdsbroker.monitoring.VmAnalyzer] (ForkJoinPool-1-worker-1) [] Migration of VM 'test-iso' to host 'host1' failed: Bad volume specification {'address': {'bus': '1', 'controller': '0', 'type': 'drive', 'target': '0', 'unit': '0'}, 'index': 2, 'iface': 'ide', 'apparentsize': 0, 'specParams': {}, 'imageID': 'fbf703d6-60fb-421f-9506-60086aeb67af', 'readonly': True, 'truesize': 0, 'type': 'disk', 'domainID': '68c612ca-64b3-48d6-bacb-ecfb36972943', 'reqsize': '0', 'format': 'raw', 'poolID': '58ea5064-996f-11e9-9e4a-0001020304e5', 'device': 'cdrom', 'path': '', 'propagateErrors': 'report', 'name': 'hdc', 'bootOrder': '2', 'volumeID': '4bbf9334-8bec-4c38-927d-88d5833ad523', 'diskType': 'file', 'alias': 'ua-648e9eef-eb94-4db6-bce4-b16d5610bfd2', 'discard': False, 'volumeChain': [{'domainID': '68c612ca-64b3-48d6-bacb-ecfb36972943', 'leaseOffset': 105906176, 'volumeID': '4bbf9334-8bec-4c38-927d-88d5833ad523', 'leasePath': '/dev/68c612ca-64b3-48d6-bacb-ecfb36972943/leases', 'imageID': 'fbf703d6-60fb-421f-9506-60086aeb67af', 'path': '/rhev/data-center/mnt/blockSD/68c612ca-64b3-48d6-bacb-ecfb36972943/images/fbf703d6-60fb-421f-9506-60086aeb67af/4bbf9334-8bec-4c38-927d-88d5833ad523'}]}.


Expected results:
either iso will be ejected or engine will not let SD to be switched to the maintenance

Additional info:

Comment 1 Michal Skrivanek 2019-08-02 07:23:50 UTC
possibly a consequence of bug 1589763

Comment 2 Tal Nisan 2019-08-19 14:10:04 UTC

*** This bug has been marked as a duplicate of bug 1589763 ***