mirror of
https://github.com/containers/podman.git
synced 2025-12-01 18:49:18 +08:00
Networks are stored in two ways in the DB, first a static network list which holds all the network with its option for the container. Second, the network status which hold the actual network result from netavark but only when the container is running. If the container is running they must be in sync and podman inspect has checks to ensure that as well it errors out of there is a desync between the two. As the adding to the db and doing actual networking configuration are diffeent parts it possible that one worked while the other failed which triggers the desync. To avoid this make the network connect/disconnect code more robust against partial failures. When the network calls fail we update the db again to remove/add the network back. Fixes: https://issues.redhat.com/browse/RHEL-78037 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
25 KiB
25 KiB