Bug 1800501 - 'pod is not defined' error when view k8s-resources-namespace and k8s-resources-pod dashboard
Summary: 'pod is not defined' error when view k8s-resources-namespace and k8s-resource...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.4.0
Assignee: Andrew Pickering
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-07 09:40 UTC by Yadan Pei
Modified: 2020-05-04 11:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-04 11:34:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 4317 0 None closed Bug 1800501: Monitoring Dashboards: Don't show cards until variables have loaded 2020-12-26 06:54:32 UTC
Red Hat Product Errata RHBA-2020:0581 0 None None None 2020-05-04 11:35:11 UTC

Description Yadan Pei 2020-02-07 09:40:52 UTC
Description of problem:
These charts in k8s-resources-namespace dashboard are not shown in console:
Receive Bandwidth
Transmit Bandwidth
Rate of Received Packets
Rate of Transmitted Packets
Rate of Received Packets Dropped
Rate of Transmitted Packets Dropped
and there's "pod is not defined error"

This error is also found in 'k8s-resources-pod' dashboard

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

How reproducible:
Always

Steps to Reproduce:
1. visit /monitoring/dashboards page, choose k8s-resources-namespace from drop down list

Actual results:
1. There are errors in browser console, also some charts are not shown either while these charts are correctly shown in Grafana console
Receive Bandwidth
Transmit Bandwidth
Rate of Received Packets
Rate of Transmitted Packets
Rate of Received Packets Dropped
Rate of Transmitted Packets Dropped
ReferenceError: "pod is not defined"
    anonymous vendors~main-chunk-93d333ee75638f5125d7.min.js line 12 > Function:8
    p 208-chunk-3bf09a7292229ace4248.min.js:1
    j 208-chunk-3bf09a7292229ace4248.min.js:1
    a vendors~main-chunk-93d333ee75638f5125d7.min.js:4755
    a vendors~main-chunk-93d333ee75638f5125d7.min.js:4755
    j 208-chunk-3bf09a7292229ace4248.min.js:1
    a vendors~main-chunk-93d333ee75638f5125d7.min.js:4755
    a vendors~main-chunk-93d333ee75638f5125d7.min.js:4755
    a vendors~main-chunk-93d333ee75638f5125d7.min.js:4755
    ue 208-chunk-3bf09a7292229ace4248.min.js:1
    Li vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    ha vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    da vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    fa vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Ku vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Bu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Nu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Iu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    ho vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    unstable_runWithPriority vendors~main-chunk-93d333ee75638f5125d7.min.js:149587
    so vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    ho vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    po vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Au vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    $i vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    pe 208-chunk-3bf09a7292229ace4248.min.js:1
backend.js:6:2315
    r backend.js:6
    Ia vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    callback vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    No vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Lo vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Uu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    unstable_runWithPriority vendors~main-chunk-93d333ee75638f5125d7.min.js:149587
    so vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Uu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Iu vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    ho vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    unstable_runWithPriority vendors~main-chunk-93d333ee75638f5125d7.min.js:149587
    so vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    ho vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    po vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    Au vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    $i vendors~main-chunk-93d333ee75638f5125d7.min.js:149293
    pe 208-chunk-3bf09a7292229ace4248.min.js:1

this leads to 400 Bad Request error in request, such as  
https://<console_route>/api/prometheus/api/v1/query_range?start=1581066557.585&end=1581068357.585&step=60&query=sum%28irate%28container_network_receive_bytes_total%7Bnamespace%3D%7E%22%22%2C+pod%3D%7E%22%22%7D%5B%24interval%5D%29%29+by+%28pod%29&timeout=5s

Expected results:
1. No JS errors and other charts can be shown correctly

Additional info:

Comment 3 Yadan Pei 2020-02-17 03:48:39 UTC
View `k8s-resources-namespace` and `k8s-resources-pod` dashboard, no 'pod is not defined error' error and charts are all displayed very well on page


Verified on 4.4.0-0.nightly-2020-02-16-205302

Comment 5 errata-xmlrpc 2020-05-04 11:34:48 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, 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-2020:0581


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