Extend etcd migration logs

This commit is contained in:
Wojciech Tyczynski 2016-11-02 09:32:15 +01:00
parent 07f78836ea
commit dc6571a5b2

View File

@ -114,17 +114,16 @@ start_etcd() {
--listen-client-urls http://127.0.0.1:${ETCD_PORT} \ --listen-client-urls http://127.0.0.1:${ETCD_PORT} \
--advertise-client-urls http://127.0.0.1:${ETCD_PORT} \ --advertise-client-urls http://127.0.0.1:${ETCD_PORT} \
--listen-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \ --listen-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \
--initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \ --initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} &
1>>/dev/null 2>&1 &
ETCD_PID=$! ETCD_PID=$!
# Wait until we can write to etcd. # Wait until we can write to etcd.
for i in $(seq 240); do for i in $(seq 240); do
sleep 0.5
ETCDCTL_API="${API_VERSION}" ${ETCDCTL_CMD} 'etcd_version' ${START_VERSION} ETCDCTL_API="${API_VERSION}" ${ETCDCTL_CMD} 'etcd_version' ${START_VERSION}
if [ "$?" -eq "0" ]; then if [ "$?" -eq "0" ]; then
echo "Etcd on port ${ETCD_PORT} is up." echo "Etcd on port ${ETCD_PORT} is up."
return 0 return 0
fi fi
sleep 0.5
done done
echo "Timeout while waiting for etcd on port ${ETCD_PORT}" echo "Timeout while waiting for etcd on port ${ETCD_PORT}"
return 1 return 1