]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: setup nodes for testinfra testing
authorAndrew Schoen <aschoen@redhat.com>
Tue, 8 Aug 2017 15:16:12 +0000 (10:16 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 8 Aug 2017 15:18:45 +0000 (10:18 -0500)
This uses the playbook that exists in ceph-ansible to prepare the nodes for
testing by installing net-tools.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/tests/functional/tox.ini

index f46337e9ecc58b6cd26aca385609a9e888c13628..ce1f51040e8dc64f591c4c13561ad52a9954bc91 100644 (file)
@@ -27,12 +27,14 @@ commands=
   bash {toxinidir}/scripts/generate_ssh_config.sh {changedir}
 
   # create logical volumes to test with on the vms
-  ansible-playbook -vv -i {changedir}/hosts {toxinidir}/setup.yml
   ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/lvm_setup.yml
 
   # use ceph-ansible to deploy a ceph cluster on the vms
   ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/site.yml.sample --extra-vars "fetch_directory={changedir}/fetch ceph_dev_branch={env:CEPH_DEV_BRANCH:master} ceph_dev_sha1={env:CEPH_DEV_SHA1:latest}"
 
+  # prepare nodes for testing with testinfra
+  ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/setup.yml
+
   # test cluster state using ceph-ansible tests
   testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests