Bug 2042619

Summary: Overview page of the console is broken for hypershift clusters
Product: OpenShift Container Platform Reporter: Cesar Wong <cewong>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Xiyun Zhao <xiyuzhao>
Severity: high Docs Contact:
Priority: high    
Version: 4.10CC: aos-bugs, calfonso, spadgett, xiyuzhao
Target Milestone: ---   
Target Release: 4.10.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: 2022-03-10 16:40:58 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:

Description Cesar Wong 2022-01-19 20:23:20 UTC
Description of problem:
The overview page of the console shows an error when running on a Hypershift cluster.


Version-Release number of selected component (if applicable):
4.10.0-fc.1

How reproducible:
always

Steps to Reproduce:
1. Create a hypershift cluster
2. Navigate to the initial console page

Actual results:

An error displays:

Oh no! Something went wrong.

TypeError
Description:
Cannot read properties of undefined (reading 'status')

Component trace:
at https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/main-chunk-d6890ef0902315953113.min.js:1:617964
    at p.memo.t.children.e.children.t.reduxes.e.reduxes.t.reduxes.every.reduxID (https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/main-chunk-d6890ef0902315953113.min.js:1:541276)
    at S (https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/vendors~main-chunk-0aaea99a5babc25cb168.min.js:93:81468)
    at <anonymous> (https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/main-chunk-d6890ef0902315953113.min.js:1:542967)
    at S (https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/vendors~main-chunk-0aaea99a5babc25cb168.min.js:93:81468)
    at <anonymous> (https://console-openshift-console.apps.cewong-guest.hypershift.cesarwong.com/static/main-chunk-d6890ef0902315953113.min.js:1:274667)

Expected results:
The overview page displays

Additional info:

Sam Padgett traced the error to this line:
https://github.com/openshift/console/blob/226e400e29c34bddee459d533235e649b19c0955/frontend/public/components/dashboard/dashboards-page/cluster-dashboard/health-item.tsx#L152

In hypershift, there are no CSVs created out of the box in a cluster because the OLM packageserver runs outside of the cluster. It seems the above code assumes the existence of at least one CSV.

Comment 8 errata-xmlrpc 2022-03-10 16:40:58 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056