-
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
Cannot ping network alias of container where multiple networks exist #9492
Comments
This is a known limitation of our alias support via We are investigating a resolution to this, but it's not an easy problem and could take some time. @baude What do we want to do with this bug - do we already have a separate issue open / should we close this one as a dupe? |
@mheon @baude what we have requested is the function supported on docker. This limitation of podman prevents our product from working with podman and RHEL. Btw, I disconnect foo-a from container test1 and foo-c from container test2, now both containers have foo-b left. But they still cannot ping each other through network foo-b using alias. |
if this is an issue on rhel, I encourage you to file a bugzilla for an RFE. Our network stack is not the same as docker's and we make no promises of compatibility in that area. That said, file the RFE and based on our impressions and product management's, we can see what can be done. |
@baude thanks for the info. Could you give me the link for the bugzilla? |
@mheon @baude I do not think podman supports network alias at all.
Is there any config I missed that caused this problem? |
you dont exactly provide a lot of information to help with... rpm -q podman-plugins? |
rpm -q podman-plugins |
install it |
@baude after I installed podman-plugins the simple cases work for network alias. The multiple network case that I reported originally still does not work. thanks! |
A friendly reminder that this issue had no activity for 30 days. |
this should be handled by aardvark in podman 4.0. |
@baude it isn't. #14262 and containers/aardvark-dns#403 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
One network is connected on two containers, each with an alias. But pinging the alias failed.
Steps to reproduce the issue:
podman network create foo-a
podman network create foo-b
podman network create foo-c
podman run --name test1 --network foo-a -d alpine sleep 1000
podman run --name test2 --network foo-c -d alpine sleep 1000
podman network connect --alias test1_nw foo-b test1
podman network connect --alias test2_nw foo-b test2
podman exec -it test1 ping test2_nw
podman exec -it test2 ping test1_nw
Describe the results you received:
#podman exec -it test1 ping test2_nw
ping: bad address 'test2_nw'
#podman exec -it test2 ping test1_nw
ping: bad address 'test1_nw'
WARN[0000] Error resizing exec session 2ef59d91adec9d88a945f24780aabd1ff6e1cb55ea4d93c25e2655098267e9ce: could not open ctl file for terminal resize for container 2af244714cf421896b2d5bbcbc5deb3cf57221e74e90d14992374d7f7622c3ff: open /var/lib/containers/storage/overlay-containers/2af244714cf421896b2d5bbcbc5deb3cf57221e74e90d14992374d7f7622c3ff/userdata/2ef59d91adec9d88a945f24780aabd1ff6e1cb55ea4d93c25e2655098267e9ce/ctl: no such device or address
# podman inspect test1
...
"Networks": {
"foo-a": {
"EndpointID": "",
"Gateway": "10.89.0.1",
"IPAddress": "10.89.0.5",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "d2:7d:20:3a:a0:1e",
"NetworkID": "foo-a",
"DriverOpts": null,
"IPAMConfig": null,
"Links": null
},
"foo-b": {
"EndpointID": "",
"Gateway": "10.89.1.1",
"IPAddress": "10.89.1.3",
"IPPrefixLen": 24,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "76:8b:b8:87:45:db",
"NetworkID": "foo-b",
"DriverOpts": null,
"IPAMConfig": null,
"Links": null,
"Aliases": [
"test1_nw"
]
}
}
},
...
Please note that the EndpointID is empty for foo-b, while the real docker container has it filled. Maybe this is the source of the problem?
Describe the results you expected:
The two containers test1 and test b are supposed to be able to ping each other through network aliases
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: