Skip to content

Commit

Permalink
Sleep before ipset destroy in startup
Browse files Browse the repository at this point in the history
Otherwise the operation can sometimes fail - see #3847
  • Loading branch information
bboreham committed Jan 18, 2021
1 parent e91900c commit b85354b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prog/weave-kube/init.sh
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 b85354b

Please sign in to comment.