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:
Created attachment 1737205 [details] Insights only shows loading icon
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.
@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.
Created attachment 1739741 [details] Insights status
@Cyril, I checked on 4.7.0-0.nightly-2020-12-14-165231 and the issue is gone Let me verify it
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