-
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
[ws-manager] Wait for workspace pod to be ready #8289
Conversation
Codecov Report
@@ Coverage Diff @@
## main #8289 +/- ##
==========================================
+ Coverage 31.23% 33.52% +2.28%
==========================================
Files 39 31 -8
Lines 5910 4567 -1343
==========================================
- Hits 1846 1531 -315
+ Misses 3923 2920 -1003
+ Partials 141 116 -25
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
b866d4a
to
4bb5490
Compare
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good to me. I have not tested this. Putting this on hold to avoid auto merge. Pavel feel free to merge this when you are ready
/unhold |
Description
Make sure to wait for container to start up, in case of out of memory or other errors.
Related Issue(s)
Fixes #8253
How to test
Spin up new cluster in workspace preview env:
./new-vm.sh -v pavel-oom-fix.6 -z us-west1-c
start the workspace. it should start without issues.
now cordon the node (since we cannot simulate oom error reliably)
try to start workspace. observe pod is created and pending. after 5 seconds ws-manager will delete the pending pod (since it is considered failed now), and will create a new one.
uncordon the node.
observe pod was created. you should be able to load into your workspace now.
caveat: if you leave node cordoned for longer than 30 seconds, then startWorkspace context will get cancelled and server will attempt to create workspace again.
Release Notes
Documentation