Improve waiting in build-and-deploy
This commit is contained in:
parent
8d256a1737
commit
c858ae8fed
|
@ -61,8 +61,11 @@ for HOST in ${HOSTS[@]}; do
|
|||
ssh $HOST $SUDO systemctl restart pvcapid-worker &>/dev/null
|
||||
ssh $HOST $SUDO systemctl restart pvcnoded &>/dev/null
|
||||
echo " done."
|
||||
echo -n "Waiting 30s for host to stabilize... "
|
||||
sleep 30
|
||||
echo -n "Waiting for node daemon to be running..."
|
||||
while [[ $( ssh $HOST "pvc -q node list -f json ${HOST%%.*} | jq -r '.[].daemon_state'" ) != "run" ]]; do
|
||||
sleep 5
|
||||
echo -n "."
|
||||
done
|
||||
echo " done."
|
||||
done
|
||||
if [[ -z ${KEEP_ARTIFACTS} ]]; then
|
||||
|
|
Loading…
Reference in New Issue