Bug 2064239 - Virtualization Overview page turns into blank page
Summary: Virtualization Overview page turns into blank page
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.10
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.11.0
Assignee: Yaacov Zamir
QA Contact: Guohua Ouyang
Depends On:
Blocks: 2088246
TreeView+ depends on / blocked
Reported: 2022-03-15 11:43 UTC by Oren Cohen
Modified: 2022-08-10 10:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-08-10 10:54:28 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift console pull 11514 0 None open Bug 2064239: Overview page crash if no labels available 2022-05-18 07:27:58 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:54:54 UTC

Description Oren Cohen 2022-03-15 11:43:14 UTC
Description of problem:

The new Virtualization Overview page is visible only if the user is logged in to the cluster with kube:admin user.
If s/he is logged in with IDP and has a role binding of cluster-admin, the overview page is visible for a split second, and then the whole page turns into blank.

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

How reproducible:

Steps to Reproduce:
1. log in with non kube:admin user, but with cluster-admin role assigned to the user.
2. go to Virtualization --> Overview page

Actual results:
the page turns blank almost immediately.

Expected results:
the page should be visible with contents.

Additional info:

Comment 1 Oren Cohen 2022-03-15 11:44:08 UTC
OCP version: 4.10.z
CNV version: 4.10.0

Comment 2 Guohua Ouyang 2022-03-15 12:46:57 UTC
Could not see the issue on OCP 4.10.4.
Are you using the dynamic plugin console?

Comment 3 Oren Cohen 2022-03-15 13:39:22 UTC
I'm not using the dynamic plugin but the default UI. The specific OCP version is 4.10.3

I can confirm it is working only with htpasswd identity provider (non-admins can't see the virtualization overview menu entry), but it doesn't work for other identity providers, such as Google or LDAP.

Comment 4 Oren Cohen 2022-03-15 16:37:15 UTC
FWIW, this is the UI console logs when loading the virtualization overview page when logged in with a cluster-admin user which is not the kubeadmin:

The page turns blank on line 106:

TypeError: t.labels is undefined
    f VirtualizationOverviewPage-chunk-d3d43389f252d7b1528f.min.js:1
    f VirtualizationOverviewPage-chunk-d3d43389f252d7b1528f.min.js:1
    f VirtualizationOverviewPage-chunk-d3d43389f252d7b1528f.min.js:1
    Sa vendors~main-chunk-ef6e956a76c708c2f12e.min.js:174875
    useMemo vendors~main-chunk-ef6e956a76c708c2f12e.min.js:174842
    f VirtualizationOverviewPage-chunk-d3d43389f252d7b1528f.min.js:1

Comment 5 Guohua Ouyang 2022-03-16 01:44:34 UTC
(In reply to Oren Cohen from comment #3)
> I'm not using the dynamic plugin but the default UI. The specific OCP
> version is 4.10.3
> I can confirm it is working only with htpasswd identity provider (non-admins
> can't see the virtualization overview menu entry), but it doesn't work for
> other identity providers, such as Google or LDAP.

thanks, I also tested it works with htpasswd identity provider.
so it's an issue for other identity providers.

Comment 6 Oren Cohen 2022-03-16 08:48:36 UTC
It also always happens when logged in with kubeadmin, on a specific cluster (cnv.engineering.redhat.com).
Reducing the bug severity as the overview page works as expected on other clusters I've tried.

Comment 8 Tiger Kaovilai 2022-04-07 17:11:03 UTC
This problem also happen to kube:admin user when navigating to k8s/virtualization/~new-from-template


Comment 11 Tiger Kaovilai 2022-04-21 02:30:47 UTC
nvm. Was using unsupported configuration running 4.10 CNV on OCP 4.9

Comment 12 Peter Lauterbach 2022-04-22 18:01:26 UTC
Tiger's use case of running OpenShift Virtualization 4.10 on OpenShift 4.9 is a valid use case, we allow people to do this to get pre-releases. 
New capabilities that require upgrades in OCP 4.10 obviously will not work, but the basic functionality of creating and running a VMs should not be broken like this.
Please triage as usual.

Comment 14 Yaacov Zamir 2022-05-17 05:42:22 UTC
moving to urgent because 4.10 is released, and we need to backport a fix ASP

Comment 19 Oren Cohen 2022-05-23 06:38:38 UTC
I'm not managing the ocp-virt cluster, but the cnv.engineering.redhat.com one.
@yzamir , could you please backport the fix to 4.10.z ?
I'm upgrading this cluster only to official released versions, and I guess this is the same as in ocp-virt cluster.

Comment 20 Yaacov Zamir 2022-05-23 13:09:38 UTC
the backport BZ is ON_QA:

Fix merged 4 days ago into 4.10 upstream

Comment 21 Guohua Ouyang 2022-05-24 01:39:25 UTC
I was meant to comment on 4.10.z bug, but commented to this one. :)

Comment 22 Guohua Ouyang 2022-05-24 01:57:16 UTC
verified on console master

Comment 24 errata-xmlrpc 2022-08-10 10:54:28 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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.


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