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

rootlessnetns: fix setup error when file already exists #2306

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Jan 30, 2025

It is possible that the netns file where we bind mount the netns already exists. This can happen if a previous setup process was killed between creating the file and mounting to it. Or likely more common as described in the podman issue if the runroot is not a tmpfs and not deleted after boot.

Fixes containers/podman#25144

It is possible that the netns file where we bind mount the netns already
exists. This can happen if a previous setup process was killed between
creating the file and mounting to it. Or likely more common as described
in the podman issue if the runroot is not a tmpfs and not deleted after
boot.

Fixes containers/podman#25144

Signed-off-by: Paul Holzinger <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jan 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Luap99
Copy link
Member Author

Luap99 commented Jan 30, 2025

@mheon @giuseppe PTAL

@mheon
Copy link
Member

mheon commented Jan 30, 2025

Sure, LGTM

@TomSweeneyRedHat TomSweeneyRedHat added the 5.4 Required for Podman v5.4 label Jan 30, 2025
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM

@TomSweeneyRedHat
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 31, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 208ccf6 into containers:main Jan 31, 2025
15 checks passed
@Luap99 Luap99 deleted the rootless-netns-file branch January 31, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.4 Required for Podman v5.4 approved lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fails to create rootless netns
3 participants