Bug 1877257

Summary: Does not show the metrics result which from the graph link of administrator console for common user
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: Dev ConsoleAssignee: cvogt
Status: CLOSED DUPLICATE QA Contact: Gajanan More <gamore>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, jakumar, jwakely, nmukherj, viraj
Target Milestone: ---Keywords: Regression
Target Release: 4.7.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-09-22 13:06:02 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:
Attachments:
Description Flags
no result in developer console none

Description Junqi Zhao 2020-09-09 08:39:01 UTC
Created attachment 1714231 [details]
no result in developer console

Created attachment 1714231 [details]
no result in developer console

Description of problem:
common user, create pod under project, go to administrator console, select "Workloads -> Pods", take "Memory Usage" as an example,
the "Memory Usage" graph links to developer console query browser, URL is:
https://${console_route}/dev-monitoring/ns/test/metrics?query0=sum%28container_memory_working_set_bytes%7Bpod%3D%27memory-demo%27%2Cnamespace%3D%27test%27%2Ccontainer%3D%27%27%2C%7D%29+BY+%28pod%2C+namespace%29
that equals to
https://${console_route}/dev-monitoring/ns/test/metrics?query0=sum(container_memory_working_set_bytes{pod='memory-demo',namespace='test',container='',})+BY+(pod,+namespace)

but it does not show the result, see the picture.
it is the same for other graphs

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-09-08-123737

How reproducible:
always

Steps to Reproduce:
1. create project and deploy pod under it
# oc new-projec test
# oc -n test create -f - << EOF
apiVersion: v1
kind: Pod
metadata:
  name: memory-demo
spec:
  containers:
  - name: memory-demo-ctr
    image: polinux/stress
    resources:
      limits:
        memory: "200Mi"
      requests:
        memory: "100Mi"
    command: ["stress"]
    args: ["--vm", "1", "--vm-bytes", "150M", "--vm-hang", "1"]
EOF
2. Administrator console, "Workloads -> Pods" page, click on the "Memory Usage" graph
3.

Actual results:
but it does not show the result on developer query browser

Expected results:
show the memory usage

Additional info:

Comment 1 Jaivardhan Kumar 2020-09-10 11:00:24 UTC
This is regression, is fixed on https://bugzilla.redhat.com/show_bug.cgi?id=1876778

Comment 3 Vikram Raj 2020-09-22 13:06:02 UTC
I verified this on 4.6.0-0.nightly-2020-09-22-011738. This issue has been fixed in PR https://github.com/openshift/console/pull/6546 and ticket https://bugzilla.redhat.com/show_bug.cgi?id=1876778.

Marking it as duplicate.

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

Comment 4 Mia Doherty 2022-12-29 04:33:46 UTC Comment hidden (spam)
Comment 5 Aimee Bryant 2022-12-31 04:48:00 UTC Comment hidden (spam)
Comment 6 Isabel Lord 2023-02-07 04:17:32 UTC Comment hidden (spam)
Comment 7 SmartAngel 2024-10-04 10:19:00 UTC Comment hidden (spam)