Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1904941

Summary: Insights status is always showing a loading icon
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, jhadvig, jokerman, spadgett, yapei
Target Milestone: ---Keywords: Regression
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
NOTABUG
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:38:25 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
Insights only shows loading icon
none
Insights status none

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