Bug 2067983 - Pipeline Metrics page not showing data for normal user
Summary: Pipeline Metrics page not showing data for normal user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: 4.10.z
Assignee: Vikram Raj
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On: 2041769
Blocks: 2070827
TreeView+ depends on / blocked
 
Reported: 2022-03-24 07:52 UTC by OpenShift BugZilla Robot
Modified: 2022-05-02 18:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-02 18:38:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 11226 0 None open [release-4.10] Bug 2067983: Pipeline metrics: use prometheus-tenancy API to get data 2022-03-28 11:59:20 UTC
Red Hat Product Errata RHBA-2022:1601 0 None None None 2022-05-02 18:39:10 UTC

Description OpenShift BugZilla Robot 2022-03-24 07:52:38 UTC
+++ This bug was initially created as a clone of Bug #2041769 +++

Created attachment 1851539 [details]
Pipeline metrics network calls are failing with 403 error

Description of problem:
Pipeline Metrics page not showing data for the normal user. All the API calls are failing with 403 error.


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


How reproducible:


Steps to Reproduce:
1. Login as a normal user with only self-provisioned role binding to a namespace.
2. Create a namespace and a pipeline to it
3. navigate to the Pipline -> Pipeline details -> Metrics

Actual results:
API calls are failing with 403 error

Expected results:
API calls should not fail with any error.

Additional info:

Comment 12 Christoph Jerolimov 2022-04-25 10:27:02 UTC
I could NOT verify this on 4.10.0-0.nightly-2022-04-24-083512

Comment 13 Christoph Jerolimov 2022-04-25 16:02:34 UTC
Thanks to Vikram I could verify this now on 4.10.11.

It was required to give the user additional view permissions on the openshift-pipeline namespace.

I created a follow-up bug #2078565 so that the Metrics tab is not shown if the user has not enough permissions.

Comment 16 errata-xmlrpc 2022-05-02 18:38:50 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.10.12 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-2022:1601


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