Bug 1863000

Summary: [v2v][UI][VMware to CNV VM import] Deployment of VMware controller v2v-vmware fail if VMware URL contains space at the end
Product: OpenShift Container Platform Reporter: Ilanit Stein <istein>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Nandini Chandra <nachandr>
Severity: high Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, dagur, fkrepins, glekner, nachandr, yzamir
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1867980 1893277 (view as bug list) Environment:
Last Closed: 2020-10-27 16:22:35 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:
Bug Depends On:    
Bug Blocks: 1893277    
Attachments:
Description Flags
v2v-vmware deployment fail screenshot
none
v2v-vmware.log none

Description Ilanit Stein 2020-08-03 12:57:53 UTC
Created attachment 1703292 [details]
v2v-vmware deployment fail screenshot

Description of problem:
In VM import wizard,  deployment of VMware controller v2v-vmware will fail,
if the VMware URL contains a space at the end.

$ oc logs v2v-vmware-6f54d8b584-bxtks
...
panic: parse https://10.1.41.37%20/sdk: invalid URL escape "%20" [recovered]
        panic: parse https://10.1.41.37%20/sdk: invalid URL escape "%20"
...

Version-Release number of selected component (if applicable):
OCP-4.5/CNV-2.4

How reproducible:
100%

Comment 1 Ilanit Stein 2020-08-03 12:58:38 UTC
Created attachment 1703293 [details]
v2v-vmware.log

Comment 2 Filip Krepinsky 2020-08-11 10:23:49 UTC
the validation should be fixed both on frontend and backend. Created a new BZ for the backend part: https://bugzilla.redhat.com/show_bug.cgi?id=1867980

Comment 5 Nandini Chandra 2020-10-08 21:18:12 UTC
Verified in CNV 2.5

Verified that the following error message is displayed when the 'vCenter hostname' contains any space whether it's in the beginning, middle or end.
"Hostname must not contain white spaces"

Comment 7 errata-xmlrpc 2020-10-27 16:22:35 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196