The OCS feature detection requests storageclusters and storageclasses over and over again. It looks like there are runtime errors in the feature detectors that cause OCS to retry.
Inspecting the code, I see some issues here: https://github.com/spadgett/console/blob/203c628101349eeaaf140ec3e7c36018af054784/frontend/packages/ceph-storage-plugin/src/features.ts#L73-L91
For instance, this line will be a runtime error if the storagecluster is not found:
const isInternal = _.isEmpty(storageCluster.spec.externalStorage);
It appears that any status code other than 404 will result in a retry. So if we get a 403 for instance, it will keep retrying even though the user doesn't have permission.
I suspect there are similar problem in `detectRGW` causing storageclasses to be requested over and over again.
@email@example.com can you look into this.
Created attachment 1746673 [details]
I'm still seeing StorageClass polling after the fix.
Hi Samuel, I moved the QA contact to you. Please let us know in case it is not OK. Thanks
Verified on 4.7.0-rc.0. OCS no longer constantly polls storageclusters or storageclasses when not enabled.
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.7.0 security, bug fix, and enhancement 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.