mirror of https://github.com/ceph/ceph-ansible.git
config: fix external client scenario
When no monitor group is present in the inventory, this task fails.
This affects only non-containerized deployments.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e7bc079405
)
pull/5021/head
parent
e3cd719ebe
commit
1b33c5358e
|
@ -137,7 +137,7 @@
|
|||
config_overrides: "{{ ceph_conf_overrides }}"
|
||||
config_type: ini
|
||||
when:
|
||||
- inventory_hostname in groups[mon_group_name]
|
||||
- inventory_hostname in groups.get(mon_group_name, [])
|
||||
- ceph_conf_local | bool
|
||||
|
||||
- name: config file operations for containerized scenarios
|
||||
|
|
|
@ -20,8 +20,8 @@ setenv=
|
|||
ANSIBLE_STDOUT_CALLBACK = yaml
|
||||
# non_container: DEV_SETUP = True
|
||||
# Set the vagrant box image to use
|
||||
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/8
|
||||
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/8
|
||||
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/7
|
||||
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/7
|
||||
ubuntu: CEPH_ANSIBLE_VAGRANT_BOX = guits/ubuntu-bionic64
|
||||
|
||||
# Set the ansible inventory host file to be used according to which distrib we are running on
|
||||
|
@ -42,15 +42,13 @@ commands=
|
|||
# configure lvm
|
||||
ansible-playbook -vv -i {changedir}/{env:INVENTORY} {toxinidir}/tests/functional/lvm_setup.yml
|
||||
|
||||
non_container: ansible-playbook -vv -i "localhost," -c local {toxinidir}/tests/functional/dev_setup.yml --extra-vars "dev_setup=True change_dir={changedir} ceph_dev_branch=master ceph_dev_sha1=latest" --tags "vagrant_setup"
|
||||
ansible-playbook -vv -i {changedir}/{env:INVENTORY} {toxinidir}/{env:PLAYBOOK:site.yml.sample} --limit 'all:!clients' --extra-vars "\
|
||||
delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
|
||||
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
|
||||
ceph_stable_release=nautilus \
|
||||
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
||||
ceph_docker_image=ceph/daemon \
|
||||
ceph_docker_image_tag=latest-master \
|
||||
ceph_dev_branch=master \
|
||||
ceph_dev_sha1=latest \
|
||||
ceph_docker_image_tag=latest-nautilus \
|
||||
"
|
||||
|
||||
ansible-playbook -vv -i {changedir}/external_clients-hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars "\
|
||||
|
@ -59,13 +57,12 @@ commands=
|
|||
fsid=40358a87-ab6e-4bdc-83db-1d909147861c \
|
||||
external_cluster_mon_ips=192.168.31.10,192.168.31.11,192.168.31.12 \
|
||||
generate_fsid=false \
|
||||
ceph_stable_release=nautilus \
|
||||
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
|
||||
ceph_docker_image=ceph/daemon \
|
||||
ceph_docker_image_tag=latest-master \
|
||||
ceph_dev_branch=master \
|
||||
ceph_dev_sha1=latest \
|
||||
ceph_docker_image_tag=latest-nautilus \
|
||||
"
|
||||
|
||||
bash -c "CEPH_STABLE_RELEASE={env:UPDATE_CEPH_STABLE_RELEASE:octopus} py.test --reruns 5 --reruns-delay 1 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/{env:INVENTORY} --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests"
|
||||
bash -c "CEPH_STABLE_RELEASE=nautilus py.test --reruns 5 --reruns-delay 1 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/{env:INVENTORY} --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests"
|
||||
|
||||
vagrant destroy --force
|
||||
|
|
Loading…
Reference in New Issue