-
Bug
-
Resolution: Done
-
Blocker
-
RHODS_1.19.0_GA
-
False
-
None
-
False
-
Testable
-
No
-
-
-
-
-
-
-
No
-
No
-
Pending
-
None
-
-
See https://coreos.slack.com/archives/C019V4BS8G6/p1669909513677049
Description of problem:
When a user's OpenShift token has expired (24 hours) the Data Science Project page can poll for prometheus which results in 500 errors.
Prerequisites (if any, like setup, operators/versions):
RHODS 1.19
Steps to Reproduce
1. Set Openshift tokens to expire every 5 minutes
https://docs.openshift.com/container-platform/4.11/authentication/configuring-internal-oauth.html#oauth-configuring-internal-oauth_configuring-internal-oauth
Which will expire OpenShift tokens faster than the dashbaord oauth-proxy.
apiVersion: config.openshift.io/v1 kind: OAuth metadata: name: cluster spec: tokenConfig: accessTokenMaxAgeSeconds: 300
2. Create a data science project with a workbench and peristent storage.
3. Wait until polling requests fail.
4. Replay XHR on the prometheus query.
Actual results:
500 Error
Expected results:
4XX Error