-
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 network create panics #12990
Comments
Any chance you can test this with podman 4.0? This part of the code was completely rewritten. |
Using v4.0.0-RC2 it no longer panics and is now giving an error message instead:
This happens if I set However I can no longer create containers attached to these networks as it believes they are invalid, is there another way I could create a valid CNI network that doesn't set IP addresses for the containers? |
Thanks for testing, and the good side it will at least not panic. I think we have to add a new ipam mode |
A friendly reminder that this issue had no activity for 30 days. |
When we parse CNI config files to convert them into a native Network struct we should not error unsless there is something broken. The goal is to allow all cni configs to still function but podman inspect will not be able to show all informations such as subnets about this network. Because this is a valid use case we only log this at info level. Fixes containers/podman#12990 Fixes containers/podman#13124 Signed-off-by: Paul Holzinger <[email protected]>
When we parse CNI config files to convert them into a native Network struct we should not error unless there is something broken. The goal is to allow all cni configs to still function but podman inspect will not be able to show all informations such as subnets about this network. Because this is a valid use case we only log this at info level. Fixes containers/podman#12990 Fixes containers/podman#13124 Signed-off-by: Paul Holzinger <[email protected]>
When we parse CNI config files to convert them into a native Network struct we should not error unless there is something broken. The goal is to allow all cni configs to still function but podman inspect will not be able to show all informations such as subnets about this network. Because this is a valid use case we only log this at info level. Fixes containers/podman#12990 Fixes containers/podman#13124 Signed-off-by: Paul Holzinger <[email protected]>
When we parse CNI config files to convert them into a native Network struct we should not error unless there is something broken. The goal is to allow all cni configs to still function but podman inspect will not be able to show all informations such as subnets about this network. Because this is a valid use case we only log this at info level. Fixes containers/podman#12990 Fixes containers/podman#13124 Signed-off-by: Paul Holzinger <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman network create example0
panics when not using IPAM CNI plugin.I'm trying to create containers without having any IP addresses assigned by podman, and then I manually assign the addresses inside the containers. I have this working by removing the contents of the
ipam
section within the cni conflist. This allows the networking to work as expected, but it causes other podman networking functionality to panic, such as creating a new network.Steps to reproduce the issue:
podman network create int0 --internal
open ~/.config/cni/net.d/int0.conflist and set
ipam: {}
podman network create test0
Describe the results you received:
Panic:
Describe the results you expected:
It should successfully create the new network
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? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Tested on bare metal install of arch linux
The text was updated successfully, but these errors were encountered: