Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

retry the VM add a few times to deal with delay issues

  • Loading branch information...
commit 17b20a5dffd163eb6a436bb3fece4b76b7beb653 1 parent 63bfc65
BuzzTroll authored
Showing with 22 additions and 7 deletions.
  1. +22 −7 tests/make-test-env.sh
29 tests/make-test-env.sh
View
@@ -182,13 +182,28 @@ if [ $? -ne 0 ]; then
cat $install_dir/var/cumulus.log
exit 1
fi
-$install_dir/bin/nimbus-nodes --add localhost --memory 10240
-if [ $? -ne 0 ]; then
- ls -l $install_dir/var/services.log
- cat $install_dir/var/services.log
- echo "Adding VMM node failed"
- exit 1
-fi
+
+done=1
+try_count=0
+while [ $done -ne 0 ];
+do
+ $install_dir/bin/nimbus-nodes --add localhost --memory 10240
+ if [ $? -eq 0 ]; then
+ done=0
+ else
+ try_count=`expr $try_count + 1`
+
+ if [ $try_count -gt 10 ]; then
+ echo "Adding VMM node failed"
+ cat $install_dir/var/services.log
+ cat $install_dir/var/cumulus.log
+ ls -l $install_dir/var/
+ exit 1
+ fi
+ sleep 30
+ fi
+done
+
$install_dir/bin/nimbusctl services stop
if [ $? -ne 0 ]; then
echo "Stopping Nimbus services failed"
Please sign in to comment.
Something went wrong with that request. Please try again.