Bug 1795398

Summary: Monitoring Dashboards: front end page should use console backend endpoint
Product: OpenShift Container Platform Reporter: bpeterse
Component: Management ConsoleAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1804918 (view as bug list) Environment:
Last Closed: 2020-07-13 17:13:28 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:
Bug Depends On:    
Bug Blocks: 1804918    

Description bpeterse 2020-01-27 21:26:25 UTC
Description of problem:

Currently the new monitoring dashboards page is bypassing the recently created endpoint.

Comment 1 Jakub Hadvig 2020-01-30 11:06:44 UTC
Based on the discussion with Andy, I'm assigning the issue to him, since he already has a good idea of what needs to be done.

Comment 2 bpeterse 2020-02-07 04:35:28 UTC
Setting the target to 4.5 as this should not block release.  Its a bug/tech debt.

Comment 3 Samuel Padgett 2020-02-07 16:04:38 UTC
(In reply to bpeterse from comment #2)
> Setting the target to 4.5 as this should not block release.  Its a bug/tech
> debt.

This one is probably a blocker because it means some users can't get the config maps. Moving back to 4.4.

We should also update to use the display names for the dashboards when we make this change.

Comment 4 Yadan Pei 2020-02-27 09:28:12 UTC
Hi Ben,

I see it's targeted to 4.5.0, is this intended? comment 3 says that we need to fix in 4.4

Comment 5 Samuel Padgett 2020-02-27 14:14:17 UTC
Bug 1804918 is tracking the 4.4 fix.

Comment 8 Yadan Pei 2020-03-06 06:20:32 UTC
1. Create metrics-reader cluster role and add user 'yapei' as metrics-reader
$ cat cluster-role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  name: metrics-reader
rules:
  - apiGroups:
      - ''
    resources:
      - namespaces
    verbs:
      - get
      - list
      - watch
$ oc create -f cluster-role.yaml
$ oc adm policy add-cluster-role-to-user metrics-reader yapei1

2. user 'yapei1' login as a normal user and visit /monitoring/dashboards/ directly, user 'yapei1' can view all dashboards correctly in Monitoring -> Dashboards withour errors

# oc get cm -n openshift-config-managed
Error from server (Forbidden): configmaps is forbidden: User "yapei1" cannot list resource "configmaps" in API group "" in the namespace "openshift-config-managed"


Verified on 4.5.0-0.ci-2020-03-04-223611

Comment 10 errata-xmlrpc 2020-07-13 17:13: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, 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:2409