Bug 2020000

Summary: Metrics view in Deployment reports "Forbidden" when not cluster-admin
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: high Docs Contact:
Priority: high    
Version: 4.8CC: anpicker, aos-bugs, jokerman, jonjacks, schituku, sreber, xiyuzhao, yapei
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2015806
: 2024206 (view as bug list) Environment:
Last Closed: 2021-11-22 21:47:05 UTC Type: ---
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: 2015806    
Bug Blocks: 2024206    

Comment 2 Siva Reddy 2021-11-17 00:38:06 UTC
clusterversion:
 4.9.0-0.nightly-2021-11-16-232713

Verification steps:
1. Login in OCP as a normal user
2. Change user to 'Administrator' perspective, create a Deployment with the user that has project admin role
3. Navigate to Deployment -> Deployment details page -> Metrics tab
4. Verify if user is able to check Metrics on deployment details page without any error
5. Update perspective from administrator to developer mode
6. Navigate to Topology ->  Deployment, select the deployment that was created on step2, then goto Observe tab
7. Verify if user is able to check Metrics on Observe tab without any error
8. Re-login OCP as cluster-admin
9. Repeat step3-7

Result:
   No error message found on Metrics, user is able to check Metrics normally and correctly

Comment 5 errata-xmlrpc 2021-11-22 21:47:05 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 (OpenShift Container Platform 4.9.8 bug fix 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/RHBA-2021:4712