podman container not responding after reload firewalld #8048
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.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman container network breaks after reload firewalld
Steps to reproduce the issue:
Run a continer
$ podman run --cap-add=IPC_LOCK -d -e "VAULT_ADDR=http://148.187.80.29:8200" -p 8200:8200 -v "/var/local/vault:/vault" -v "/etc/vault.d/:/vault/config/" --name="hashicorp-vault" vault:latest server
Test connectivity to service
$ curl localhost:8200/v1/sys/seal-status
{"type":"shamir","initialized":false,"sealed":true,"t":0,"n":0,"progress":0,"nonce":"","version":"","migration":false,"recovery_seal":false,"storage_type":"file"}
Reload firewalld
$ firewall-cmd --reload
success
Test connectivity again --> this step should not work and the session should hang/freeze
$ curl localhost:8200/v1/sys/seal-status
^C
Delete container
$ podman rm -f hashicorp-vault
ERRO[0000] Error deleting network: running [/usr/sbin/iptables -t nat -D POSTROUTING -s 10.88.0.96 -j CNI-f1d9f8791753a895cccae697 -m comment --comment name: "podman" id: "536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c" --wait]: exit status 2: iptables v1.8.4 (nf_tables): Chain 'CNI-f1d9f8791753a895cccae697' does not exist
Try
iptables -h' or 'iptables --help' for more information. ERRO[0000] Error while removing pod from CNI network "podman": running [/usr/sbin/iptables -t nat -D POSTROUTING -s 10.88.0.96 -j CNI-f1d9f8791753a895cccae697 -m comment --comment name: "podman" id: "536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c" --wait]: exit status 2: iptables v1.8.4 (nf_tables): Chain 'CNI-f1d9f8791753a895cccae697' does not exist Try
iptables -h' or 'iptables --help' for more information.ERRO[0000] unable to cleanup network for container 536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c: "error tearing down CNI namespace configuration for container 536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c: running [/usr/sbin/iptables -t nat -D POSTROUTING -s 10.88.0.96 -j CNI-f1d9f8791753a895cccae697 -m comment --comment name: "podman" id: "536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c" --wait]: exit status 2: iptables v1.8.4 (nf_tables): Chain 'CNI-f1d9f8791753a895cccae697' does not exist\nTry `iptables -h' or 'iptables --help' for more information.\n"
536f01e839281baedbdb0664585b2c80fb0d18164b86fc50e687725636f0c51c
Describe the results you received:
firewalld reload configuration breaks podman network. In my case the console freezes when trying to access a REST service running in podman
Describe the results you expected:
I expect to receive a response from the service
Additional information you deem important (e.g. issue happens only occasionally):
I believe firewall-cmd --reload breaks the network configuration with podman. I can see podman throws an error trying to delete the network after the connectivity stops
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?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: