We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The FLANNEL-FWD and FLANNEL-POSTRTG chains should be recreated if missing within the SetupAndEnsureIP4Tables and SetupAndEnsureIP6Tables loops.
SetupAndEnsureIP4Tables
SetupAndEnsureIP6Tables
flannel/network/iptables.go
Lines 251 to 258 in 4586e91
Lines 288 to 295 in 4586e91
On Oracle Linux 7 with firewalld installed, the FLANNEL-FWD and FLANNEL-POSTRTG chains are dropped if the firewalld service is restarted.
Error messages
E1027 16:19:08.773196 1 iptables.go:254] Failed to ensure iptables rules: error checking rule existence: failed to check rule existence: running [/sbin/iptables -t filter -C FORWARD -m comment --comment flanneld forward -j FLANNEL-FWD --wait]: exit status 2: iptables v1.8.6 (legacy): Couldn't load target `FLANNEL-FWD':No such file or directory E1027 16:19:08.936329 1 iptables.go:254] Failed to ensure iptables rules: error checking rule existence: failed to check rule existence: running [/sbin/iptables -t nat -C POSTROUTING -m comment --comment flanneld masq -j FLANNEL-POSTRTG --wait]: exit status 2: iptables v1.8.6 (legacy): Couldn't load target `FLANNEL-POSTRTG':No such file or directory
Line 169 in 4586e91
May be able to add a check within ipTablesRulesExist for the chain or add handling for Couldn't load target .... No such file or directory errors.
ipTablesRulesExist
Couldn't load target .... No such file or directory
We are currently attempting to upgrade to Flannel 0.20.0 in our Kubernetes environment.
The change that renamed the chains was introduced in #1650.
The text was updated successfully, but these errors were encountered:
Hi @wheatevo thanks for the report. I am working on a patch to fix this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
The FLANNEL-FWD and FLANNEL-POSTRTG chains should be recreated if missing within the
SetupAndEnsureIP4Tables
andSetupAndEnsureIP6Tables
loops.flannel/network/iptables.go
Lines 251 to 258 in 4586e91
flannel/network/iptables.go
Lines 288 to 295 in 4586e91
Current Behavior
On Oracle Linux 7 with firewalld installed, the FLANNEL-FWD and FLANNEL-POSTRTG chains are dropped if the firewalld service is restarted.
Error messages
flannel/network/iptables.go
Line 169 in 4586e91
Possible Solution
May be able to add a check within
ipTablesRulesExist
for the chain or add handling forCouldn't load target .... No such file or directory
errors.Steps to Reproduce (for bugs)
Context
We are currently attempting to upgrade to Flannel 0.20.0 in our Kubernetes environment.
The change that renamed the chains was introduced in #1650.
Your Environment
The text was updated successfully, but these errors were encountered: