Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Workaround to fix ipset conflict with iptables
Browse files Browse the repository at this point in the history
Sleep before ipset destroy in startup, otherwise the operation can
sometimes fail - see #3847
  • Loading branch information
KevDBG authored and bboreham committed Jan 18, 2021
1 parent e91900c commit 3ef97f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prog/weave-kube/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ xt_set_exists() {
fi
iptables -w -F WEAVE-KUBE-TEST
iptables -w -X WEAVE-KUBE-TEST
# delay to allow kernel to clean up - see https://github.com/weaveworks/weave/issues/3847
sleep 1
ipset destroy weave-kube-test
[ -z "$NOT_EXIST" ] || (echo "\"xt_set\" does not exist" >&2 && return 1)
}
Expand Down

0 comments on commit 3ef97f0

Please sign in to comment.