Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
brb committed Jan 27, 2018
1 parent 733ed38 commit 1afbdf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bridge.go
Expand Up @@ -480,6 +480,9 @@ func configureIPTables(config *BridgeConfig) error {
// and allow replies back
fwdRules = append(fwdRules, []string{"-o", config.WeaveBridgeName, "-m", "conntrack", "--ctstate", "RELATED,ESTABLISHED", "-j", "ACCEPT"})

rules, _ := ipt.List("filter", "FORWARD")
fmt.Println("!!! filter/FORWARD", rules)

if err := ensureRules("filter", "FORWARD", fwdRules, ipt); err != nil {
return err
}
Expand Down
4 changes: 4 additions & 0 deletions test/840_weave_kube_3_test.sh
Expand Up @@ -73,6 +73,10 @@ assert_raises "run_on $HOST1 $PING $HOST2EXPIP"
assert_raises "run_on $HOST2 $PING $HOST1EXPIP"
assert_raises "run_on $HOST3 $PING $HOST2EXPIP"

echo ">>> WEAVE NET LOGS <<<"
tmpPod=$($SSH $HOST1 "$KUBECTL get pods -n=kube-system |grep weave-net | head -n1 | awk '{print $1}'")
run_on $HOST1 "$KUBECTL logs -n kube-system $tmpPod weave"

# Ensure we do not generate any defunct process (e.g. launch.sh) after starting weaver:
assert "run_on $HOST1 ps aux | grep -c '[d]efunct'" "0"
assert "run_on $HOST2 ps aux | grep -c '[d]efunct'" "0"
Expand Down

0 comments on commit 1afbdf1

Please sign in to comment.