From 7afec6b225400599f9fc49a356df39f4b1a80f94 Mon Sep 17 00:00:00 2001 From: derekwaynecarr Date: Wed, 2 Sep 2015 13:42:27 -0400 Subject: [PATCH] Improve reliability of salt-minion on vagrant master --- cluster/vagrant/util.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cluster/vagrant/util.sh b/cluster/vagrant/util.sh index f02097912e4..10cae2dd2f8 100644 --- a/cluster/vagrant/util.sh +++ b/cluster/vagrant/util.sh @@ -199,6 +199,9 @@ function verify-cluster { local machine="master" local -a required_daemon=("salt-master" "salt-minion" "kubelet") local validated="1" + # This is a hack, but sometimes the salt-minion gets stuck on the master, so we just restart it + # to ensure that users never wait forever + vagrant ssh "$machine" -c "sudo systemctl restart salt-minion" until [[ "$validated" == "0" ]]; do validated="0" local daemon