Created attachment 1843412 [details] Sample configmap to reproduce issue Created attachment 1843412 [details] Sample configmap to reproduce issue Description of problem: While trying to get metrics to show up in the openshift-monitoring UI today, the same configmap that had previously worked on 4.8 was throwing an error on 4.9. Something in dev console 4.9 may be broken which throws an error when trying to render a custom grafana dashboard through a configmap. This bug was almost certainly introduced by https://github.com/openshift/console/pull/9677 Error: at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1269419 at div at div at Se (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1271513) at Oe (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1272003) at div at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:332006) at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1272133 at o (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:237052) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:58095) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:60140) at Tt at s (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:284417) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:58095) at j at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:60140) at Suspense at section at m (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:33076) at div at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1580351) at div at div at c (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:485705) at d (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:80668) at div at d (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:549564) at l (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1274983) at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:574793 at S (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:93:77729) at main at div at O (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:657417) at div at div at c (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:158254) at div at div at c (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:485705) at d (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:80668) at div at d (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendor-patternfly-core-chunk-1937523a649088adc1c9.min.js:1:549564) at pn (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:36:169838) at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1107206) at t.default (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/quick-start-chunk-5bc2398e01824df3cee0.min.js:1:1223) at s (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:284417) at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1660187) at z (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1669729) at Je (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:36:133423) at z (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1669729) at z (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1669729) at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1656633) at c (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1653978) at Y (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1669859) at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1672565 at r (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:36:105679) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:58095) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:60140) at t (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:21:54700) at J (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1672864) at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:923478) at t.a (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:143:414586) at Suspense and TypeError: Failed to execute 'observe' on 'IntersectionObserver': parameter 1 is not of type 'Element'. at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/main-chunk-079818a575cbc34c7911.min.js:1:1527190 at jc (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:104246) at t.unstable_runWithPriority (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:221:3768) at Hi (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:44551) at Ec (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:103709) at pc (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:95010) at https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:44774 at t.unstable_runWithPriority (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:221:3768) at Hi (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:44551) at Wi (https://console-openshift-console.apps.dev-svc-4.10-112214.devcluster.openshift.com/static/vendors~main-chunk-3feaab52da8f86d7e0a0.min.js:213:44719) Version-Release number of selected component (if applicable): How reproducible: Reproducible every time Steps to Reproduce:` 1. Apply a configmap containing a grafana dashboard json in the "data" section (sample one attached to this issue) to the `openshift-config-managed` namespace while the gitops operator is installed. 2. Go to Observer -> Dashboards -> <select your custom dashboard from the dropdown menu> Actual results: The metrics dashboard throws this error on the screen because it can't render the dashboard properly. Expected results: The expected result would be to see the openshift-gitops dashboard and metrics would be visible.
Lowered the severity to medium since I think this is a fairly rare occurrence.
The fix is in build 4.10.0-0.nightly-2021-12-18-034942 Test with build 4.10.0-0.nightly-2021-12-21-130047 Still see error TypeError Description: Cannot read properties of undefined (reading 'data') Component trace: at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1279046 at o (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:228947) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:58474) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:60519) at jt at s (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:295246) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:58474) at j at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:60519) at Suspense at section at f (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:42934) at div at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1607144) at div at div at c (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:488424) at d (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:78745) at div at d (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:553939) at l (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1281900) at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:568448 at S (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:93:81464) at main at div at O (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:660864) at div at div at c (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:164600) at div at div at c (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:488424) at d (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:78745) at div at d (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendor-patternfly-core-chunk-fa3825d73edf5af0e3f8.min.js:1:553939) at pn (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:36:179289) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1113062) at t.default (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/quick-start-chunk-866969bf8bd192462bcd.min.js:1:1223) at s (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:295246) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1679107) at Y (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1694084) at Je (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:36:142874) at Y (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1694084) at Y (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1694084) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1675230) at c (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1672830) at z (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1694214) at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1696945 at r (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:36:103251) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:58474) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:60519) at t (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:21:55079) at J (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1697317) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:912280) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:857041) at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:150:412642) at Suspense Stack trace: TypeError: Cannot read properties of undefined (reading 'data') at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1279310 at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:72:63392 at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:150:414620 at t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:72:9377) at Object.t.a (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:72:63356) at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1279282 at Object.Sa [as useMemo] (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:213:63583) at Object.t.useMemo (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:205:5743) at https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/main-chunk-c628b39ddda557fe0636.min.js:1:1279268 at na (https://console-openshift-console.apps.hongyli-dec22.qe.devcluster.openshift.com/static/vendors~main-chunk-e36e84d8a1689e5b2733.min.js:213:58879)
This seems to be happening because the dashboard JSON in the ConfigMap is invalid, but that error case is not being handled correctly.
verify pass with pr and can see the dashboard openshift-gitops-metrics Detail see attached screenshot and the attached config map
Wait for the pr is in payload
Test with payload 4.10.0-0.nightly-2022-01-22-102609 Dashboard can be see
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.10.3 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-2022:0056