Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1756123

Summary: Project admin can't access metrics - no RBAC policy matched
Product: OpenShift Container Platform Reporter: Matthew Robson <mrobson>
Component: MonitoringAssignee: Frederic Branczyk <fbranczy>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: alegrand, anpicker, erooth, fbranczy, gblomqui, kakkoyun, kgeorgie, lcosic, mloibl, pkrupa, steven.barre, surbania
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-18 14:52:10 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 Matthew Robson 2019-09-26 20:02:40 UTC
Description of problem:

oc adm top pod

Error from server (Forbidden): pods.metrics.k8s.io is forbidden: User "metrics-test" cannot list pods.metrics.k8s.io in the namespace "metrics-test": no RBAC policy matched

Upstream metrics-server added an aggregated reader cluster role for this purpose:

https://github.com/kubernetes-incubator/metrics-server/pull/149/files


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

3.11

How reproducible:

oc adm top pod as a project admin


Steps to Reproduce:
1.
2.
3.

Actual results:

Error from server (Forbidden): pods.metrics.k8s.io is forbidden: User "metrics-test" cannot list pods.metrics.k8s.io in the namespace "metrics-test": no RBAC policy matched


Expected results:

Project admin should be able to see metrics from project.


Additional info:

Comment 6 Frederic Branczyk 2019-10-23 09:10:31 UTC
https://github.com/openshift/openshift-ansible/pull/11978 was merged to setting status to modified.

Comment 10 errata-xmlrpc 2019-11-18 14:52:10 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-2019:3817