-
Bug
-
Resolution: Done
-
Undefined
-
None
-
RHODS_1.25.0_GA
-
False
-
None
-
False
-
Testable
-
No
-
-
-
-
-
-
-
No
-
No
-
Pending
-
None
-
-
Description of problem:
when running a Notebook and trying to access the Pipeline application server, the user is expected to provide a the server's route and a valid OpenShift token to access it.
But the notebook user cannot query the available routes, and the token available in the Notebook is refused by the server.
(app-root) (app-root) oc get routes Error from server (Forbidden): routes.route.openshift.io is forbidden: User "system:serviceaccount:psap:psap" cannot list resource "routes" in API group "route.openshift.io" in the namespace "psap"
Prerequisites (if any, like setup, operators/versions):
- create a DSProject for a basic user, and create a Notebook inside it
- create a DSPApplication in the user project (from the command outside of the notebook, it doesn't work from inside, for the same reason as the route query fails)
- install the kfp_tekton module (cf RHODS-8022)
pip install kfp_tekton==1.5.* --quiet
Steps to Reproduce
- try to query the route
- with the route manually defined, try to connect to the server with the notebook token
Actual results:
(app-root) (app-root) oc get routes Error from server (Forbidden): routes.route.openshift.io is forbidden: User "system:serviceaccount:psap:psap" cannot list resource "routes" in API group "route.openshift.io" in the namespace "psap"
and the token is rejected
Reason: Forbidden
Expected results:
- The route can be queried
- The token can be easily accessed
Reproducibility (Always/Intermittent/Only Once):
always
Build Details:
Tested in RHODS 1.25-rc1 even if Pipelines got removed from this version.
Reported as early as possible to help things moving forward.
Workaround:
- Retrieve the route from elsewhere
- Retrieve the token from the user account, after oc login --username=...
Additional info:
Discussed in slack.