-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman networking errors when switching between network adapters #24341
Comments
You say root and rootless but your video shows rootless only and podman is not failing pasta is and we do not use pasta as root at all so I do not see how root would fail at all. In particular root doesn't care about the external interfaces with its bridge + NAT (MASQUERADE) setup which should always run fine. The pasta error means it failed to copy your host routes into the container so please provide the full routes when this happens ps: please copy pasta the error message so it can be indexed for the search |
I did have issues with rootful networking when I tried this out (both being "Network Unreachable" errors), but you must be right - it's probably some other transient issue. I must have misunderstood them as the same issue. When trying to reproduce today, rootful works fine whereas I am still able to replicate with rootless. The error depends on what I am trying to do in the container. And digging around in the debug Podman logs, I can see the following, though I am unsure whether the conmon error is related:
IP routes:
Full log:
|
You can quickly test the pasta behavior while you switch your routes/interfaces around.
I would assume this is just an expected race during the switches for now. In general we are aware that there are issues with no or intermittent network connectivity, https://pad.passt.top/p/PastaWithoutNetworkConnectivity #23566 |
Issue Description
Very strange one. When I am on my system, and I switch between WiFi and Ethernet adapters, Podman occasionally refuses to connect to any networks. This happens with both rootful and rootless containers, and also causes errors during builds.
In the below video, you can see:
Screencast.From.2024-10-23.00-39-32.webm
Now, this could be a Linux bug. But I thought I'd start here and see what you all think of it. I'm hoping this is easily reproducible since I could not find any relevant logs.
I would understand (and possibly expect) an error if the same container failed to seamlessly switch between NICs, but this is happening when I create completely different containers.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
See above video
Describe the results you expected
Podman to figure out the right network to use when spinning up a new container on a different network interface.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
I am able to reproduce this roughly 1 in 3 times I switch from two enabled NICs to one.
If I wait for a couple minutes after switching from two to one adapter, the same still happens, so it doesn't seem like anything is happening in the background.
The text was updated successfully, but these errors were encountered: