Bug 1850221

Summary: [v2v][UI]VM import from RHV: "Connection successful. Loading data" displayed when wrong RHV details provided
Product: OpenShift Container Platform Reporter: Ilanit Stein <istein>
Component: Console Kubevirt PluginAssignee: Filip Krepinsky <fkrepins>
Status: CLOSED DUPLICATE QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aos-bugs, cnv-qe-bugs, 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:
: 1850569 (view as bug list) Environment:
Last Closed: 2020-06-24 14:14:07 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: 1850569    

Description Ilanit Stein 2020-06-23 18:37:10 UTC
Description of problem:
In UI, VM import wizard:

When entering some random text to RHV URL, ca certificate, user, password,
Clicking check & save button 
Displays in the bottom of the wizard window:
 "Connection successful. Loading data" 
and then it is replaced with this message:
"Connection succeeded but could not read list of virtual machines from the RHV API instance"

This message is misleading, since the connection could not succeed with just random letters provided as RHV connection details. 

Version-Release number of selected component (if applicable):
CNV-2.4
vm-import-operator: quay.io/kubevirt/vm-import-operator:v0.0.3
vm-import-controller: quay.io/kubevirt/vm-import-controller:v0.0.3

Expected results:
There should be a message saying connection to RHV failed.

Comment 1 Piotr Kliczewski 2020-06-24 07:04:20 UTC
Based on code errors provided by ovirtsdk we are unable to distinguish whether we failed due to incorrect url, credentials or cert.
We need to come up with generic connection failure message.

Comment 2 Filip Krepinsky 2020-06-24 09:58:23 UTC
The UI is just using the CR statuses which says LoadingVmsListFailed. Not sure we can do much about it there.

Comment 3 Yaacov Zamir 2020-06-24 14:14:07 UTC
Moving to Console Kubevirt Plugin

https://bugzilla.redhat.com/show_bug.cgi?id=1850569

FYI:
@Nelly @Piotr @Tomas @Ilanit @Filip

*** This bug has been marked as a duplicate of bug 1850569 ***