Skip to content

Commit

Permalink
WIP - more output
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed May 15, 2024
1 parent 6570ac6 commit e2fd260
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/integration-test
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ echo "Starting Rancher Server"
bash -ex "$(which entrypoint.sh)" >./rancher.log 2>&1 &
RANCHER_PID=$!

echo "Home on this here host $(hostname) is $HOME"

echo "Waiting for Rancher health check..."
RETRIES=0
while ! curl -sf http://localhost:80/healthz >/dev/null 2>&1; do
Expand All @@ -31,6 +33,18 @@ while ! curl -sf http://localhost:80/healthz >/dev/null 2>&1; do
exit 2
fi
echo "Try #$RETRIES waiting for rancher"
if [ $RETRIES -eq 10 ] ; then
echo "is k3s running?"
ps auxww | grep k3s
echo "is rancher running?"
ps auxww | grep rancher
echo "ok all of ps..."
ps auxww
echo "What about .kube"?
ls $HOME
ls $HOME/.kube
fi

sleep 2
done

Expand Down

0 comments on commit e2fd260

Please sign in to comment.