-
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
upgrade from v3.1.2: cni plugin bridge failed: failed to allocate #13679
Comments
Yeah I think there was a reason why I added podman start && podman stop instead of restart. |
Good news, I can reproduce. Bad news, it looks like the upgrade test is terribly broken (it is hanging) when your host uses netavark because the old podman will still use cni obviously. |
I think I understand the root cause now. Podman4 uses a new db structure for networks. Podman3 cannot read this any more. One fix is to remove the network connect/disconnect test before the stop/start since it causes a v4 network db migration but I do not want this since it should test connect/disconnect. This would also explain why upgrade test from 2.X are not flaking because we skip network connect/disconnect there since it was only added in 3.0. @mheon Any ideas if we could influence the behaviour between stop and cleanup so that stop would win always? If not possible we can manually doing a network teardown with network disconnect before stopping, this should also work. |
Usually Maybe we can deliberately nice our |
With podman4 we support netavark, however old versions will still use cni. Since netavark and cni can conflict we should not mix them. Remove the network setup from the inital podman command and create the directories manually to prevent such conflicts. Also the update to 4.0 changes the network db structure. While it is compatible from 3.X to 4.0 it will fail the other way around. In this test it will happen because the cleanup process still uses the old podman while the network connect/disconnect test already changed the db format. Therefore the cleanup process cannot see any networks and will not tear it down. The following start will fail because the ip address is already assigned. Fixes containers#13679 Signed-off-by: Paul Holzinger <[email protected]>
I cannot confirm this on my laptop, if I run Anyway I fixed it in the test, I don't think this is a real world problem. |
With podman4 we support netavark, however old versions will still use cni. Since netavark and cni can conflict we should not mix them. Remove the network setup from the inital podman command and create the directories manually to prevent such conflicts. Also the update to 4.0 changes the network db structure. While it is compatible from 3.X to 4.0 it will fail the other way around. In this test it will happen because the cleanup process still uses the old podman while the network connect/disconnect test already changed the db format. Therefore the cleanup process cannot see any networks and will not tear it down. The following start will fail because the ip address is already assigned. Fixes containers#13679 Signed-off-by: Paul Holzinger <[email protected]>
This one isn't new -- the first instance I see is from January -- but it's starting to happen daily
[Upgrade] 12 exec
The text was updated successfully, but these errors were encountered: