-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
libpod: setupNetNS() correctly mount netns #24024
Conversation
I think we need to modify |
I don't understand what you are trying to say with that. |
I was looking at the failing test:
it seems related to this change, and kind of makes sense since we are adding a new mount on |
I don't think the mount matters here in any way for this check the file is visible with or without the mount. And we already had the mount setup until the first ctr was one with --userns so it should not have changed much. The error above clearly complains about In general the leak check was just added two days ago, #2399, so I would not be surprised if this is a pre-existing issue that just causes some flakes. I at least cannot see anything wrong on the netns creating part that would cause new leaks |
Test passed on rerun I keep an eye out on the flakes with the netns cleanup. |
To include the pkg/netns changes. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
The netns dir has a special logic to bind mout itself and make itslef shared. This code here didn't which lead to catastrophic bug during netns unmounting as we were unable to unmount the netns as the mount got duplicated and had the wrong parent mount. This caused us to loop forever trying to remove the file. Fixes https://issues.redhat.com/browse/RHEL-59620 Fixes containers#23685 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, Luap99 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 |
LGTM |
/lgtm |
The netns dir has a special logic to bind mout itself and make itslef
shared. This code here didn't which lead to catastrophic bug during
netns unmounting as we were unable to unmount the netns as the mount got
duplicated and had the wrong parent mount. This caused us to loop forever
trying to remove the file.
Fixes https://issues.redhat.com/browse/RHEL-59620
Fixes #23685
Does this PR introduce a user-facing change?