]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini
update sources to 12.2.2
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / functional / simple / tox.ini
1 [tox]
2 envlist = {centos7,xenial}-{filestore,bluestore}-{activate}
3 skipsdist = True
4
5 [testenv]
6 whitelist_externals =
7 vagrant
8 bash
9 git
10 passenv=*
11 setenv=
12 ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
13 ANSIBLE_STDOUT_CALLBACK = debug
14 ANSIBLE_RETRY_FILES_ENABLED = False
15 VAGRANT_CWD = {changedir}
16 CEPH_VOLUME_DEBUG = 1
17 deps=
18 ansible==2.4.1
19 testinfra==1.7.1
20 pytest-xdist
21 changedir=
22 centos7-filestore-activate: {toxinidir}/centos7/filestore/activate
23 centos7-bluestore-activate: {toxinidir}/centos7/bluestore/activate
24 xenial-filestore-activate: {toxinidir}/xenial/filestore/activate
25 xenial-bluestore-activate: {toxinidir}/xenial/bluestore/activate
26 commands=
27 git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch https://github.com/ceph/ceph-ansible.git {envdir}/tmp/ceph-ansible
28
29 vagrant up --no-provision {posargs:--provider=virtualbox}
30 bash {toxinidir}/../scripts/generate_ssh_config.sh {changedir}
31
32 # use ceph-ansible to deploy a ceph cluster on the vms
33 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}"
34
35 # prepare nodes for testing with testinfra
36 ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/setup.yml
37
38 # test cluster state using ceph-ansible tests
39 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
40
41 # make ceph-volume simple take over all the OSDs that got deployed, disabling ceph-disk
42 ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml
43
44 # reboot all vms
45 vagrant reload --no-provision
46
47 # retest to ensure cluster came back up correctly after rebooting
48 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
49
50 vagrant destroy --force