-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Che workspaces are not idled #15900
Comments
cc: @ibuziuk |
@alexeykazakov could you also provide |
I think if @alexeykazakov 's setup uses OpenShift OAuth it might be the case #15906 (comment) |
Yes, we are using OpenShift OAuth:
|
Assigning to hosted-che team after internal discussion (the original code was written ~2 years ago by hosted che team). |
@alexeykazakov could you confirm that the issue is reproducible not from the very beginning, but after ~ 24h? Our current assumption is that once the OpenShift token is expired (24h by default) the idling stops working. This is the main reason why the issue was not spotted by QA (we simply do not test long-running deployments) |
@ibuziuk where do you store the token? |
@alexeykazakov we should store the tokens in memory. They are not persisted. |
@alexeykazakov I will close this in favor of #15906 |
Describe the bug
I upgraded my Che operator to 7.7.1 and now I see that Che workspace pods are not deleted after timeout.
Che version
Che Operator 7.7.1
Runtime
Installation method
Environment
Steps to reproduce
Start a workspace.
Close the browser. Do nothing for 30+ minutes
Go to dashboard. The ws is stopped there:
oc get pods // <-workspace pods are still running!
Try to start the workspace in Dashboard. It fails with the error:
oc get pods // no workspace pods anymore!
Try to start the workspace in Dashboard again. It works this time!
Repeat from the step 2. All reproducible again.
In the che server logs I see a permission error which seems to be the cause of that issue. Activity-checker doesn't have permissions:
Initially we installed Che 7.5 or something I think couple of months ago.. Then we kept upgrading it when a new version is available. First time I noticed workspace idling issue in 7.7.0 (workspaces didn't idle at all even in Dashboard) and now with 7.7.1 upgrade I faced this issue.
The text was updated successfully, but these errors were encountered: