Bug 1922475 - Cannnot load deployment config
Summary: Cannnot load deployment config
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.7.0
Assignee: Christoph Jerolimov
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks: 1921603
TreeView+ depends on / blocked
 
Reported: 2021-01-29 20:49 UTC by Christoph Jerolimov
Modified: 2021-01-29 20:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-29 20:51:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Christoph Jerolimov 2021-01-29 20:49:00 UTC
Clone of https://bugzilla.redhat.com/show_bug.cgi?id=1921603 to mark 4.7 as 'tested' so that we can provide a fix for 4.6.

---
Original post:

Description of problem: When a project has more than 700 deployment config it results in below error when opening the page.

(https://console-openshift-console.apps.example.com/k8s/ns/preprod-esb/deploymentconfigs/xyz-bs/)


```
vendors~main-chunk-097f186a6bd6062a5833.min.js:159202 TypeError: Cannot read property 'pods' of undefined
    at a.a (deployment-config~deployment-config-overview-chunk-c0930d19396ba7f0219b.min.js:1)
    at No (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at Ks (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at Bs (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at Fs (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at Ms (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at vendors~main-chunk-097f186a6bd6062a5833.min.js:159202
    at t.unstable_runWithPriority (vendors~main-chunk-097f186a6bd6062a5833.min.js:159496)
    at li (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
    at hi (vendors~main-chunk-097f186a6bd6062a5833.min.js:159202)
```




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


How reproducible:


Steps to Reproduce:
1. Create a project with 700+ dc 
2. Try to open the dc page it fails to load and gives js error
3.

Actual results: Unable to open the page for deployment configs

Expected results: should be able to open the page properly


Additional info:  project with less number of dc and pods doesnt give the same error. Only two projects which have more than 700 DC have this error.


we cannot open DC page directly (https://console-openshift-console.apps.example.com/k8s/ns/preprod-esb/deploymentconfigs/xyz-bs/) 

but able to open all of its tabs except for Details tab if we hit the url directly (https://console-openshift-console.apps.example.com/k8s/ns/preprod-esb/deploymentconfigs/xyz-bs/pod or https://console-openshift-console.apps.example.com/k8s/ns/preprod-esb/deploymentconfigs/xyz-bs/events)
so somehow error happens only on "Details tab"

Comment 1 Christoph Jerolimov 2021-01-29 20:51:27 UTC
I could reproduce this in 4.5 and 4.6. The frontend error happens if a DeploymentConfig detail page was open and the API call for get Pod list needs a second "page" call to get the right Pods. This happen if the active project (namespace) has more then 250 running Pods in it.

Verified that this issue does not affect 4.7.

CLOSED this for 4.7 so that we can provide a fix for 4.6.


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