Bug 1916960 - Web console does not display error message when target provider with incorrect URL is added
Summary: Web console does not display error message when target provider with incorrec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: General
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.0.0
Assignee: Jeff Ortel
QA Contact: Maayan Hadasi
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-16 00:00 UTC by Nandini Chandra
Modified: 2021-06-10 17:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-10 17:11:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen shot of OCPv in advisory state after incorrect URL was provided (25.59 KB, image/png)
2021-01-16 00:00 UTC, Nandini Chandra
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:2381 0 None None None 2021-06-10 17:11:37 UTC

Description Nandini Chandra 2021-01-16 00:00:57 UTC
Created attachment 1748040 [details]
screen shot of OCPv in advisory state after incorrect URL was provided

Description of problem:
-----------------------
OCPv providers are in Advisory state when incorrect URL is provided.
The status shows : Loading the inventory .

The UI should also show why the provider is in Advisory state.

See attached screenshot.


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
MTV 2.0


How reproducible:
-----------------
Always


Steps to Reproduce:
-------------------
1.Click 'Providers'. 
2.From the 'OpenShift Virtualization' tab, click the 'Add provider' button.
3.While adding OCPv, provide incorrect URL.


Actual results:
--------------
OCPv is in Advisory state when incorrect URL is provided. But the UI doesn't show why the provider is in Advisory state.


Expected results:
-----------------
If an appropriate message such as 'Incorrect URL' would be reflected in the UI, it would help with troubleshooting.


Additional info:
----------------

Comment 1 Fabien Dupont 2021-01-18 10:34:08 UTC
Would it be possible to get access to the environment where you see that behavior?
The tooltip says that the connection succeeded, so either the controller is "lying" or something is wrong with the inventory.

Comment 2 Nandini Chandra 2021-01-19 16:13:41 UTC
Provided environment details to Jeff and Fabien in a private email on Jan 18.

Comment 3 Jeff Ortel 2021-01-22 16:58:32 UTC
The controller performs a connection test by creating a k8s client.  When the URL or token is incorrect, this should result in failure.  However, it seems based on what Nandini reported that if the URL is (for example) for the console instead of the API server, the test succeeds.  I need to investigate further.

Comment 4 Jeff Ortel 2021-03-19 14:07:56 UTC
The connection test has been fixed and the result is properly reflected in the ConnectionTested [Required] condition.  However, based on my conversation with M. Turley, the UI may not be displaying Advisory and Required conditions correctly.

Comment 5 Mike Turley 2021-03-19 15:45:15 UTC
Yes, the mapping of conditions to severity icons is flawed, I'm aware of the issue: https://github.com/konveyor/forklift-ui/issues/457

The reason for the condition should be correctly displayed, however. Only the icon / severity label will be incorrect. I think fixing that may be out of the scope of this BZ.

Comment 6 Jeff Ortel 2021-04-06 16:29:10 UTC
Controller fixed in Feb.  https://github.com/konveyor/controller/pull/47

Comment 7 Fabien Dupont 2021-04-08 11:52:57 UTC
This fix should be part of build v2.0.0-14, iib:64369.

Comment 8 Maayan Hadasi 2021-04-19 09:17:01 UTC
Verified as fixed

The provider status is '!Critical' and shows this message:
!Connection test, failed: Get "https://api.mg03.cnv-qe.rhcloud.com:6443/api?timeout=32s": dial tcp: lookup api.mg03.cnv-qe.rhcloud.com on 172.30.0.10:53: no such host

MTV version:
2.0.0-17 / iib:66911

Comment 11 errata-xmlrpc 2021-06-10 17:11:27 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 (MTV 2.0.0 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/RHEA-2021:2381


Note You need to log in before you can comment on or make changes to this bug.