Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display a meaningful error message when OS token has expired #8223

Closed
ghost opened this issue Jan 9, 2018 · 0 comments
Closed

Display a meaningful error message when OS token has expired #8223

ghost opened this issue Jan 9, 2018 · 0 comments
Assignees
Labels
kind/enhancement A feature request - must adhere to the feature request template. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@ghost
Copy link

ghost commented Jan 9, 2018

Steps to reproduce:

  1. Export an expired or invalid token before deploying Che to OCP
  2. Start a workspace.
  3. An error occurs:
Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://kubernetes.default.svc/apis/project.openshift.io/v1/projects/workspacex8w4wt70e7bm3kec. Message: Unauthorized! Configured service account doesn't have access. Service account may have been revoked. Unauthorized

This probably happens because if k8s client fails to use a token, and a service account is used instead, and this service account indeed has to permissions to create objects outside a current namespace.

@ghost ghost added kind/bug Outline of a bug - must adhere to the bug report template. team/platform severity/P2 Has a minor but important impact to the usage or development of the system. labels Jan 9, 2018
@slemeur slemeur added kind/enhancement A feature request - must adhere to the feature request template. and removed kind/bug Outline of a bug - must adhere to the bug report template. labels Feb 8, 2018
@sleshchenko sleshchenko self-assigned this Feb 14, 2018
@sleshchenko sleshchenko added the status/in-progress This issue has been taken by an engineer and is under active development. label Feb 14, 2018
@sleshchenko sleshchenko removed the status/in-progress This issue has been taken by an engineer and is under active development. label Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

3 participants