Check cluster status using `ccp status` command

Change-Id: Ia565337348e79385f334027022e05d760b553330
This commit is contained in:
Sergey Reshetnyak 2016-11-14 19:23:45 +03:00
parent 43af0ab8d3
commit 826d3b4a5b
1 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,9 @@ EOF
}
function ccp_wait_for_deployment_to_finish {
until kubectl --namespace $1 get jobs | awk '$3 ~ 0 {print}' | wc -l | grep "^0$"; do
echo "Waiting for jobs to finish..."
sleep 1m
until [[ `${CCP} status -s -f value -c status` == "ok" ]]; do
echo "Waiting for OpenStack deployment to finish..."
sleep 5
done
echo "...................................."
echo "Jobs and pods in namespace: $1"