mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
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:
parent
3052010a80
commit
85b319a2c5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user