]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: sleep 2 minutes after reboot in simple tests
authorAndrew Schoen <aschoen@redhat.com>
Tue, 6 Feb 2018 16:46:44 +0000 (10:46 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 7 Feb 2018 14:46:51 +0000 (08:46 -0600)
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>
(cherry picked from commit 85b319a2c577c1fa86c6ccbbac61f015dd24ad21)

src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini

index 25ecbd6316c76ffde1e45d4c3ec175d270a5b91f..6d48c35b3b633e6908a0a7263346e1f40921ec21 100644 (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