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

Fix race in CNI namespaces #1775

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Fix race in CNI namespaces #1775

merged 2 commits into from
Nov 3, 2020

Conversation

vladaionescu
Copy link
Contributor

Instead of removing the file nativeID, we were removing the dir containing all nativeIDs. This was causing a race between the MkdirAll trying to create the cni dir and any nativeIDs being removed, where the entire cni dir was wiped.

The errors looked cryptic: failed to mount: no such file or directory and was only showing up in highly-parallel buildkit-in-buildkit situations (like in Earthly's integration tests).

Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants