ceph-volume: sleep 2 minutes after reboot in simple tests

This will allow for some time for OSD services to start back up after
reboot. If not we see race conditions where tests fail because they
were run before the OSD finished startup.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
Andrew Schoen 2018-02-06 10:46:44 -06:00
parent 3052010a80
commit 85b319a2c5

View File

@ -7,6 +7,7 @@ whitelist_externals =
vagrant
bash
git
sleep
passenv=*
setenv=
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
@ -52,6 +53,9 @@ commands=
# reboot all vms
vagrant reload --no-provision
# wait 2 minutes for services to be ready
sleep 120
# retest to ensure cluster came back up correctly after rebooting
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests