]>
git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/functional/simple/tox.ini
6d48c35b3b633e6908a0a7263346e1f40921ec21
2 envlist = {centos7,xenial}-{filestore,bluestore}-{activate,dmcrypt_plain,dmcrypt_luks}
13 ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
14 ANSIBLE_STDOUT_CALLBACK = debug
15 ANSIBLE_RETRY_FILES_ENABLED = False
16 VAGRANT_CWD = {changedir}
23 centos7
-filestore
-activate
: {toxinidir
}/centos7
/filestore
/activate
24 centos7
-bluestore
-activate
: {toxinidir
}/centos7
/bluestore
/activate
25 xenial
-filestore
-activate
: {toxinidir
}/xenial
/filestore
/activate
26 xenial
-bluestore
-activate
: {toxinidir
}/xenial
/bluestore
/activate
27 xenial
-bluestore
-dmcrypt_plain
: {toxinidir
}/xenial
/bluestore
/dmcrypt
-plain
28 xenial
-bluestore
-dmcrypt_luks
: {toxinidir
}/xenial
/bluestore
/dmcrypt
-luks
29 xenial
-filestore
-dmcrypt_plain
: {toxinidir
}/xenial
/filestore
/dmcrypt
-plain
30 xenial
-filestore
-dmcrypt_luks
: {toxinidir
}/xenial
/filestore
/dmcrypt
-luks
31 centos7
-bluestore
-dmcrypt_plain
: {toxinidir
}/centos7
/bluestore
/dmcrypt
-plain
32 centos7
-bluestore
-dmcrypt_luks
: {toxinidir
}/centos7
/bluestore
/dmcrypt
-luks
33 centos7
-filestore
-dmcrypt_plain
: {toxinidir
}/centos7
/filestore
/dmcrypt
-plain
34 centos7
-filestore
-dmcrypt_luks
: {toxinidir
}/centos7
/filestore
/dmcrypt
-luks
36 git clone
-b
{env
:CEPH_ANSIBLE_BRANCH
:master
} --single
-branch https
://github.com
/ceph
/ceph
-ansible.git
{envdir
}/tmp
/ceph
-ansible
38 vagrant up --no-provision {posargs:--provider=virtualbox}
39 bash
{toxinidir
}/..
/scripts
/generate_ssh_config.sh
{changedir
}
41 # use ceph-ansible to deploy a ceph cluster on the vms
42 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}"
44 # prepare nodes for testing with testinfra
45 ansible
-playbook
-vv
-i
{changedir
}/hosts
{envdir
}/tmp
/ceph
-ansible
/tests
/functional
/setup.yml
47 # test cluster state using ceph-ansible tests
48 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
50 # make ceph-volume simple take over all the OSDs that got deployed, disabling ceph-disk
51 ansible
-playbook
-vv
-i
{changedir
}/hosts
{changedir
}/test.yml
54 vagrant reload
--no
-provision
56 # wait 2 minutes for services to be ready
59 # retest to ensure cluster came back up correctly after rebooting
60 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests
62 vagrant destroy
--force