Description of problem:
VM import from VMware to CNV wizard. VMware URL - It is not clear that only the FQDN / IP address is required. Users would usually/normally tend to enter https://<FQDN> - That will pass connection validation and vms detection, and the VM import can be triggered.
The VM import will fail, with an error message that do not reflect the problem.
v2v pod log show this error:
error 2020-10-20 10:42:36,452 - root - ERROR - virt-v2v error: could not parse '-ic vpx://administrator%40vsphere.local@https://rhev-node-05.rdu2.scalelab.redhat.com/Datacenter/host/Cluster/f02-h26-000-r620.rdu2.scalelab.redhat.com?no_verify=1'.
Original error message was: parse_uri: unable to parse URI
Version-Release number of selected component (if applicable):
This bug was reported during the "Migration to Openshift Virtualization Test day" on Oct 20 2020.
Note: we have a (?) help icon to open a info box that explain it, but users may miss it, in the libvirt import we have more bold hint about the url structure, we may do something similar.
Verified on 4.7.0-fc.0
When entering VMware URL that starts with https://, this error message apear:
"Hostname must not contain https prefix".
In addition the "Check & save" button is grayed out.
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.