Skip to content

datapath: Silent iptables removal on first init#11815

Merged
aanm merged 1 commit intomasterfrom
pr/tgraf/fix-iptables-warnings
Jun 2, 2020
Merged

datapath: Silent iptables removal on first init#11815
aanm merged 1 commit intomasterfrom
pr/tgraf/fix-iptables-warnings

Conversation

@tgraf
Copy link
Copy Markdown
Contributor

@tgraf tgraf commented Jun 2, 2020

On the first initialization, the iptables rules may not exist. Remove
the silently and warn on any attempt to remove rules once they are known
to exist.

Also, don't remove iptables rules on additional calls to Reinitialize()
unless iptables is enabled.

Fixes: #11809

On the first initialization, the iptables rules may not exist. Remove
the silently and warn on any attempt to remove rules once they are known
to exist.

Also, don't remove iptables rules on additional calls to Reinitialize()
unless iptables is enabled.

Fixes: #11809

Signed-off-by: Thomas Graf <thomas@cilium.io>
@tgraf tgraf added kind/bug This is a bug in the Cilium logic. priority/release-blocker release-note/misc This PR makes changes that have no direct user impact. labels Jun 2, 2020
@tgraf tgraf requested a review from a team June 2, 2020 10:01
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.02%) to 36.91% when pulling 849e999 on pr/tgraf/fix-iptables-warnings into 7d26df1 on master.

@tgraf
Copy link
Copy Markdown
Contributor Author

tgraf commented Jun 2, 2020

test-me-please

@maintainer-s-little-helper maintainer-s-little-helper Bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 2, 2020
@aanm aanm merged commit 601852b into master Jun 2, 2020
@aanm aanm deleted the pr/tgraf/fix-iptables-warnings branch June 2, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning Messages for 1.8.0-rc2: Unable to flush Cilium iptables chain

6 participants