From dc6571a5b269af9261841afc36a3ea6008bf51cf Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Wed, 2 Nov 2016 09:32:15 +0100 Subject: [PATCH] Extend etcd migration logs --- cluster/images/etcd/migrate-if-needed.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cluster/images/etcd/migrate-if-needed.sh b/cluster/images/etcd/migrate-if-needed.sh index 2ab0fc8683..2867e95752 100755 --- a/cluster/images/etcd/migrate-if-needed.sh +++ b/cluster/images/etcd/migrate-if-needed.sh @@ -114,17 +114,16 @@ start_etcd() { --listen-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} \ - --initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} \ - 1>>/dev/null 2>&1 & + --initial-advertise-peer-urls http://127.0.0.1:${ETCD_PEER_PORT} & ETCD_PID=$! # Wait until we can write to etcd. for i in $(seq 240); do + sleep 0.5 ETCDCTL_API="${API_VERSION}" ${ETCDCTL_CMD} 'etcd_version' ${START_VERSION} if [ "$?" -eq "0" ]; then echo "Etcd on port ${ETCD_PORT} is up." return 0 fi - sleep 0.5 done echo "Timeout while waiting for etcd on port ${ETCD_PORT}" return 1