Bug 1877257 - Does not show the metrics result which from the graph link of administrator console for common user
Summary: Does not show the metrics result which from the graph link of administrator c...
Keywords:
Status: CLOSED DUPLICATE of bug 1876778
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: cvogt
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-09 08:39 UTC by Junqi Zhao
Modified: 2023-07-10 08:59 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-22 13:06:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
no result in developer console (80.11 KB, image/png)
2020-09-09 08:39 UTC, Junqi Zhao
no flags Details

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)

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