X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-kubernetes-create.sh;h=3d9d00b1eab4c2f6f9db521eb3754f34f8f74805;hb=987dd81473e9c5090aab1e80ad47acd1f7974d7c;hp=5ee05b095bd4914de7e15237d3c4b29b0749eddd;hpb=7c79416c145e1086e6ed5b4e944d41309a53624a;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-kubernetes-create.sh b/shell/openstack-kubernetes-create.sh index 5ee05b09..3d9d00b1 100755 --- a/shell/openstack-kubernetes-create.sh +++ b/shell/openstack-kubernetes-create.sh @@ -59,14 +59,12 @@ cluster_uuid=$(openstack coe cluster create "$cluster_name" \ # Sleep for a little, because sometimes OpenStack has to catch up with itself sleep 15 -while [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_IN_PROGRESS" ] -do +while [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_IN_PROGRESS" ]; do # echo "sleeping $(date)" sleep 2m done -if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_FAILED" ] -then +if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_FAILED" ]; then echo "Failed to create cluster: $cluster_uuid $(date)" openstack --os-cloud "$os_cloud" coe cluster delete "$cluster_uuid" sleep 5m @@ -74,7 +72,6 @@ then exit 1 fi -if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_COMPLETE" ] -then +if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_COMPLETE" ]; then echo "Successfully created cluster: $cluster_uuid." fi