Bug 1852689

Summary: Opening Terminal tab of a node which has disk pressure will got js error and blank page
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:10:31 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:
Bug Depends On:    
Bug Blocks: 1852790, 1853033    
Attachments:
Description Flags
Node Disk Pressure
none
Node Disk Pressure Terminal Message none

Description Yadan Pei 2020-07-01 06:04:59 UTC
Created attachment 1699415 [details]
Node Disk Pressure

Description of problem:
When a node has DiskPressure, on Node lists page we will show 'Disk Pressure', viewing its Terminal tab will got js error and blank page

Version-Release number of selected component (if applicable):
    4.5.0-0.nightly-2020-06-30-003734

How reproducible:
Always

Steps to Reproduce:
1. When some node has DiskPressure(see screenshot `Node Diskpressure`), visit its Terminal tab


Actual results:
1. page becomes blank and js error are reported
Oh no! Something went wrong.
TypeError
Description:

c.containerStatuses is undefined

Component Trace: 
in E
    in Unknown
    in Unknown
    in w
    in Unknown
    in w
    in Unknown
    in t
    in t
    in div
    in Data
    in StatusBox
    in div
    in Unknown
    in Unknown
    in Unknown
    in Unknown
    in w
    in Unknown
    in w
    in Unknown
    in s
    in DetailsPage
    in Unknown
    in c
    in Unknown
    in w
    in t
    in t
    in div
    in div
    in section
    in d
    in Unknown
    in w
    in w
    in div
    in div
    in f
    in p
    in div
    in p
    in NotificationDrawer
    in Unknown
    in w
    in main
    in div
    in b
    in component
    in t
    in t
    in t
    in t

Stack Trace: 
E@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/node-detail-chunk-de1e2371d8729e185a92.min.js:1:6234
Fo@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:55337
ha@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:62378
Ks@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:99519
Bs@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:84010
Ns@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:81035
Ds@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:79608
di/<@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:41759
t.unstable_runWithPriority@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:144:3878
li@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:41488
di@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:41707
pi@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:41640
Is@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:136:79935
notify@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:23:75934
a</t.notifyNestedSubs@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:23:75503
f</n.notifySubscribers@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:65:2428
a</t.handleChangeWrapper@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:23:75571
v@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:17:122529
b/</</<@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/main-chunk-5bae70193ec819545f9a.min.js:1:89823
dispatch@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/vendors~main-chunk-ad08a18433ffab6d64a8.min.js:17:126016
l/<@https://console-openshift-console.apps.tbuskeypub-1.qe.azure.devcluster.openshift.com/static/main-chunk-5bae70193ec819545f9a.min.js:1:84212

Expected results:
1. Node terminal is opened without error

Additional info:

Comment 2 Jakub Hadvig 2020-07-01 09:49:23 UTC
Was able to reproduce the issue on latest 4.6.

Comment 5 Yadan Pei 2020-07-27 05:39:04 UTC
verification blocked by bug 1852357 now

Comment 6 Yadan Pei 2020-08-19 07:34:19 UTC
Created attachment 1711813 [details]
Node Disk Pressure Terminal Message

Comment 7 Yadan Pei 2020-08-19 07:34:52 UTC
when node is at DiskPressure, goes to its Terminal tab

on the terminal page we will show an alert message "The debug pod failed. Pod The node had condition: [DiskPressure]" and terminal can not be opened

verified on 4.6.0-0.nightly-2020-08-18-165040

Comment 9 errata-xmlrpc 2020-10-27 16:10:31 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 Container Platform 4.6 GA 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/RHBA-2020:4196