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

Bug 1710897

Summary: [v2v][UI] VMware providers are saved under too long names
Product: OpenShift Container Platform Reporter: Ilanit Stein <istein>
Component: Console Kubevirt PluginAssignee: Marek Libra <mlibra>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, bthurber, cnv-qe-bugs, fkrepins, gouyang, mguetta, mlibra, ncredi, sgordon, tjelinek
Target Milestone: ---Flags: mlibra: needinfo-
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.2.0-0.ci-2019-08-02-184554/ Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-30 16:27:11 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:
Attachments:
Description Flags
vmware_name_screenshot
none
Screenshot (fixed) none

Description Ilanit Stein 2019-05-16 14:15:46 UTC
Created attachment 1569529 [details]
vmware_name_screenshot

Description of problem:
VMware providers, are saved under names, that are too long.
When they are picked from the list of the remembered providers, 
their name cannot be fully viewed (see attached screenshot) 


Version-Release number of selected component (if applicable):
hco_tag: v.2.0.0-12

How reproducible:
100%

Expected results:
Save VMware providers under a shorter name, that can be fully seen in the UI.

Comment 1 Filip Krepinsky 2019-05-21 10:20:22 UTC
This identifies the vcenter.

We could either
- show a tooltip with the full name
- add option to name the vcenters with a custom name when saving the secret

Comment 2 Marek Libra 2019-07-30 08:16:34 UTC
The best option here is in new field with predefined value but allowing the user to provide whatever name (s)he likes.

That can be seen as a new feature and we are in bug-fixing phase now.

So to fix, I propose no aditional changes to the UI but generate the name differently:

The name is no longer than 35 letters.
Composed as: [USERNAME]-[URL]-[UNIQUE]

where
USERNAME - prefix of VMware username - up to 15 letters before '@' (shortened if needed)
URL - prefix of VMware URL, up to "30 - USERNAME.length" characters
UNIQUE - 5 auto generated characters

Comment 3 Tomas Jelinek 2019-07-30 10:05:58 UTC
+1, sounds good

Comment 4 Marek Libra 2019-07-30 12:52:40 UTC
Patch: https://github.com/kubevirt/web-ui-components/pull/530

Comment 5 Tomas Jelinek 2019-09-30 15:05:49 UTC
Since the v2v has been removed from 2.1.0, retargeting bugs to 2.1.1 to make sure they will be verified on the right version.

Comment 6 Brett Thurber 2019-10-21 19:11:19 UTC
Moving to ON_QA.

Comment 7 Nelly Credi 2019-11-11 12:27:15 UTC
please add fixed in version

Comment 8 Marek Libra 2019-11-12 09:23:30 UTC
The change was merged on Jul 30

Comment 9 Maayan Hadasi 2019-12-11 11:40:10 UTC
Created attachment 1643860 [details]
Screenshot (fixed)

Verified as fixed in version: CNV 2.2.0-10

vCenter instance is identified as described in comment #2:

The name is no longer than 35 letters.
Composed as: [USERNAME]-[URL]-[UNIQUE]

where
USERNAME - prefix of VMware username - up to 15 letters before '@' (shortened if needed)
URL - prefix of VMware URL, up to "30 - USERNAME.length" characters
UNIQUE - 5 auto generated characters

Comment 11 errata-xmlrpc 2020-01-30 16:27:11 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, 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/RHEA-2020:0307