Bug 2169224

Summary: Virtualization Overview crashed after weekend cluster shutdown: "Oh no! Something went wrong"
Product: Container Native Virtualization (CNV) Reporter: Germano Veit Michel <gveitmic>
Component: User ExperienceAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.12.2CC: gouyang, tnisan
Target Milestone: ---   
Target Release: 4.12.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-29 17:36:10 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:

Description Germano Veit Michel 2023-02-12 22:41:25 UTC
Description of problem:

It's the second time this happened for me, and both times on a Monday. 
Looking at the error it rang a bell:

Description:
undefined is not an object (evaluating 'acc[getPrevDay(pointDay)]['end'] = idx - 1')

The above seems to be trying to get statistics for a Day the cluster was powered off?

Version-Release number of selected component (if applicable):
4.12.2

How reproducible:
* Every Monday if the cluster is down during the weekend.

Steps to Reproduce:
1. Shutdown cluster on Friday after work
2. Start on Monday morning
3. Go to Virtualization -> Overview Page

Actual results:
* Page will not lead

Expected results:
* Page loads

Additional info:

Component trace:
Copy to clipboard
MetricChart@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:5960:127
div
span
div
GridItem@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:1:172599
div
Grid@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:310093
article
Card@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:52604
ChartCard@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:5868:95
div
GridItem@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:1:172599
div
Grid@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:310093
div
ChartsCard
div
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:312774
OverviewTab
i@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:469913
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:58047
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:60092
Suspense
div
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:855141
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:858242
HorizontalNavFacade@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:60646
ClusterOverviewPage@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:3316:119
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:58047
I@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1499127
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:60092
Suspense
i@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:469913
section
PageSection@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:459980
div
div
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1499373
div
div
DrawerMain@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:318207
DrawerContent@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:1:14301
div
Drawer@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:285426
NotificationDrawer@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1157034
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:476802
S@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:93:80887
main
div
Page@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:47210
div
div
DrawerContentBody@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:1:155078
div
div
DrawerMain@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:318207
DrawerContent@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:1:14301
div
Drawer@https://console-openshift-console.apps.shift.toca.local/static/vendor-patternfly-core-chunk-c75a9aad8214faea8b03.min.js:5:285426
On@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:36:185055
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:859161
@https://console-openshift-console.apps.shift.toca.local/static/quick-start-chunk-b1d3ca0d8c571e2cc732.min.js:1:1262
s@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:236891
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1570254
Z@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1587992
st@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:36:145304
Z@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1587992
Z@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1587992
Z@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1587992
ModalProvider@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-modalProvider-chunk.js:46:47
Z@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1587992
i@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:816258
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1564680
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1562067
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1564478
ee@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1588087
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1590862
withI18nextTranslation(Unknown)@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:36:125398
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:58047
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:60092
t@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:21:54651
ne@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1591173
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:790893
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:1062170
s@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:612766
@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:141:244867
Suspense





Stack trace:
Copy to clipboard
@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:6215:34
reduce@[native code]
getDayMidpoints@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:6227:75
useXAxisTicks@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:6109:66
MetricChart@https://console-openshift-console.apps.shift.toca.local/api/plugins/kubevirt-plugin/exposed-ClusterOverviewPage-chunk.js:5962:113
na@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:58880
Hs@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:111317
wc@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:98329
Cc@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:98257
_c@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:98120
pc@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:95107
pc@[native code]
@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:44775
@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:262:3769
Vi@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:44721
qi@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:44656
sc@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:92484
Oa@https://console-openshift-console.apps.shift.toca.local/static/vendors~main-chunk-acfeaf58041962d138af.min.js:254:64177
Oa@[native code]
@https://console-openshift-console.apps.shift.toca.local/static/main-chunk-e113f3aa95bd94695cc0.min.js:1:393471
promiseReactionJob@[native code]

Comment 1 Guohua Ouyang 2023-02-12 23:22:32 UTC
Looks we need to backport https://bugzilla.redhat.com/show_bug.cgi?id=2167251 to 4.12.z

Comment 3 Guohua Ouyang 2023-03-03 05:55:50 UTC
verified on v4.12.2-3

Comment 13 errata-xmlrpc 2023-03-29 17:36:10 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 (OpenShift Virtualization 4.12.2 Images), 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/RHEA-2023:1523