Bug 1677545

Summary: Some of the Namespaces are missing from page when there are over 1000 namespaces
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas, sfu, spadgett, wking
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In some cases, the 3.11 cluster console would mishandle the final page of large data sets, causing some items to be missed in resource list views. The bug has been fixed, and all items now correctly appear when looking at large resource lists.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-11 05:38:34 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:
Attachments:
Description Flags
RequestedNsAreMissingFromPage none

Description XiaochuanWang 2019-02-15 08:23:45 UTC
Created attachment 1535059 [details]
RequestedNsAreMissingFromPage

Description of problem:
When there are over 1k Namespaces, the following Namespaces are failed to display. Esp. When there are lots of Terminating namespaces are arranged in alphabetical order, the Active ones are actually blocked to display.


Version-Release number of selected component (if applicable):
version is 4.0.0-0.nightly-2019-02-13-204401
console image:
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256   65d45bc11133e47d739c729969241654813830bb315ad805e71e7a677a8e73e6   1764b80c1df4   37 hours ago    261 MB

console repo commit id: e05b0365a496188c5cd35fc9efa51a153bb2ae95

How reproducible:
Always

Steps to Reproduce:
1.# # oc get projects | wc -l
1225

# oc get ns |grep xiaocwan
xiaocwan-p                                   Active        15m
xiaocwan-t                                   Active        3h33m
xiaocwan1-t                                  Active        3h14m

2. Check the http requests/response on Namespaces page
Wait for all requests are done, such as https://console-openshift-console.apps.preserve-chaoyang.qe.devcluster.openshift.com/api/kubernetes/api/v1/namespaces?limit=250&continue=eyJ2Ijoi

3. Try to filter or search the keyword of the Namespace on page.(which name can get from the last response)


Actual results:
2. All the requests get 200 with correct response, but not all namespaces are displayed on page (such as xiaocwan-t from the last response). Please refer to the screenshot.

It only diplays 1000 namespaces in total.

3. Can not filter those namespaces on page.

Expected results:
2. Each response should display well on console.
3. All namespace should have been filtered out.

Additional info:
Projects page went well.

Comment 1 Samuel Padgett 2019-02-20 17:19:18 UTC
4.0 fix: https://github.com/openshift/console/pull/1204

Comment 2 W. Trevor King 2019-02-28 09:05:24 UTC
(In reply to Samuel Padgett from comment #1)
> 4.0 fix: https://github.com/openshift/console/pull/1204

This landed four days ago (although I guess this bug needs to stay "Assigned" because it targets 3.11?).

Comment 4 W. Trevor King 2019-03-01 06:20:26 UTC
Now that this has been targeted to 4.0.0, and with console#1204 landed (and in both installer v0.13.0 and v0.13.1), I think we can move this to ON_QA (but I'm still figuring Bugzilla out, so don't be shy about telling me what I'm doing wrong ;).

Comment 5 Samuel Padgett 2019-03-01 14:12:34 UTC
This bug is present in 3.11 and we plan to backport the fix to 3.11.z. Moving back to assigned and updating the target release.

Comment 6 Samuel Padgett 2019-03-01 15:00:47 UTC
3.11.z fix: https://github.com/openshift/console/pull/1246

Comment 8 XiaochuanWang 2019-03-22 08:28:30 UTC
This is fixed in OCP v3.11.98

I tried 1035 projects in total:
# oc projects -q | wc -l
1035

On Projects page:
Request to /api/kubernetes/api/v1/namespaces?limit=250, GET Reponse 250 projects
Request 3 times to /api/kubernetes/api/v1/namespaces?limit=250&continue=eyJ2IjoibWV0YS..., GET Response for 250*3=750 projects
The last request to /api/kubernetes/api/v1/namespaces?limit=250&continue=eyJ2IjoibWV0YS..., GET Response for 35 projects

It does totally get 1035 projects from the 4 response.

Comment 10 errata-xmlrpc 2019-04-11 05:38:34 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, 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-2019:0636

Comment 11 Samuel Padgett 2019-12-17 19:52:17 UTC
*** Bug 1784224 has been marked as a duplicate of this bug. ***