2016-11-05 01:25:06 +08:00
|
|
|
[tox]
|
2017-10-30 21:45:59 +08:00
|
|
|
envlist = {dev,jewel,luminous,rhcs}-{ansible2.2,ansible2.3,ansible2.4}-{xenial_cluster,centos7_cluster,docker_cluster,update_cluster,cluster,update_docker_cluster,switch_to_containers,purge_filestore_osds_container,purge_filestore_osds_non_container,purge_cluster_non_container,purge_cluster_container}
|
2017-10-27 19:22:28 +08:00
|
|
|
{dev,luminous,rhcs}-{ansible2.3,ansible2.4}-{filestore_osds_non_container,filestore_osds_container,bluestore_osds_container,bluestore_osds_non_container,bluestore_lvm_osds,lvm_osds,purge_lvm_osds,shrink_mon,shrink_osd,shrink_mon_container,shrink_osd_container,docker_cluster_collocation,purge_bluestore_osds_non_container,purge_bluestore_osds_container}
|
2017-07-12 21:02:32 +08:00
|
|
|
|
2016-11-05 01:25:06 +08:00
|
|
|
skipsdist = True
|
|
|
|
|
2017-01-27 00:38:10 +08:00
|
|
|
# extra commands for purging clusters
|
|
|
|
# that purge the cluster and then set it up again to
|
|
|
|
# ensure that a purge can clear nodes well enough that they
|
|
|
|
# can be redployed to.
|
|
|
|
[purge]
|
|
|
|
commands=
|
2017-05-25 20:50:37 +08:00
|
|
|
cp {toxinidir}/infrastructure-playbooks/{env:PURGE_PLAYBOOK:purge-cluster.yml} {toxinidir}/{env:PURGE_PLAYBOOK:purge-cluster.yml}
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PURGE_PLAYBOOK:purge-cluster.yml} --extra-vars "\
|
2017-05-03 00:15:23 +08:00
|
|
|
ireallymeanit=yes \
|
2017-05-25 20:50:37 +08:00
|
|
|
remove_packages=yes \
|
2017-09-02 01:52:54 +08:00
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
2017-05-03 00:15:23 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
2017-05-25 20:50:37 +08:00
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
2017-05-03 00:15:23 +08:00
|
|
|
"
|
2017-08-23 22:12:40 +08:00
|
|
|
|
|
|
|
# set up the cluster again
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars "\
|
2017-09-02 01:52:54 +08:00
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
2017-08-23 22:12:40 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
|
|
|
ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \
|
|
|
|
"
|
|
|
|
# test that the cluster can be redeployed in a healthy state
|
|
|
|
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
|
|
|
|
|
|
|
|
[purge-lvm]
|
|
|
|
commands=
|
|
|
|
cp {toxinidir}/infrastructure-playbooks/{env:PURGE_PLAYBOOK:purge-cluster.yml} {toxinidir}/{env:PURGE_PLAYBOOK:purge-cluster.yml}
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PURGE_PLAYBOOK:purge-cluster.yml} --extra-vars "\
|
|
|
|
ireallymeanit=yes \
|
|
|
|
remove_packages=yes \
|
2017-09-02 01:52:54 +08:00
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
2017-08-23 22:12:40 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
|
|
|
"
|
|
|
|
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/lvm_setup.yml
|
|
|
|
|
2017-01-27 00:38:10 +08:00
|
|
|
# set up the cluster again
|
2017-06-01 00:53:37 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars "\
|
2017-09-02 01:52:54 +08:00
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
2017-05-03 00:15:23 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
2017-05-25 20:50:37 +08:00
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
2017-07-17 23:26:48 +08:00
|
|
|
ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \
|
2017-05-03 00:15:23 +08:00
|
|
|
"
|
2017-01-27 00:38:10 +08:00
|
|
|
# test that the cluster can be redeployed in a healthy state
|
|
|
|
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
|
|
|
|
|
2017-02-18 04:33:30 +08:00
|
|
|
# extra commands for performing a rolling update
|
|
|
|
# currently this hardcodes the release to kraken
|
|
|
|
# as we're still installing jewel by default
|
|
|
|
[update]
|
|
|
|
commands=
|
|
|
|
cp {toxinidir}/infrastructure-playbooks/rolling_update.yml {toxinidir}/rolling_update.yml
|
2017-05-03 00:15:23 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/rolling_update.yml --extra-vars "\
|
|
|
|
ireallymeanit=yes \
|
|
|
|
ceph_stable_release={env:UPDATE_CEPH_STABLE_RELEASE:kraken} \
|
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
2017-06-06 22:43:14 +08:00
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:UPDATE_CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:UPDATE_CEPH_DOCKER_IMAGE_TAG:latest} \
|
2017-07-17 23:26:48 +08:00
|
|
|
ceph_dev_branch={env:UPDATE_CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:UPDATE_CEPH_DEV_SHA1:latest} \
|
2017-05-03 00:15:23 +08:00
|
|
|
"
|
2017-02-18 04:33:30 +08:00
|
|
|
|
2017-10-31 02:44:56 +08:00
|
|
|
bash -c "CEPH_STABLE_RELEASE={env:UPDATE_CEPH_STABLE_RELEASE:luminous} testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests"
|
2017-02-18 04:33:30 +08:00
|
|
|
|
2017-08-31 06:07:28 +08:00
|
|
|
[shrink-mon]
|
|
|
|
commands=
|
|
|
|
cp {toxinidir}/infrastructure-playbooks/shrink-mon.yml {toxinidir}/shrink-mon.yml
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/shrink-mon.yml --extra-vars "\
|
|
|
|
ireallymeanit=yes \
|
2017-09-18 23:45:08 +08:00
|
|
|
mon_to_kill={env:MON_TO_KILL:ceph-mon2} \
|
2017-08-31 06:07:28 +08:00
|
|
|
"
|
|
|
|
[shrink-osd]
|
|
|
|
commands=
|
|
|
|
cp {toxinidir}/infrastructure-playbooks/shrink-osd.yml {toxinidir}/shrink-osd.yml
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/shrink-osd.yml --extra-vars "\
|
|
|
|
ireallymeanit=yes \
|
|
|
|
osd_to_kill=0 \
|
|
|
|
"
|
|
|
|
|
2017-08-25 20:36:07 +08:00
|
|
|
[switch-to-containers]
|
|
|
|
commands=
|
|
|
|
cp {toxinidir}/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml {toxinidir}/switch-from-non-containerized-to-containerized-ceph-daemons.yml
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/switch-from-non-containerized-to-containerized-ceph-daemons.yml --extra-vars "\
|
|
|
|
ireallymeanit=yes \
|
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:UPDATE_CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:UPDATE_CEPH_DOCKER_IMAGE_TAG:latest} \
|
|
|
|
ceph_dev_branch={env:UPDATE_CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:UPDATE_CEPH_DEV_SHA1:latest} \
|
|
|
|
"
|
|
|
|
|
2017-09-05 21:18:01 +08:00
|
|
|
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts-switch-to-containers {toxinidir}/tests/functional/tests
|
2017-08-25 20:36:07 +08:00
|
|
|
|
2016-11-05 01:25:06 +08:00
|
|
|
[testenv]
|
2016-11-05 02:01:28 +08:00
|
|
|
whitelist_externals =
|
|
|
|
vagrant
|
|
|
|
bash
|
2017-01-10 20:53:17 +08:00
|
|
|
pip
|
2017-01-11 06:56:07 +08:00
|
|
|
cp
|
2017-09-22 05:47:36 +08:00
|
|
|
sleep
|
2016-11-05 01:25:06 +08:00
|
|
|
passenv=*
|
2017-08-28 22:59:28 +08:00
|
|
|
sitepackages=True
|
2016-11-05 01:25:06 +08:00
|
|
|
setenv=
|
2016-11-05 01:49:18 +08:00
|
|
|
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
|
2016-11-05 01:25:06 +08:00
|
|
|
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
|
2017-10-13 00:43:29 +08:00
|
|
|
ANSIBLE_CALLBACK_WHITELIST = profile_tasks
|
2016-12-16 02:23:17 +08:00
|
|
|
# only available for ansible >= 2.2
|
|
|
|
ANSIBLE_STDOUT_CALLBACK = debug
|
2017-10-31 21:39:29 +08:00
|
|
|
ansible2.2: DELEGATE_FACTS_HOST = False
|
2016-12-02 00:19:19 +08:00
|
|
|
docker_cluster: PLAYBOOK = site-docker.yml.sample
|
2017-10-19 21:24:02 +08:00
|
|
|
docker_cluster_collocation: PLAYBOOK = site-docker.yml.sample
|
2017-06-06 22:43:14 +08:00
|
|
|
update_docker_cluster: PLAYBOOK = site-docker.yml.sample
|
2017-10-20 23:18:39 +08:00
|
|
|
purge_cluster_container: PLAYBOOK = site-docker.yml.sample
|
|
|
|
purge_cluster_container: PURGE_PLAYBOOK = purge-docker-cluster.yml
|
|
|
|
purge_bluestore_osds_container: PLAYBOOK = site-docker.yml.sample
|
|
|
|
purge_bluestore_osds_container: PURGE_PLAYBOOK = purge-docker-cluster.yml
|
|
|
|
purge_filestore_osds_container: PLAYBOOK = site-docker.yml.sample
|
|
|
|
purge_filestore_osds_container: PURGE_PLAYBOOK = purge-docker-cluster.yml
|
|
|
|
|
2017-10-05 22:22:04 +08:00
|
|
|
filestore_osds_container: PLAYBOOK = site-docker.yml.sample
|
|
|
|
bluestore_osds_container: PLAYBOOK = site-docker.yml.sample
|
2017-09-18 23:45:08 +08:00
|
|
|
shrink_mon_container: PLAYBOOK = site-docker.yml.sample
|
|
|
|
shrink_mon_container: MON_TO_KILL = mon2
|
|
|
|
shrink_osd_container: PLAYBOOK = site-docker.yml.sample
|
2017-07-12 21:02:32 +08:00
|
|
|
|
2017-09-07 22:45:56 +08:00
|
|
|
rhcs: CEPH_STABLE_RELEASE = luminous
|
2017-10-19 22:12:12 +08:00
|
|
|
jewel: UPDATE_CEPH_STABLE_RELEASE = luminous
|
2017-05-16 00:46:49 +08:00
|
|
|
luminous: UPDATE_CEPH_STABLE_RELEASE = luminous
|
|
|
|
luminous: UPDATE_CEPH_DOCKER_IMAGE_TAG = tag-build-master-luminous-ubuntu-16.04
|
2017-07-26 02:46:22 +08:00
|
|
|
lvm_osds: CEPH_STABLE_RELEASE = luminous
|
2017-10-25 01:02:42 +08:00
|
|
|
bluestore_lvm_osds: CEPH_STABLE_RELEASE = luminous
|
2016-11-05 01:25:06 +08:00
|
|
|
deps=
|
2017-05-11 01:10:13 +08:00
|
|
|
ansible2.2: ansible==2.2.3
|
2017-10-30 21:45:59 +08:00
|
|
|
ansible2.2: -r{toxinidir}/tests/requirements2.2.txt
|
2017-05-23 02:13:04 +08:00
|
|
|
ansible2.3: ansible==2.3.1
|
2017-10-30 21:45:59 +08:00
|
|
|
ansible2.3: -r{toxinidir}/tests/requirements2.2.txt
|
2017-10-23 18:03:01 +08:00
|
|
|
ansible2.4: ansible==2.4.1
|
2017-10-30 21:45:59 +08:00
|
|
|
ansible2.4: -r{toxinidir}/tests/requirements2.4.txt
|
2016-11-05 01:25:06 +08:00
|
|
|
changedir=
|
2017-07-27 23:05:59 +08:00
|
|
|
# tests a 1 mon, 1 osd, 1 mds and 1 rgw xenial cluster using non-collocated OSD scenario
|
2016-12-02 06:48:06 +08:00
|
|
|
xenial_cluster: {toxinidir}/tests/functional/ubuntu/16.04/cluster
|
2017-07-27 23:05:59 +08:00
|
|
|
# tests a 1 mon, 1 osd, 1 mds and 1 rgw centos7 cluster using non-collocated OSD scenario
|
2016-12-02 06:59:27 +08:00
|
|
|
centos7_cluster: {toxinidir}/tests/functional/centos/7/cluster
|
2017-10-05 22:22:04 +08:00
|
|
|
filestore_osds_container: {toxinidir}/tests/functional/centos/7/fs-osds-container
|
|
|
|
bluestore_osds_container: {toxinidir}/tests/functional/centos/7/bs-osds-container
|
|
|
|
filestore_osds_non_container: {toxinidir}/tests/functional/centos/7/fs-osds-non-container
|
|
|
|
bluestore_osds_non_container: {toxinidir}/tests/functional/centos/7/bs-osds-non-container
|
2017-08-31 06:07:28 +08:00
|
|
|
shrink_mon: {toxinidir}/tests/functional/centos/7/cluster
|
2017-09-18 23:45:08 +08:00
|
|
|
shrink_mon_container: {toxinidir}/tests/functional/centos/7/docker
|
2017-08-31 06:07:28 +08:00
|
|
|
shrink_osd: {toxinidir}/tests/functional/centos/7/cluster
|
2017-09-18 23:45:08 +08:00
|
|
|
shrink_osd_container: {toxinidir}/tests/functional/centos/7/docker
|
2017-04-06 02:36:51 +08:00
|
|
|
# an alias for centos7_cluster, this makes the name better suited for rhcs testing
|
|
|
|
cluster: {toxinidir}/tests/functional/centos/7/cluster
|
2016-12-01 02:20:07 +08:00
|
|
|
# tests a 1 mon, 1 osd, 1 mds and 1 rgw centos7 cluster using docker
|
2017-07-08 00:30:06 +08:00
|
|
|
docker_cluster: {toxinidir}/tests/functional/centos/7/docker
|
2017-09-28 00:22:15 +08:00
|
|
|
docker_cluster_collocation: {toxinidir}/tests/functional/centos/7/docker-collocation
|
2017-07-08 00:30:06 +08:00
|
|
|
update_docker_cluster: {toxinidir}/tests/functional/centos/7/docker
|
2017-10-20 23:18:39 +08:00
|
|
|
purge_filestore_osds_container: {toxinidir}/tests/functional/centos/7/fs-osds-container
|
|
|
|
purge_bluestore_osds_container: {toxinidir}/tests/functional/centos/7/bs-osds-container
|
|
|
|
purge_filestore_osds_non_container: {toxinidir}/tests/functional/centos/7/fs-osds-non-container
|
|
|
|
purge_bluestore_osds_non_container: {toxinidir}/tests/functional/centos/7/bs-osds-non-container
|
|
|
|
purge_cluster_non_container: {toxinidir}/tests/functional/centos/7/cluster
|
|
|
|
purge_cluster_container: {toxinidir}/tests/functional/centos/7/docker
|
2017-03-08 04:05:03 +08:00
|
|
|
update_cluster: {toxinidir}/tests/functional/centos/7/cluster
|
2017-08-25 20:36:07 +08:00
|
|
|
switch_to_containers: {toxinidir}/tests/functional/centos/7/cluster
|
2017-07-26 02:46:22 +08:00
|
|
|
lvm_osds: {toxinidir}/tests/functional/centos/7/lvm-osds
|
2017-10-25 01:02:42 +08:00
|
|
|
bluestore_lvm_osds: {toxinidir}/tests/functional/centos/7/bs-lvm-osds
|
2017-08-23 22:12:40 +08:00
|
|
|
purge_lvm_osds: {toxinidir}/tests/functional/centos/7/lvm-osds
|
2017-07-04 23:12:32 +08:00
|
|
|
|
2016-11-05 01:25:06 +08:00
|
|
|
commands=
|
2017-03-23 01:38:12 +08:00
|
|
|
rhcs: ansible-playbook -vv -i "localhost," -c local {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "change_dir={changedir}" --tags "vagrant_setup"
|
2017-08-03 21:30:25 +08:00
|
|
|
dev: ansible-playbook -vv -i "localhost," -c local {toxinidir}/tests/functional/dev_setup.yml --extra-vars "change_dir={changedir} ceph_dev_branch={env:CEPH_DEV_BRANCH:master} ceph_dev_sha1={env:CEPH_DEV_SHA1:latest}" --tags "vagrant_setup"
|
2017-03-22 23:14:41 +08:00
|
|
|
|
2016-11-09 07:00:09 +08:00
|
|
|
vagrant up --no-provision {posargs:--provider=virtualbox}
|
2016-11-05 02:01:28 +08:00
|
|
|
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
|
2016-11-05 01:25:06 +08:00
|
|
|
|
2017-07-26 02:46:22 +08:00
|
|
|
lvm_osds: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/lvm_setup.yml
|
2017-10-25 01:02:42 +08:00
|
|
|
bluestore_lvm_osds: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/lvm_setup.yml
|
2017-08-23 22:12:40 +08:00
|
|
|
purge_lvm_osds: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/lvm_setup.yml
|
2017-07-26 02:46:22 +08:00
|
|
|
|
2017-05-03 04:49:50 +08:00
|
|
|
rhcs: ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/rhcs_setup.yml --extra-vars "ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} repo_url={env:REPO_URL:} rhel7_repo_url={env:RHEL7_REPO_URL:}" --skip-tags "vagrant_setup"
|
2017-03-22 23:14:41 +08:00
|
|
|
|
2017-05-03 00:15:23 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars "\
|
2017-10-31 21:39:29 +08:00
|
|
|
delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
|
2017-05-03 00:15:23 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
2017-09-02 01:52:54 +08:00
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
2017-05-03 00:15:23 +08:00
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
2017-07-17 23:26:48 +08:00
|
|
|
ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} \
|
2017-05-03 00:15:23 +08:00
|
|
|
"
|
2017-03-16 19:16:09 +08:00
|
|
|
|
2016-12-04 10:08:53 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/setup.yml
|
2016-11-05 01:25:06 +08:00
|
|
|
|
2017-10-08 21:56:39 +08:00
|
|
|
# wait 2 minutes for services to be ready
|
|
|
|
sleep 120
|
2017-09-22 05:47:36 +08:00
|
|
|
# test cluster state using ceph-ansible tests
|
2017-10-04 22:51:32 +08:00
|
|
|
testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
|
2017-09-22 05:47:36 +08:00
|
|
|
|
|
|
|
# reboot all vms
|
2017-10-13 05:41:02 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/tests/functional/reboot.yml
|
2017-09-22 05:47:36 +08:00
|
|
|
|
2017-10-08 21:56:39 +08:00
|
|
|
# wait 2 minutes for services to be ready
|
|
|
|
sleep 120
|
2017-09-22 05:47:36 +08:00
|
|
|
# retest to ensure cluster came back up correctly after rebooting
|
2017-10-04 22:51:32 +08:00
|
|
|
testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
|
2016-12-23 04:13:08 +08:00
|
|
|
|
2017-10-03 04:46:28 +08:00
|
|
|
# handlers/idempotency test
|
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} \
|
|
|
|
--extra-vars "\
|
2017-10-31 21:39:29 +08:00
|
|
|
delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
|
2017-10-03 04:46:28 +08:00
|
|
|
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
|
|
|
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
|
|
|
|
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
|
|
|
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
|
|
|
|
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
|
|
|
|
ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
|
|
|
|
ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} " \
|
|
|
|
--extra-vars @ceph-override.json
|
|
|
|
|
2017-10-20 23:18:39 +08:00
|
|
|
purge_cluster_non_container: {[purge]commands}
|
|
|
|
purge_cluster_container: {[purge]commands}
|
|
|
|
purge_filestore_osds_non_container: {[purge]commands}
|
|
|
|
purge_bluestore_osds_non_container: {[purge]commands}
|
|
|
|
purge_filestore_osds_container: {[purge]commands}
|
|
|
|
purge_bluestore_osds_container: {[purge]commands}
|
2017-08-23 22:12:40 +08:00
|
|
|
purge_lvm_osds: {[purge-lvm]commands}
|
2017-08-25 20:36:07 +08:00
|
|
|
switch_to_containers: {[switch-to-containers]commands}
|
2017-03-08 04:05:03 +08:00
|
|
|
update_cluster: {[update]commands}
|
2017-06-06 22:43:14 +08:00
|
|
|
update_docker_cluster: {[update]commands}
|
2017-08-31 06:07:28 +08:00
|
|
|
shrink_mon: {[shrink-mon]commands}
|
2017-09-18 23:45:08 +08:00
|
|
|
shrink_mon_container: {[shrink-mon]commands}
|
2017-08-31 06:07:28 +08:00
|
|
|
shrink_osd: {[shrink-osd]commands}
|
2017-09-18 23:45:08 +08:00
|
|
|
shrink_osd_container: {[shrink-osd]commands}
|
2017-01-27 00:38:10 +08:00
|
|
|
|
2016-11-05 02:01:28 +08:00
|
|
|
vagrant destroy --force
|