]> git.proxmox.com Git - ceph.git/blame - ceph/src/ceph-volume/ceph_volume/tests/functional/lvm/tox.ini
update sources to v12.2.5
[ceph.git] / ceph / src / ceph-volume / ceph_volume / tests / functional / lvm / tox.ini
CommitLineData
d2e6a577 1[tox]
b32b8144 2envlist = {centos7,xenial}-{filestore,bluestore}-{create,prepare_activate,dmcrypt}
d2e6a577
FG
3skipsdist = True
4
5[testenv]
6whitelist_externals =
7 vagrant
8 bash
9 git
10passenv=*
11setenv=
12 ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
94b18763 13 ANSIBLE_ACTION_PLUGINS = {envdir}/tmp/ceph-ansible/plugins/actions
d2e6a577
FG
14 ANSIBLE_STDOUT_CALLBACK = debug
15 ANSIBLE_RETRY_FILES_ENABLED = False
3a9019d9 16 ANSIBLE_SSH_RETRIES = 5
d2e6a577
FG
17 VAGRANT_CWD = {changedir}
18 CEPH_VOLUME_DEBUG = 1
19deps=
3efd9988
FG
20 ansible==2.4.1
21 testinfra==1.7.1
d2e6a577
FG
22 pytest-xdist
23changedir=
b32b8144 24 # plain/unencrypted
3efd9988
FG
25 centos7-filestore-create: {toxinidir}/centos7/filestore/create
26 centos7-bluestore-create: {toxinidir}/centos7/bluestore/create
27 xenial-filestore-create: {toxinidir}/xenial/filestore/create
28 xenial-bluestore-create: {toxinidir}/xenial/bluestore/create
b32b8144
FG
29 # dmcrypt
30 centos7-filestore-dmcrypt: {toxinidir}/centos7/filestore/dmcrypt
31 centos7-bluestore-dmcrypt: {toxinidir}/centos7/bluestore/dmcrypt
32 xenial-filestore-dmcrypt: {toxinidir}/xenial/filestore/dmcrypt
33 xenial-bluestore-dmcrypt: {toxinidir}/xenial/bluestore/dmcrypt
d2e6a577
FG
34 # TODO: these are placeholders for now, eventually we want to
35 # test the prepare/activate workflow of ceph-volume as well
3efd9988
FG
36 xenial-filestore-prepare_activate: {toxinidir}/xenial/filestore/prepare_activate
37 xenial-bluestore-prepare_activate: {toxinidir}/xenial/bluestore/prepare_activate
38 centos7-filestore-prepare_activate: {toxinidir}/xenial/filestore/prepare_activate
39 centos7-bluestore-prepare_activate: {toxinidir}/xenial/bluestore/prepare_activate
d2e6a577
FG
40commands=
41 git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch https://github.com/ceph/ceph-ansible.git {envdir}/tmp/ceph-ansible
42
43 vagrant up --no-provision {posargs:--provider=virtualbox}
3efd9988 44 bash {toxinidir}/../scripts/generate_ssh_config.sh {changedir}
d2e6a577
FG
45
46 # create logical volumes to test with on the vms
47 ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/lvm_setup.yml
48
3efd9988
FG
49 # ad-hoc/local test setup for lvm
50 ansible-playbook -vv -i {changedir}/hosts {changedir}/setup.yml
51
d2e6a577
FG
52 # use ceph-ansible to deploy a ceph cluster on the vms
53 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}"
54
55 # prepare nodes for testing with testinfra
56 ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/setup.yml
57
58 # test cluster state using ceph-ansible tests
59 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
60
94b18763
FG
61 # reboot all vms - attempt
62 bash {toxinidir}/../scripts/vagrant_reload.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox}
d2e6a577
FG
63
64 # retest to ensure cluster came back up correctly after rebooting
65 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
66
b32b8144 67 # destroy an OSD, zap it's device and recreate it using it's ID
3a9019d9 68 ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml
b32b8144
FG
69
70 # retest to ensure cluster came back up correctly
3a9019d9 71 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
b32b8144 72
d2e6a577 73 vagrant destroy --force