X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functions.sh;h=c8493d2875180b1a72edd25d3ea82efa6ae1be3f;hb=a281ecc3c1cd85d5adc3ca68f877a251e1f82dbc;hp=d3d027e1bd7af72dd870e6fd4839e8f526300f10;hpb=bc5a2b41babac562ddf640b6f8fcce15f7d9ea48;p=kuberef.git diff --git a/functions.sh b/functions.sh index d3d027e..c8493d2 100755 --- a/functions.sh +++ b/functions.sh @@ -23,7 +23,16 @@ clean_up() { # Create jumphost VM create_jump() { ./create_vm.sh "$VM_NAME" - sleep 30 + jumpbox_ip=$(get_vm_ip) + i=0 + while [ -z $jumpbox_ip ]; do + sleep $((++i)) + jumpbox_ip=$(get_vm_ip) + done + i=0 + until nc -w5 -z $jumpbox_ip 22; do + sleep $((++i)) + done } # Get jumphost VM IP