Bug 1916960
Summary: | Web console does not display error message when target provider with incorrect URL is added | ||||||
---|---|---|---|---|---|---|---|
Product: | Migration Toolkit for Virtualization | Reporter: | Nandini Chandra <nachandr> | ||||
Component: | General | Assignee: | Jeff Ortel <jortel> | ||||
Status: | CLOSED ERRATA | QA Contact: | Maayan Hadasi <mguetta> | ||||
Severity: | high | Docs Contact: | Avital Pinnick <apinnick> | ||||
Priority: | high | ||||||
Version: | 2.0.0 | CC: | fdupont, istein, mguetta, mturley | ||||
Target Milestone: | --- | ||||||
Target Release: | 2.0.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-06-10 17:11:27 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: |
|
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. Provided environment details to Jeff and Fabien in a private email on Jan 18. 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. 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. 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. Controller fixed in Feb. https://github.com/konveyor/controller/pull/47 This fix should be part of build v2.0.0-14, iib:64369. 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 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 |
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: ----------------