-
Bug
-
Resolution: Done-Errata
-
Major
-
4.15
-
None
-
Moderate
-
No
-
False
-
-
-
Bug Fix
-
Done
Description of problem:
When trying to run console in local development with auth, the run-bridge.sh script fails out.
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Follow step for local development of console with auth - https://github.com/openshift/console/tree/master?tab=readme-ov-file#openshift-with-authentication 2. 3.
Actual results:
The run-bridge.sh scripts fails with:
$ ./examples/run-bridge.sh ++ oc whoami --show-server ++ oc -n openshift-config-managed get configmap monitoring-shared-config -o 'jsonpath={.data.alertmanagerPublicURL}' ++ oc -n openshift-config-managed get configmap monitoring-shared-config -o 'jsonpath={.data.thanosPublicURL}' + ./bin/bridge --base-address=http://localhost:9000 --ca-file=examples/ca.crt --k8s-auth=openshift --k8s-mode=off-cluster --k8s-mode-off-cluster-endpoint=https://api.lprabhu-030420240903.devcluster.openshift.com:6443 --k8s-mode-off-cluster-skip-verify-tls=true --listen=http://127.0.0.1:9000 --public-dir=./frontend/public/dist --user-auth=openshift --user-auth-oidc-client-id=console-oauth-client --user-auth-oidc-client-secret-file=examples/console-client-secret --user-auth-oidc-ca-file=examples/ca.crt --k8s-mode-off-cluster-alertmanager=https://alertmanager-main-openshift-monitoring.apps.lprabhu-030420240903.devcluster.openshift.com --k8s-mode-off-cluster-thanos=https://thanos-querier-openshift-monitoring.apps.lprabhu-030420240903.devcluster.openshift.com W0403 14:25:07.936281 49352 authoptions.go:99] Flag inactivity-timeout is set to less then 300 seconds and will be ignored! F0403 14:25:07.936827 49352 main.go:539] Failed to create k8s HTTP client: failed to read token file "/var/run/secrets/kubernetes.io/serviceaccount/token": open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory
Expected results:
Bridge runs fine
Additional info:
- blocks
-
OCPBUGS-31806 Local development of console with auth is failing
- Closed
- is cloned by
-
OCPBUGS-31806 Local development of console with auth is failing
- Closed
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update