attempt: try gluster peer probe several times before giving up
authorMichael Adam <obnox@samba.org>
Tue, 24 Feb 2015 15:55:11 +0000 (16:55 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 24 Feb 2015 15:55:11 +0000 (16:55 +0100)
This is an attempt to treat timing issues.
Probably not the right way.

Vagrantfile

index 7f6bf605c5cca4d7c343c2feec11cee105cb1ea9..4a4010df846ef3761dde5b2954b995b1a10a8f67 100644 (file)
@@ -251,7 +251,12 @@ PEER_IPS="$@"
 
 for PEER_IP in ${PEER_IPS}
 do
-  gluster peer probe ${PEER_IP}
+  # try for some time to reach the other node:
+  for COUNT in $(seq 1 12)
+  do
+    gluster peer probe ${PEER_IP} && break
+    sleep 1
+  done
 done
 SCRIPT