Bug 2042619 - Overview page of the console is broken for hypershift clusters
Summary: Overview page of the console is broken for hypershift clusters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Samuel Padgett
QA Contact: Xiyun Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-19 20:23 UTC by Cesar Wong
Modified: 2022-03-10 16:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:40:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10884 0 None open Bug 2042619: Avoid runtime error when no CSVs 2022-01-19 20:44:23 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:41:09 UTC

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


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