Skip to content

Commit

Permalink
Merge pull request #34960 from ibuildthecloud/debug
Browse files Browse the repository at this point in the history
 Restart Rancher if it fails to start in CI
  • Loading branch information
cbron committed Sep 29, 2021
2 parents 0e49c0f + fddc5d2 commit cf413c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,19 @@ trap cleanup exit
#tail -F /tmp/rancher.log &
#TPID=$!
while ! curl -sf http://localhost:8080/ping; do
if [ ! -e /proc/$PID ]; then
echo Rancher died
./scripts/run >/tmp/rancher.log 2>&1 &
PID=$!
fi
sleep 2
done
while ! kubectl --kubeconfig /etc/rancher/k3s/k3s.yaml rollout status -w -n cattle-system deploy/rancher-webhook; do
if [ ! -e /proc/$PID ]; then
echo Rancher died
./scripts/run >/tmp/rancher.log 2>&1 &
PID=$!
fi
sleep 2
done
#kill $TPID
Expand Down

0 comments on commit cf413c5

Please sign in to comment.