Bug 1930546

Summary: Monitoring-dashboard-workload keep loading when user with cluster-role cluster-monitoring-view login develoer console
Product: OpenShift Container Platform Reporter: hongyan li <hongyli>
Component: Dev ConsoleAssignee: Vikram Raj <viraj>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: low Docs Contact: Srivaralakshmi Ramani <srr>
Priority: medium    
Version: 4.7CC: aos-bugs, cjerolim, gamore, hmishra, hongyli, jakumar, nmukherj, viraj
Target Milestone: ---Flags: srr: needinfo-
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, when an error occurred due to a user not having the required access for a namespace, the *Workload* drop-down menu in the *Monitoring* dashboard page continuously displayed a loading-in-progress icon. The current release fixes this issue. Now, the *Monitoring* dashboard page displays an error message indicating that a *Forbidden* error has occurred. (link:https://bugzilla.redhat.com/show_bug.cgi?id=1930546[*BZ#1930546*])
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:45:22 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:
Description Flags
Dev console screenshot none

Description hongyan li 2021-02-19 06:33:01 UTC
Created attachment 1757998 [details]
Dev console screenshot

Description of problem:
Monitoring-dashboard-workload keep loading when user with cluster-role cluster-monitoring-view rolebingding user login developer console and select a project

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2021-02-18-110409

How reproducible:
always

Steps to Reproduce:
1.Assign cluster-role cluster-monitoring-view to a user
#oc adm policy add-cluster-role-to-user cluster-monitoring-view testuser-4
2.login developer console with the user
3.Go to monitoring page and select a project, such as kube-system
4.The graphs show "Forbidden", but Workload dropdown list keep loading

Actual results:
Monitoring-dashboard-workload keep loading

Expected results:
May display Error or Forbidden

Additional info:

Comment 3 Christoph Jerolimov 2021-03-23 12:12:40 UTC
Verified on 4.8.0-0.nightly-2021-03-22-064955
Kubernetes version v1.20.0+39c0afe
API server https://api.jakumar.devcluster.openshift.com:6443

Comment 4 Christoph Jerolimov 2021-03-23 12:14:12 UTC
Update Jira status

Comment 7 Srivaralakshmi Ramani 2021-06-17 16:09:42 UTC
Hi Vikram and Gajanan, I have updated the Doc Text field. PTAL and let me know if the text looks good. Thanks.

Comment 8 Vikram Raj 2021-06-17 16:16:09 UTC
Hi Srivaralakshmi, Doc text looks good to me. Thanks.

Comment 10 errata-xmlrpc 2021-07-27 22:45:22 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.8.2 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.

https://access.redhat.com/errata/RHSA-2021:2438