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

Bug 1802923

Summary: Network in and Network out metrics show 'no datapoints found' on pod details page for normal user
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: aos-bugs, jokerman
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-14 10:41:48 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 Yadan Pei 2020-02-14 05:47:44 UTC
Description of problem:
403 Forbidden error when gets Network in and Network out metrics on Pod Details page

Version-Release number of selected component (if applicable):
4.4.0-0.nightly-2020-02-13-192852

How reproducible:
Always

Steps to Reproduce:
1. normal user create a project and add some workloads
2. view metrics on project Overview at Home -> Projects 
3. view pod metrics on Workloads -> Pods page

Actual results:
2. Network in and Network out data are shown correctly in 'Network Transfer' cha
rt, also data can be queried at Monitoring -> Metrics in developer console
3. Network in and Network out metrics show 'No datapoints found.' and in browser developer console we see 403 Forbidden rterror
Request URL:https://<console_route>/api/prometheus/api/v1/query_range?start=1581646328.345&end=1581649928.345&step=60&query=sum%28irate%28container_network_receive_bytes_total%7Bpod%3D%27perl-1-6km8z%27%2C+namespace%3D%27yapei1-1%27%7D%5B5m%5D%29%29+by+%28pod%2C+namespace%29
Request URL:https://<console_route>/api/prometheus/api/v1/query_range?start=1581646329.198&end=1581649929.198&step=60&query=sum%28irate%28container_network_transmit_bytes_total%7Bpod%3D%27perl-1-6km8z%27%2C+namespace%3D%27yapei1-1%27%7D%5B5m%5D%29%29+by+%28pod%2C+namespace%29

Expected results:
3. Network in and Network out data are shown correctly without forbidden error

Additional info:

Comment 1 bpeterse 2020-02-14 10:41:48 UTC
I believe cause of this is the same as issue 1777486 which is in progress.

*** This bug has been marked as a duplicate of bug 1777486 ***