Podman6: Remove slirp#27828
Conversation
2a6612e to
bbf3f4f
Compare
|
[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore. |
|
depends on #27827 |
08734ac to
a674da2
Compare
e6d1aef to
fd2d242
Compare
fd2d242 to
21e70eb
Compare
21e70eb to
ab17153
Compare
mtrmac
left a comment
There was a problem hiding this comment.
By no means a full review, I just checked whether this can be quickly merged and stopped at the first blocker.
| #: ../../source/markdown/podman-pod-create.1.md:410 | ||
| #: ../../source/markdown/podman-run.1.md:1214 | ||
| msgid "" | ||
| "**slirp4netns[:OPTIONS,...]**: use **slirp4netns**(1) to create a user " |
There was a problem hiding this comment.
These are incorrect, msgid and msgstr are ~key-value pairs.
More importantly, this file should be auto-generated from the source text using … some process.
I guess that should be https://www.sphinx-doc.org/en/master/usage/advanced/intl.html but I don’t see anything to suggest we have that automated.
There was a problem hiding this comment.
I gotta look this up and will update likewise. Thanks for the pointer. I'll remove draft status once I'm done with this part.
There was a problem hiding this comment.
running sphinx will create a huge update including more than just the slirp changes. Probably best kept for a separate PR.
There was a problem hiding this comment.
reverted all changes to this in this PR.
20d5d3a to
3dcd89d
Compare
736178c to
e575cd1
Compare
|
Converting back to draft while I wait for tests to pass. Addressed all comments and added |
e575cd1 to
79036ba
Compare
There was a problem hiding this comment.
nit: this file can be removed if it does nothing
There was a problem hiding this comment.
nit: same, this file can be removed if it does nothing
| // functionality (SetupRootlessPortMappingViaRLK and GetRootlessPortChildIP), | ||
| // NOT for the deprecated slirp4netns network backend which was removed in Podman 6. | ||
| "go.podman.io/common/libnetwork/slirp4netns" | ||
| "go.podman.io/common/libnetwork/slirp4netns" // RootlessKit port mapping only, not the removed slirp4netns backend |
There was a problem hiding this comment.
That did not actually solve my newline comment, first you still have the newline.
Commit e8ad9f6 adds a newline above as part of a commit where it really does not belong. For git history reasons we should not have such "random" newline changes.
Sure not like I care to git blame to the import statements but at least right now for things like possible merge conflicts it still matters.
So really these changes should be squashed for a proper clean history.
| When using rootless Podman, network traffic is normally passed through pasta. This comes with | ||
| a performance penalty. Fortunately, communication over the socket-activated socket does not pass through | ||
| pasta so it has the same performance characteristics as the normal network on the host. | ||
|
|
There was a problem hiding this comment.
same with this commit now, it should just be sqashed, removing then re-adding makes reviewing much harder
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Add slirp4netns to pasta migration in `podman system migrate`. When run, it changes the NetMode from slirp4netns to pasta and removes any slirp4netns network options. Warns about options that cannot be mapped to pasta (e.g. cidr, allow_host_loopback). The config is persisted via RewriteContainerConfig. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Previously, when default_rootless_network_cmd was empty, podman would fall back to slirp4netns. Change this to default to pasta instead. Remove the now-unused slirp4netns import. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Using --network=slirp4netns now returns a hard error directing users to pasta and `podman system migrate`. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Remove all slirp4netns-specific setup and helper functions while preserving the RootlessRLK port mapping functions that are still used by pasta and bridge networking. Rename networking_slirp4netns.go to networking_rootlessport.go. Convert the slirp4netns compose test to use pasta instead. Remove rootlessSlirpSyncR/W fields from container struct and getSlirp4netnsIP stub from FreeBSD networking. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Update all documentation files to remove slirp4netns references and update to pasta as the only rootless networking backend. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
slirp4netns is no longer used as a rootless networking backend, pasta is the only option. Remove the package requirement from rpm/podman.spec and the TMT test setup. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
The rootlessPortSyncR/W fields in the Container struct are only used on Linux but defined in the shared container.go. Add a linter exclusion so they don't trigger unused warnings on FreeBSD. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Use podman exec to check ip link MTU instead of ncat-based host connectivity test which does not actually validate pasta options. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
79036ba to
a611471
Compare
|
@mheon @containers/podman-maintainers PTAL |
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?