Bug 1894013

Summary: [v2v][Testday] VMware to CNV VM import]VMware URL: It is not clear that only the FQDN/IP address is required without 'https://'
Product: OpenShift Container Platform Reporter: Ilanit Stein <istein>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 4.6CC: aos-bugs, glekner, tjelinek, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
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: 2021-02-24 15:29:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ilanit Stein 2020-11-03 10:34:42 UTC
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):
OCP-4.6/CNV-2.5

Additional info:
This bug was reported during the "Migration to Openshift Virtualization Test day" on Oct 20 2020.

Comment 1 Yaacov Zamir 2020-11-04 13:21:37 UTC
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.

Comment 4 Ilanit Stein 2020-12-27 11:56:27 UTC
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.

Comment 6 errata-xmlrpc 2021-02-24 15:29:22 UTC
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.

https://access.redhat.com/errata/RHSA-2020:5633