Bug 1940314 - Failed to get type for Dashboard Kubernetes / Compute Resources / Namespace (Workloads)
Summary: Failed to get type for Dashboard Kubernetes / Compute Resources / Namespace (...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Andrew Pickering
QA Contact: hongyan li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-18 07:16 UTC by hongyan li
Modified: 2021-07-27 22:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:53:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen shot with error (113.95 KB, image/png)
2021-03-18 07:16 UTC, hongyan li
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:54:17 UTC

Description hongyan li 2021-03-18 07:16:26 UTC
Created attachment 1764283 [details]
screen shot with error

Created attachment 1764283 [details]
screen shot with error

Description of problem:
Failed to get type for Dashboard Kubernetes / Compute Resources / Namespace (Workloads)

Version-Release number of selected component (if applicable):
4.8.0-0.nightly-2021-03-18-000857

How reproducible:
always

Steps to Reproduce:
1.Go to Monitoring-Dashboards
2.Select DB Dashboard Kubernetes / Compute Resources / Namespace (Workloads)
3.Error displayed in Type dropdown box

Actual results:
Error displayed in Type dropdown box

Expected results:
Type should be displayed

Additional info:
The following curl command failed
curl 'https://console-openshift-console.apps.hongyli-0318.qe.devcluster.openshift.com/api/prometheus/api/v1/query_range?start=1616049115.278&end=1616050915.278&step=60&query=count%28namespace_workload_pod%3Akube_pod_owner%3Arelabel%7B%25%28clusterLabel%29s%3D%22%22%2C+namespace%3D%7E%22openshift-apiserver%22%2C+workload%3D%7E%22.%2B%22%7D%29+by+%28workload_type%29&timeout=30s' \
 
Response of the curl
{"status":"error","errorType":"bad_data","error":"1:53: parse error: unexpected character inside braces: '%'"}

Decode the URL, there is unexpected '%'
https://console-openshift-console.apps.hongyli-0318.qe.devcluster.openshift.com/api/prometheus/api/v1/query_range?start=1616049115.278&end=1616050915.278&step=60&query=count(namespace_workload_pod:kube_pod_owner:relabel{%(clusterLabel)s="",+namespace=~"openshift-apiserver",+workload=~".+"})+by+(workload_type)&timeout=30s

Comment 1 Andrew Pickering 2021-03-19 07:32:24 UTC
This appears to be an error in the query specified in the dashboard definition and it also causes an error when trying to view the dashboard in Grafana.

Looks like this was already fixed in kubernetes-mixin by https://github.com/kubernetes-monitoring/kubernetes-mixin/pull/558

Comment 2 Andrew Pickering 2021-03-19 07:35:18 UTC
Reducing this to medium severity since it is specific to one dashboard query and not a more general problem.

Comment 3 Andrew Pickering 2021-04-22 03:01:49 UTC
Should be fixed in OpenShift now.

Comment 5 hongyan li 2021-04-23 01:46:49 UTC
Test with payload 4.8.0-0.nightly-2021-04-22-182303

1.Go to Monitoring-Dashboards
2.Select DB Dashboard Kubernetes / Compute Resources / Namespace (Workloads)
3.Correct values display in Type dropdown box

Comment 8 errata-xmlrpc 2021-07-27 22:53:56 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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/RHSA-2021:2438


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