Skip to content

Commit

Permalink
ceph-volume tests add a sleep in tox for slow OSDs after booting
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <adeza@redhat.com>
  • Loading branch information
Alfredo Deza committed Jul 2, 2019
1 parent f473336 commit b398f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b398f99

Please sign in to comment.