From: Alfredo Deza Date: Tue, 9 Jul 2019 18:37:29 +0000 (-0400) Subject: Merge pull request #28926 from ceph/backport-luminous-28294 X-Git-Tag: v12.2.13~194 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=89aa41a47ec8b4658574a84a5b2e2331acd5596d;p=ceph.git Merge pull request #28926 from ceph/backport-luminous-28294 luminous: tests: pass --ssh-config to pytest to resolve hosts when connecting Reviewed-by: Alfredo Deza --- 89aa41a47ec8b4658574a84a5b2e2331acd5596d diff --cc src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini index a37113db964,b8564ec5eab..9f07e815f6c --- a/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/batch/tox.ini @@@ -54,11 -54,8 +54,11 @@@ 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 + py.test -n 4 --sudo -v --connection=ansible --ssh-config={changedir}/vagrant_ssh_config --ansible-inventory={changedir}/hosts {toxinidir}/../tests # destroy an OSD, zap it's device and recreate it using it's ID ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml diff --cc src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini index d0b56b473b8,1c279edc331..e9e939d1984 --- a/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini +++ b/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini @@@ -62,11 -62,8 +62,11 @@@ 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 + py.test -n 4 --sudo -v --connection=ansible --ssh-config={changedir}/vagrant_ssh_config --ansible-inventory={changedir}/hosts {toxinidir}/../tests # destroy an OSD, zap it's device and recreate it using it's ID ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml