Bug 1960683

Summary: GlobalConfigPage is constantly requesting resources
Product: OpenShift Container Platform Reporter: Robb Hamilton <rhamilto>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Siva Reddy <schituku>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Fixes an issue where the Administration -> Cluster Settings -> Global configuration page in the web console would make repeated, unnecessary HTTP requests for the configuration resources.
Story Points: ---
Clone Of:
: 1960686 (view as bug list) Environment:
Version: 4.8.0-0.nightly-2021-05-13-222446 Cluster ID: cb9bc5ec-ad4e-462c-81bc-3fa903fcd3ae Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Last Closed: 2021-07-27 23:08:28 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: 1960686    

Description Robb Hamilton 2021-05-14 15:05:01 UTC
Description of problem:  The Cluster Settings > Global Config page is incessantly requesting resources.  Eventually, the constant stream of requests overwhelms the browser and the page becomes unresponsive.


Steps to Reproduce:
1.  Go to /settings/cluster/globalconfig
2.  Open the Inspector and go to the Network tab
3.  Note the constant stream of resource requests

Sam suspects this is the result of https://github.com/TheRealJon/console/blob/ecc0236c4b4c3665c4b42030e704b52a8e680509/frontend/public/components/cluster-settings/global-config.tsx#L63-L66 being different every time.

Comment 2 Yadan Pei 2021-05-27 03:17:57 UTC
Sam, what requests should disappear with fix PR merged? or are they requested less frequently? 

I observe console is only incessantly requesting silences, rules, version, acm-console-link, user-settings-kubeadmin requests on latest 4.8, didn't see any extra specific requests.
on 4.6.31 I can see console is requesting storageclasses, rules, silences every few seconds.

Comment 3 Samuel Padgett 2021-05-27 06:02:20 UTC
Hi, Yadan. If you went to the Administration -> Cluster Settings -> Global configuration page, you would see repeated requests for each of the global config resources (things like authentications, consoles, oauths, etc.) in the dev tools network tab. It was an infinite loop, so they would repeat non-stop until leaving the page. It should be pretty obvious when it happens. If you're not seeing that, the bug is fixed.

Comment 4 Yadan Pei 2021-05-27 10:02:08 UTC
Ok, I see. 

I think now the requests to get global config resources is not repeated

Moving to VERIFIED, checked against 4.8.0-0.nightly-2021-05-26-172234

Comment 5 Yadan Pei 2021-05-27 10:57:01 UTC
To be more accurate, the requests to global config resources are not repeated in a infinite loop, so the issue is fixed

Comment 8 errata-xmlrpc 2021-07-27 23:08:28 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 (Moderate: OpenShift Container Platform 4.8.2 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-2021:2438