Commit 3add7083 authored by Brendan Burns's avatar Brendan Burns

Merge pull request #2950 from zulily/rax-master-ip-loop

Look up master node IP address in a loop
parents 2c64db59 eb0a1171
...@@ -238,7 +238,20 @@ detect-minions() { ...@@ -238,7 +238,20 @@ detect-minions() {
detect-master() { detect-master() {
KUBE_MASTER=${MASTER_NAME} KUBE_MASTER=${MASTER_NAME}
echo "Waiting for ${MASTER_NAME} IP Address."
echo
echo " This will continually check to see if the master node has an IP address."
echo
KUBE_MASTER_IP=$(nova show $KUBE_MASTER --minimal | grep accessIPv4 | awk '{print $4}')
while [ "${KUBE_MASTER_IP-|}" == "|" ]; do
KUBE_MASTER_IP=$(nova show $KUBE_MASTER --minimal | grep accessIPv4 | awk '{print $4}') KUBE_MASTER_IP=$(nova show $KUBE_MASTER --minimal | grep accessIPv4 | awk '{print $4}')
printf "."
sleep 2
done
echo "${KUBE_MASTER} IP Address is ${KUBE_MASTER_IP}"
} }
# $1 should be the network you would like to get an IP address for # $1 should be the network you would like to get an IP address for
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment