Bug 1904941 - Insights status is always showing a loading icon
Summary: Insights status is always showing a loading icon
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Cyril
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-07 06:58 UTC by Yadan Pei
Modified: 2021-02-24 15:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
NOTABUG
Clone Of:
Environment:
Last Closed: 2021-02-24 15:38:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Insights only shows loading icon (167.54 KB, image/png)
2020-12-07 07:06 UTC, Yadan Pei
no flags Details
Insights status (176.50 KB, image/png)
2020-12-16 19:31 UTC, Cyril
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:39:59 UTC

Description Yadan Pei 2020-12-07 06:58:56 UTC
Description of problem:
on Cluster Overview Status card, Insights status is always showing a loading icon

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-04-013308

How reproducible:
Always

Steps to Reproduce:
1. cluster admin user goes to Home -> Overview -> Status 
2.
3.

Actual results:
1. Insights status is always loading even though query /api/prometheus/api/v1/query?query=health_statuses_insights{metric%3D~'low|moderate|important|critical'} is returning success
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"health_statuses_insights","container":"insights-operator","endpoint":"https","instance":"10.128.0.71:8443","job":"metrics","metric":"critical","namespace":"openshift-insights","pod":"insights-operator-ffcfb5c5-bssqx","prometheus":"openshift-monitoring/k8s","service":"metrics"},"value":[1607323731.447,"0"]},{"metric":{"__name__":"health_statuses_insights","container":"insights-operator","endpoint":"https","instance":"10.128.0.71:8443","job":"metrics","metric":"important","namespace":"openshift-insights","pod":"insights-operator-ffcfb5c5-bssqx","prometheus":"openshift-monitoring/k8s","service":"metrics"},"value":[1607323731.447,"0"]},{"metric":{"__name__":"health_statuses_insights","container":"insights-operator","endpoint":"https","instance":"10.128.0.71:8443","job":"metrics","metric":"low","namespace":"openshift-insights","pod":"insights-operator-ffcfb5c5-bssqx","prometheus":"openshift-monitoring/k8s","service":"metrics"},"value":[1607323731.447,"1"]},{"metric":{"__name__":"health_statuses_insights","container":"insights-operator","endpoint":"https","instance":"10.128.0.71:8443","job":"metrics","metric":"moderate","namespace":"openshift-insights","pod":"insights-operator-ffcfb5c5-bssqx","prometheus":"openshift-monitoring/k8s","service":"metrics"},"value":[1607323731.447,"0"]}]}}


Expected results:
1. Insights status should show correct data and clicking on it will show more details

Additional info:

Comment 1 Yadan Pei 2020-12-07 07:06:51 UTC
Created attachment 1737205 [details]
Insights only shows loading icon

Comment 2 Jakub Hadvig 2020-12-07 10:26:56 UTC
I can see warning Alert in the console that is stating: "100% of the prometheus-k8s/prometheus-k8s targets in Namespace NS openshift-monitoring namespace are down."
Not sure if thats related to the issue.

Comment 3 Cyril 2020-12-16 19:27:26 UTC
@Yadan - I tested in Cluster Version 4.7.0-0.nightly-2020-12-14-165231 and it seems to be fine. Please see the screenshot attached and re-test. Let me know if you are still seeing this issue.

Comment 4 Cyril 2020-12-16 19:31:06 UTC
Created attachment 1739741 [details]
Insights status

Comment 5 Yadan Pei 2020-12-17 08:32:41 UTC
@Cyril,

I checked on 4.7.0-0.nightly-2020-12-14-165231 and the issue is gone

Let me verify it

Comment 8 errata-xmlrpc 2021-02-24 15:38:25 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.7.0 security, bug fix, and enhancement 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-2020:5633


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