Merge pull request #1439 from ceph/rhcs-tests

tests: fix ceph_rhcs setup
pull/1438/merge
Andrew Schoen 2017-04-13 07:23:07 -05:00 committed by GitHub
commit ebed16e9a5
3 changed files with 24 additions and 7 deletions

View File

@ -38,8 +38,8 @@
- include: ./installs/install_on_redhat.yml - include: ./installs/install_on_redhat.yml
when: when:
ansible_os_family == 'RedHat' and - ansible_os_family == 'RedHat'
not ceph_rhcs_iso_install - not ceph_rhcs
tags: tags:
- package-install - package-install
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent) # Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)

View File

@ -27,6 +27,28 @@
dest: "{{ change_dir }}/vagrant_variables.yml" dest: "{{ change_dir }}/vagrant_variables.yml"
when: change_dir is defined when: change_dir is defined
- name: change ceph_stable to False
replace:
regexp: "ceph_stable:.*"
replace: "ceph_stable: False"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- name: set ceph_rhcs to True
lineinfile:
line: "ceph_rhcs: True"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- name: set ceph_origin to distro
lineinfile:
line: "ceph_origin: distro"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- name: print contents of {{ change_dir }}/group_vars/all
command: "cat {{ change_dir }}/group_vars/all"
- hosts: all - hosts: all
gather_facts: true gather_facts: true
become: yes become: yes

View File

@ -18,7 +18,6 @@ commands=
"ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\ "ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\
"ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\ "ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\
"ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\ "ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\
"ceph_stable":{env:CEPH_STABLE:true}\
\}' \}'
# set up the cluster again # set up the cluster again
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/site.yml.sample --extra-vars '\ ansible-playbook -vv -i {changedir}/hosts {toxinidir}/site.yml.sample --extra-vars '\
@ -30,7 +29,6 @@ commands=
"ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\ "ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\
"ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\ "ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\
"ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\ "ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\
"ceph_stable":{env:CEPH_STABLE:true}\
\}' \}'
# test that the cluster can be redeployed in a healthy state # 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 testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
@ -50,7 +48,6 @@ commands=
"ceph_dev_branch":"{env:UPDATE_CEPH_DEV_BRANCH:master}",\ "ceph_dev_branch":"{env:UPDATE_CEPH_DEV_BRANCH:master}",\
"ceph_dev_sha1":"{env:UPDATE_CEPH_DEV_SHA1:latest}",\ "ceph_dev_sha1":"{env:UPDATE_CEPH_DEV_SHA1:latest}",\
"ceph_stable_release":"{env:UPDATE_CEPH_STABLE_RELEASE:kraken}",\ "ceph_stable_release":"{env:UPDATE_CEPH_STABLE_RELEASE:kraken}",\
"ceph_stable":{env:CEPH_STABLE:true}\
\}' \}'
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
@ -71,7 +68,6 @@ setenv=
docker_dedicated_journal: PLAYBOOK = site-docker.yml.sample docker_dedicated_journal: PLAYBOOK = site-docker.yml.sample
docker_dmcrypt_journal_collocation: PLAYBOOK = site-docker.yml.sample docker_dmcrypt_journal_collocation: PLAYBOOK = site-docker.yml.sample
rhcs: CEPH_RHCS = true rhcs: CEPH_RHCS = true
rhcs: CEPH_STABLE = false
jewel: CEPH_STABLE_RELEASE = jewel jewel: CEPH_STABLE_RELEASE = jewel
kraken: CEPH_STABLE_RELEASE = kraken kraken: CEPH_STABLE_RELEASE = kraken
kraken: UPDATE_CEPH_STABLE_RELEASE = luminous kraken: UPDATE_CEPH_STABLE_RELEASE = luminous
@ -118,7 +114,6 @@ commands=
"ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\ "ceph_dev_branch":"{env:CEPH_DEV_BRANCH:master}",\
"ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\ "ceph_dev_sha1":"{env:CEPH_DEV_SHA1:latest}",\
"ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\ "ceph_stable_release":"{env:CEPH_STABLE_RELEASE:jewel}",\
"ceph_stable":{env:CEPH_STABLE:true},\
"ceph_docker_registry":"{env:CEPH_DOCKER_REGISTRY:docker.io}",\ "ceph_docker_registry":"{env:CEPH_DOCKER_REGISTRY:docker.io}",\
"ceph_docker_image":"{env:CEPH_DOCKER_IMAGE:ceph/daemon}",\ "ceph_docker_image":"{env:CEPH_DOCKER_IMAGE:ceph/daemon}",\
"ceph_docker_image_tag":"{env:CEPH_DOCKER_IMAGE_TAG:latest}"\ "ceph_docker_image_tag":"{env:CEPH_DOCKER_IMAGE_TAG:latest}"\