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

Windows: call runtime.LockOSThread in network-setup #8008

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Dec 24, 2024

We're seeing Windows E2E test failures intermittently in #7939 along the lines of failed setting up veth: veth-rd-ns for rancher desktop namespace: Link not found. I think this is happening because we got our threads switched out some time between creating the new namespace (and switching to it) and trying to use that link name.

Note that this is actually all documented in the netns module.

This also has a commit to enable debug logging for network-setup when the application-global debug flag is enabled.

If debug mode is set, we enable debug logging for wsl-init (and therefore
network-setup).

Signed-off-by: Mark Yen <mark.yen@suse.com>
We're doing some namespace jiggling; sometimes it seems like we can end up
in the wrong namespace (where we fail to configure the veth pair for
veth-rd-ns), and it's in a situation where veth-rd-wsl is visible.
Assuming this is because we've jumped OS threads due to golang green thread
scheduling issues, try to lock the OS thread to mitigate the issue.

Signed-off-by: Mark Yen <mark.yen@suse.com>
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but haven't tested it. The proof will be in running CI...

@jandubois jandubois merged commit 22883e8 into rancher-sandbox:main Dec 24, 2024
20 checks passed
@mook-as mook-as deleted the win32/e2e branch December 24, 2024 22:28
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.

2 participants