Closed phil-flip closed 7 months ago
Can you narrow this down somehow? What happens if you try a simple podman run --rm alpine ping 1.1.1.1
? If this works try podman run --rm --network bridge alpine ping 1.1.1.1
.
Also you can try up to date versions from https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/
Looks a lot like the issue I'm having here. I'm losing every other packet, on a container connected to two networks:
[root@bernard ~]# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=57 time=5.47 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=57 time=5.47 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=57 time=5.44 ms
64 bytes from 1.1.1.1: icmp_seq=7 ttl=57 time=5.45 ms
I did open a Q&A question on the netavark forum about this: https://github.com/containers/netavark/discussions/828
@FlipperLP is your container attached to more than one network as well?
In my case the issue has been fixed by setting net.ipv4.conf.default.rp_filter=2
as suggested by @Luap99
Looks a lot like the issue I'm having here. I'm losing every other packet, on a container connected to two networks:
[root@bernard ~]# ping 1.1.1.1 PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. 64 bytes from 1.1.1.1: icmp_seq=1 ttl=57 time=5.47 ms 64 bytes from 1.1.1.1: icmp_seq=3 ttl=57 time=5.47 ms 64 bytes from 1.1.1.1: icmp_seq=5 ttl=57 time=5.44 ms 64 bytes from 1.1.1.1: icmp_seq=7 ttl=57 time=5.45 ms
I did open a Q&A question on the netavark forum about this: containers/netavark#828
@FlipperLP is your container attached to more than one network as well?
YES, that might be the issue, why I was not able to replicate the issue on the alpine packages! I was just about to test it with docker-compose and the alpine image. But multiple networks might explain the issue. Unfortunately your solution @1player does not work. I tried restarting the podman.socket and restarted the whole VM.
A friendly reminder that this issue had no activity for 30 days.
@Luap99 any update on this?
As mentioned above this is likely due the sysctl setting, but the report never confirmed whenever it only happens with multiple networks.
A friendly reminder that this issue had no activity for 30 days.
Because I never got a reply closing
Issue Description
A friend of mine have been putting quite a lot of hours into this issue, and we are unable to find any information about it on the webs.
Podman seems to drop ICMP echo requests to the internet. This issue doesn't happen, when trying to ping another container. Could that be an issue of podmans routing? Or maybe because of IPv6? Or the Podman version? or…maybe all of them? :D At this point we are out of ideas and thought i might open up a Issue on here to see if someone knows this issue pattern.
Steps to reproduce the issue
DOCKER_HOST
to podman socket of the user (unix:///run/user/1000/podman/podman.sock
) for docker-composeDescribe the results you received
We were trying to debug why our OIDC login was so random and sometimes failed completely. After a lot of debugging we found out that the Outline app-pod had package drops. The issue arose when I tried to switch the OIDC endpoints to reach Authentik directly, and it worked way better.
(Same with other pods; “docker” is just an alias)
Describe the results you expected
No ping drops with a functioning Authentication process and non-stuck webpages.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
The problem first arose on a sketchy and cheap VPS, but when we tried it at home with a similar setup as described above, the issue was still present. The issues do not happen on Docker.
Additional information
We had the same issues on Ubuntu, but I wouldn't count that attempt as it wasn't very stably running. (Now to think of it, we probably messed something up and forgot the slirp4netns package.)
If someone can tell me how to get Version 4.7.1 running on Rocky 9.1 instead the “stable” 4.4.1 Version, and it fixes our issue, I would be more than happy.
We tried many things and I probably forgot a lot of them to mention in here, but I will try my best to keep potential Ideas up to date.