Bug 2060924

Summary: Console white-screens while using debug terminal
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Zac Herman <zherman>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, jhadvig, yanpzhan
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.10.0-0.nightly-2022-01-31-012936 Cluster ID: 20f3b657-8e2b-485c-b73a-408d76478d5c Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.105 Safari/537.36
Last Closed: 2022-08-10 10:52:11 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: 2065672    

Description Samuel Padgett 2022-03-04 15:04:36 UTC
Steps to reproduce:

1. Perspectives -> Developer
2. +Add -> Container image
3. Type nginx then hit submit
4. Click deployment in topology view
5. Wait for crash-loop status
6. Click status and click debug in terminal

I see a whitescreen. I believe we're trying to render an object instead of a string showing the error message.

Error:

Objects are not valid as a React child (found: a: pods "nginx-8699d9b4d5-fcflp-debug-g7q5k" not found). If you meant to render a collection of children, use an array instead.

vendors~main-chunk-704882886958c49b4e68.min.js:174875 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=a%3A%20pods%20%22nginx-8699d9b4d5-fcflp-debug-g7q5k%22%20not%20found for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at _o (vendors~main-chunk-704882886958c49b4e68.min.js:263:51096)
    at p (vendors~main-chunk-704882886958c49b4e68.min.js:263:52712)
    at g (vendors~main-chunk-704882886958c49b4e68.min.js:263:53813)
    at vendors~main-chunk-704882886958c49b4e68.min.js:263:55890
    at Da (vendors~main-chunk-704882886958c49b4e68.min.js:263:66927)
    at Hs (vendors~main-chunk-704882886958c49b4e68.min.js:263:113121)
    at xc (vendors~main-chunk-704882886958c49b4e68.min.js:263:98327)
    at Cc (vendors~main-chunk-704882886958c49b4e68.min.js:263:98255)
    at _c (vendors~main-chunk-704882886958c49b4e68.min.js:263:98118)
    at pc (vendors~main-chunk-704882886958c49b4e68.min.js:263:95105)

Comment 3 Yanping Zhang 2022-03-21 07:45:01 UTC
Checked on ocp 4.11 with payload 4.11.0-0.nightly-2022-03-20-113855
Steps to verify:
1. Perspectives -> Developer
2. +Add -> Container image
3. Type nginx then hit submit
4. Click deployment in topology view
5. Wait for crash-loop status
6. Click status and click debug in terminal, now an alert shows up in page:
Danger alert:pods "nginx-c74756b45-cc9p4-debug-fdzzq" not found
The whitescreen issue is fixed.

Comment 5 errata-xmlrpc 2022-08-10 10:52:11 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069