libpod: setupNetNS() correctly mount netns#24024
libpod: setupNetNS() correctly mount netns#24024openshift-merge-bot[bot] merged 2 commits intocontainers:mainfrom
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>
|
[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 DetailsNeeds 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?