From: Alfredo Deza Date: Tue, 2 Jul 2019 12:34:01 +0000 (-0400) Subject: ceph-volume tests add a sleep in tox for slow OSDs after booting X-Git-Tag: v14.2.2~9^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7c292056473a3085a662699e268773d1e06e9e0a;p=ceph.git ceph-volume tests add a sleep in tox for slow OSDs after booting Signed-off-by: Alfredo Deza (cherry picked from commit b398f99f810d97c94af6d943aed4c11a5fd69c19) --- diff --git a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini index 9e308a72989e2..431021315b183 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini @@ -58,6 +58,9 @@ commands= # reboot all vms - attempt bash {toxinidir}/../scripts/vagrant_reload.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox} + # after a reboot, osds may take about 20 seconds to come back up + sleep 30 + # retest to ensure cluster came back up correctly after rebooting py.test -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests diff --git a/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini b/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini index 3f35c5a01df2e..edc89f3cee0f5 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini @@ -62,6 +62,9 @@ commands= # reboot all vms - attempt bash {toxinidir}/../scripts/vagrant_reload.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox} + # after a reboot, osds may take about 20 seconds to come back up + sleep 30 + # retest to ensure cluster came back up correctly after rebooting py.test -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests