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: v13.2.7~284^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F28947%2Fhead;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 db965243686be..a37113db964e0 100644 --- a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini @@ -54,6 +54,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