Bug 1960683 - GlobalConfigPage is constantly requesting resources
Summary: GlobalConfigPage is constantly requesting resources
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.8.0
Assignee: Samuel Padgett
QA Contact: Siva Reddy
URL:
Whiteboard:
Depends On:
Blocks: 1960686
TreeView+ depends on / blocked
 
Reported: 2021-05-14 15:05 UTC by Robb Hamilton
Modified: 2021-07-27 23:08 UTC (History)
4 users (show)

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.
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
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8934 0 None open Bug 1960683: Fix hot loop in global config page 2021-05-14 15:12:47 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:08:45 UTC

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


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