podman restart behaves not the same as podman stop && podman start (firewalld specific?) #5051
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
/kind bug
Description
The command
podman restart mycontainer
appears to behave differently from
podman stop mycontainer && podman start mycontainer
This is observed when a container which needs internet access via the host is restarted, which apparently does not update the firewall rules (in my case on Fedora adding e.g.
10.88.0.31/32
to the trusted zone, where the ip is the one of the container).After the restart, the container networking is broken.
If, instead,
podman stop
is used, the firewall rule is removed, and a new one put in place (matching the new container ip) afterpodman start
I am running firewalld with nftables backend, which is also specified in
/etc/cni/net.d/87-podman-bridge.conflist
as{ "type": "firewall", "backend": "nftables" },
Steps to reproduce the issue:
execute
podman restart mycontainer
vs
podman stop mycontainer && podman start mycontainer
Describe the results you received:
Firewall rules are unaffected and networking (e.g. network request from the container on a host running firewalld) is broken for the first command.
Describe the results you expected:
Firewall rules are updated the same as when using
podman stop
(deletes container specific ip in trusted zone) andpodman start
(creates corresponding new rule)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
):The text was updated successfully, but these errors were encountered: