From c8ed033108e8a114ee40f0424af2d88fd98b3b00 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 2 Jul 2019 08:34:01 -0400 Subject: [PATCH] ceph-volume tests add a sleep in tox for slow OSDs after booting Signed-off-by: Alfredo Deza (cherry picked from commit b398f99f810d97c94af6d943aed4c11a5fd69c19) --- src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini | 3 +++ src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.47.3