Commit 2c96155c authored by Guillaume Abrioux's avatar Guillaume Abrioux
Browse files

tests: retry to fire up VMs on vagrant failure



Add a script to retry several times to fire up VMs to avoid vagrant
failures.
Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
Co-authored-by: default avatarAndrew Schoen <aschoen@redhat.com>
(cherry picked from commit 1ecb3a93)
parent 7c2918d6
#!/bin/bash
retries=0
until [ $retries -ge 5 ]
do
echo "Attempting to start VMs. Attempts: $retries"
timeout 10m vagrant up "$@" && break
retries=$[$retries+1]
sleep 5
done
sleep 10
\ No newline at end of file
......@@ -423,7 +423,7 @@ changedir=
lvm_auto_discovery: {toxinidir}/tests/functional/lvm-auto-discovery{env:CONTAINER_DIR:}
commands=
vagrant up --no-provision {posargs:--provider=virtualbox}
bash {toxinidir}/tests/scripts/vagrant_up.sh --no-provision {posargs:--provider=virtualbox}
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
# configure lvm
......
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