Bug 1880946 - Deleting Deployment and DeploymentConfig while on the Detail tab is open shows Oh no screen
Summary: Deleting Deployment and DeploymentConfig while on the Detail tab is open show...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.6.0
Assignee: Christoph Jerolimov
QA Contact: Debsmita Santra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-21 08:24 UTC by Christoph Jerolimov
Modified: 2020-10-27 16:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:42:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6689 0 None closed Bug 1880946: Fix crash when Deployment is removed (pod data are not available) 2020-09-23 10:38:04 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:43:22 UTC

Description Christoph Jerolimov 2020-09-21 08:24:18 UTC
Description of problem:
When deleting a Deployment or DeploymentConfig in another browser tab (or with the cli) a Dev Console tab crashs when this Deployment or DeploymentConfig was opened and the "Detail" tab was opened.

Both cases shows the same error log in Development mode:

TypeError: Cannot read property 'pods' of undefined
    at PodRingSet (PodRingSet.tsx:19)
In the Production build this was handled by an Error Boundary "Oh no! Something went wrong."

But all other tabs shows a message "404: Not Found" after the D/DC was removed. Reloading this tab works also as expected and shows the "404: Not Found" message.


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

How reproducible:
Always

Steps to Reproduce:
1. Create a Deployment or DeploymentConfig (tested with a container image)
2. Open the detail page in a new tab
3. Remove the surrounding app or D/DC in another tab
4. Switch tab where you opened the detail page before

Actual results:
Crash / "Oh no! Something went wrong." screen was shown

Expected results:
That the message "404: Not Found" was shown similar to all other D/DC tabs.

Additional info:
None

Comment 1 Debsmita Santra 2020-09-24 17:09:48 UTC
verified this on build 4.6.0-0.nightly-2020-09-24-095222

Comment 4 errata-xmlrpc 2020-10-27 16:42:58 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


Note You need to log in before you can comment on or make changes to this bug.