-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
workaround for "runc list" returning "no such file or directory" #17977
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: prezha The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
/retest-this-please |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
74e9239
to
37eb5c8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
once this is merged opencontainers/runc#3349 we can remove this workaround... @prezha is there a timeline that we know when they are gonna include that in the release? |
rr, err = cr.RunCmd(exec.Command("sudo", args...)) | ||
if err != nil { | ||
|
||
// avoid "no such file or directory" runc list error by retrying |
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.
I am generally not a big fan of retyring till it works...I rather waiting for a condition to be met,
if runc is gonna include that in their release soon opencontainers/runc#3349
I rather wait for that
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.
in a less likely, but still occasional scenario where the race condition happens, runc currently exits with an error and we don't have a specific condition to wait for, so we retry and the odds to hit race condition again are minor (but we could repeat a couple of times, if that's needed)
i agree it would be better if this would be handled internally by runc, which that pr aims to address, so i asked author & approver if there are plans to release it (given that it was merged to the main 2 years ago)
|
sounds good ! let check back in a week if i we there is a new runc version if not we could merge this workarround |
@medyagh based on the reply we got from upstream runc maintainers, looks like the fix might be back-ported at some point in the future - do we want to merge this workaround to reduce out integration tests flakes in the meantime? |
kvm2 driver with docker runtime
Times for minikube start: 50.7s 52.3s 51.0s 51.5s 49.6s Times for minikube ingress: 27.5s 28.0s 23.9s 28.0s 26.1s docker driver with docker runtime
Times for minikube start: 24.6s 20.9s 23.6s 20.5s 21.0s Times for minikube ingress: 21.7s 21.7s 25.8s 21.8s 21.3s docker driver with containerd runtime
Times for minikube ingress: 33.8s 48.3s 32.2s 31.3s 32.3s Times for minikube start: 19.8s 20.0s 19.8s 22.6s 22.5s |
These are the flake rates of all failed tests.
Too many tests failed - See test logs for more details. To see the flake rates of all tests by environment, click here. |
good news: runc v1.1.13 went out two weeks ago and it included the proper fix for this problem |
Thanks for the investigation @prezha! |
fixes #17976
details and examples are in the issue #17976