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: v15.1.0~2318^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F28836%2Fhead;p=ceph.git ceph-volume tests add a sleep in tox for slow OSDs after booting Signed-off-by: Alfredo Deza --- 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 e4d9e6760b7..6c4a240a9cc 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 --ssh-config={changedir}/vagrant_ssh_config --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 c358897314d..ca09298b5e0 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 --ssh-config={changedir}/vagrant_ssh_config --ansible-inventory={changedir}/hosts {toxinidir}/../tests