Skip to content

Commit

Permalink
Merge pull request #6148 from zmerlynn/brctl_complaint
Browse files Browse the repository at this point in the history
Fix "brctl: invalid command" message appearing in startup logs
  • Loading branch information
vmarmol committed Mar 30, 2015
2 parents 58bc479 + b3636bb commit 0c75f26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ for k,v in yaml.load(sys.stdin).iteritems():
}

function remove-docker-artifacts() {
echo "== Deleting docker0 =="
# Forcibly install bridge-utils (options borrowed from Salt logs).
until apt-get -q -y -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-confdef install bridge-utils; do
echo "== install of bridge-utils failed, retrying =="
sleep 5
done

# Remove docker artifacts on minion nodes, if present
iptables -t nat -F || true
ifconfig docker0 down || true
brctl delbr docker0 || true
echo "== Finished deleting docker0 =="
}

# Retry a download until we get it.
Expand Down Expand Up @@ -152,6 +160,9 @@ EOF
done

rm /usr/sbin/policy-rc.d

# Log a timestamp
echo "== Finished installing Salt =="
}

# Ensure salt-minion never runs
Expand Down Expand Up @@ -352,6 +363,7 @@ function configure-salt() {
}

function run-salt() {
echo "== Calling Salt =="
salt-call --local state.highstate || true
}

Expand Down

0 comments on commit 0c75f26

Please sign in to comment.