Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1595339

Summary: [v2v] v2v wrapper fails on searching for iso domain on the storage
Product: [oVirt] ovirt-ansible-collection Reporter: Mor <mkalfon>
Component: v2v-conversion-hostAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: ahadas, bugs, michal.skrivanek, tgolembi
Target Milestone: ovirt-4.4.3Flags: rbarry: ovirt-4.4?
tgolembi: planning_ack?
tgolembi: devel_ack?
tgolembi: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-01-07 18:58:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1913347    
Bug Blocks: 1592791    
Attachments:
Description Flags
logs none

Description Mor 2018-06-26 16:38:15 UTC
Description of problem:
v2v wrapper from ovirt-ansible-v2v-conversion-host-1.4.1-1 causing V2V process on MIQ to fail with the following error:
2018-06-25 21:32:01,024:INFO: Wrapper version 5, uid=36 (virt-v2v-wrapper:579)
2018-06-25 21:32:01,025:INFO: Will store virt-v2v log in: /var/log/vdsm/import/v2v-import-20180625T213201-27183.log (virt-v2v-wrapper:581)
2018-06-25 21:32:01,025:INFO: Will store state file in: /tmp/v2v-import-20180625T213201-27183.state (virt-v2v-wrapper:582)
2018-06-25 21:32:01,025:INFO: Path to CA certificate not specified, trying VDSM default: /etc/pki/vdsm/certs/cacert.pem (virt-v2v-wrapper:626)
2018-06-25 21:32:01,027:DEBUG: is_iso_domain check for /rhev/data-center/mnt/blockSD/ba2a6b97-e88f-4871-95e2-09a1636d4ddd/dom_md/metadata (virt-v2v-wrapper:283)
2018-06-25 21:32:03,969:DEBUG: is_iso_domain check for /rhev/data-center/mnt/blockSD/6a96947d-4b1c-429d-81dc-1530dfb51eb5/dom_md/metadata (virt-v2v-wrapper:283)
2018-06-25 21:32:06,881:DEBUG: is_iso_domain check for /rhev/data-center/mnt/blockSD/d7dc27a6-ac3a-4879-9fa7-709ab72938c5/dom_md/metadata (virt-v2v-wrapper:283)
2018-06-25 21:32:06,883:ERROR: Wrapper failure (virt-v2v-wrapper:726)
Traceback (most recent call last):
  File "/usr/bin/virt-v2v-wrapper.py", line 647, in <module>
    check_install_drivers(data)
  File "/usr/bin/virt-v2v-wrapper.py", line 492, in check_install_drivers
    iso_domain = find_iso_domain()
  File "/usr/bin/virt-v2v-wrapper.py", line 316, in find_iso_domain
    is_iso_domain(os.path.join(sub[0], 'metadata')):
  File "/usr/bin/virt-v2v-wrapper.py", line 284, in is_iso_domain
    with open(path, 'r') as f:
IOError: [Errno 2] No such file or directory: '/rhev/data-center/mnt/blockSD/d7dc27a6-ac3a-4879-9fa7-709ab72938c5/dom_md/metadata'
2018-06-25 21:32:06,885:INFO: Removing password files (virt-v2v-wrapper:728)

Version-Release number of selected component (if applicable):
MIQ master.20180619230249_84e9fa9
RHV 4.2.4.5-0.1.el7_3

How reproducible:
100%

Steps to Reproduce:
1. Run migration of a VM from VMware to RHV on iSCSI source and target storage.

Actual results:
Fails with error.

Expected results:
No error.

Additional info:

Comment 1 Mor 2018-06-26 16:40:26 UTC
Created attachment 1454717 [details]
logs

Comment 2 Tomáš Golembiovský 2018-06-26 18:29:06 UTC
Fixed upstream by commit: 

    db553963e27a47bb8aae913a668c4e8ee9d278c8

Comment 3 Michal Skrivanek 2018-06-27 04:47:42 UTC
We need to support ISOs on block domains. Why is it a problem?

Comment 4 Tomáš Golembiovský 2018-06-27 10:12:36 UTC
Right now the wrapper looks only for ISO storage domain which oVirt supports only on NFS. If we want to search for ISOs in all storage domains I need to investigate that possibility more.

Comment 5 Ryan Barry 2018-08-15 20:12:30 UTC
Deferring until we can investigate ISOs on other domain types

Comment 6 Tomáš Golembiovský 2019-07-09 12:05:56 UTC
We are investigating the possibility of distributing the ISO in other way so that we wouldn't have to rely on data domain.

Comment 7 Tomáš Golembiovský 2020-07-20 11:10:47 UTC
We don't have any alternative how to handle this. IMS needs to keep relying on the ISO (from RHV 4.3) still being in ISO domain on RHV 4.4.

Comment 8 Arik 2021-01-07 18:58:38 UTC
We are going to keep requiring the ISO to reside in an ISO domain for v2v conversions.

Comment 9 Arik 2021-01-07 19:01:28 UTC
Actually the issue is fixed then by the patch mentioned in comment 2