Description of problem: After first attempt to login to web console user get error message: Oh no! Something went wrong. There was an error loggin you in. Please log out and log in again. Version-Release number of selected component (if applicable): 4.0 How reproducible: Steps to Reproduce: 1. Use Next-Gen installer to provide fresh cluster. 2. Go to web console (link, username, password provided by Next-Gen installer) 3. Try to log in into web console. Actual results: * After login browser show error message: Oh no!... * Browser is attempting to login once again - stuck in a loop getting status code back: 401 * oc logs <pods in openshift-console project> ``` auth: unable to verify auth code with issuer: Post https://openshift-authentication-openshift-authentication.apps.mffiedler-68.qe.devcluster.openshift.com/oauth/token: x509: certificate signed by unknown authority server: authentication failed: unauthenticated ``` Expected results: User can log in into web console without problems. Additional info: After deleting pod where console is running user can login to web console without problems.
This is on 4.0.0-0.nightly-2019-02-19-195128 and seen a on a few previous builds. Seems to happen 75% - 90% of time after install. As mentioned, restart of console pods fixes it.
It looks like console reads the serviceaccount/ca.crt file too early and doesn't detect when it changes on the filesystem. We're seeing this now since the OAuth server recently moved behind a route.
I was able to reproduce
https://github.com/openshift/console/pull/1206
Retested positive! Build: 4.0.0-0.nightly-2019-02-24-045124 Steps: - Create new clusters using Next Gen installer. - First login into WebConsole with user and password delivered by installer. - Success login! - As expected! Log from pod: 2019/02/25 18:50:29 auth: oauth success, redirecting to: "https://console-openshift-console.apps.skordas-qe-25.qe.devcluster.openshift.com/"
Thanks for validating!
is there a plan to backport the fix to OCP 3.11?
I'm just seeing this now on one of our 3.11 clusters. (In reply to Zhigang Wang from comment #8) > is there a plan to backport the fix to OCP 3.11?