Bug 1757526 - [UI] Page Not Found (404) instead of a list of CRDs in UI
Summary: [UI] Page Not Found (404) instead of a list of CRDs in UI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1758207
TreeView+ depends on / blocked
 
Reported: 2019-10-01 18:14 UTC by Irina Gulina
Modified: 2020-05-13 21:26 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If an operator claimed a cluster-scoped CRD as an owned resource, the UI would fail to load content on the "All Instances" tab of the "Installed Operator" page. This has been fixed, and the tab contents now load correctly.
Clone Of:
: 1758207 (view as bug list)
Environment:
Last Closed: 2020-05-13 21:26:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
404 not found screenshot (66.31 KB, image/png)
2019-10-01 18:14 UTC, Irina Gulina
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 3477 0 'None' closed Bug 1757526: Handle cluster-scoped operands 2020-09-11 04:10:05 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-05-13 21:26:21 UTC

Description Irina Gulina 2019-10-01 18:14:41 UTC
Created attachment 1621500 [details]
404 not found screenshot

Description of problem:
In the UI, there is 404:Not Found instead of a list of cnv operands.

Version-Release number of selected component (if applicable):
checked for both alpha bundle 88 in brew, and 2.1.0 bundle 89 from stage

How reproducible:
always

Steps to Reproduce:
1. Install CNV
2. in UI: Installed Operators -> click CNV Operator -> All Instances tab. There is 404:Not Found. 


Actual results:
Screen attached. 


Expected results:
The list of operands like in the attachment to BZ #1716329

Comment 1 Ryan Hallisey 2019-10-24 21:50:38 UTC
moving out to 2.2.

Comment 2 Lev Veyde 2019-11-18 13:51:10 UTC
From debugging this together with the UI team (Yaacov Zamir), it looks like the source of the issue is that the UI sends namespace specific requests for global resources, which no longer works.

The bug should be probably moved to the UI team, since there is nothing we can do about this on the HCO side.

I.e. the requests are sent for /api/kubernetes/apis/cdi.kubevirt.io/v1alpha1/namespaces/default/cdis?limit=250 instead of /api/kubernetes/apis/cdi.kubevirt.io/v1alpha1/cdis?limit=250

It seems that the oc tool caches the resource definitions, so it knows if the resource type is actually a namespaced or not, and sends a properly formatted request - including the namespace only for namespaced resources and ignoring it for global ones. That logic however is no longer implemented at the API level, and the system considers it a wrong request, thus the issue that we see.

Comment 3 Fabian Deutsch 2019-11-19 13:37:19 UTC
Tomas, can you take this?

Comment 4 Tomas Jelinek 2019-11-19 13:55:07 UTC
actually it is an issue in the OLM UI, moving to the correct component.

Comment 6 Yanping Zhang 2019-11-22 05:58:43 UTC
Payload:     4.3.0-0.nightly-2019-11-21-122827
Checked on OCP 4.3 with above version: Installed Operators -> click CNV Operator -> All Instances tab, there is no "404:not found", but show "No Operands Found
" which is correct.
The bug is fixed, so move it to Verified.

Comment 8 errata-xmlrpc 2020-05-13 21:26:18 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/RHBA-2020:0062


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