command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd require-osd-release pacific"
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: True
- when: containerized_deployment | bool
+ when:
+ - containerized_deployment | bool
+ - groups.get(mon_group_name, []) | length > 0
- name: non container | disallow pre-pacific OSDs and enable all new pacific-only functionality
command: "ceph --cluster {{ cluster }} osd require-osd-release pacific"
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: True
- when: not containerized_deployment | bool
+ when:
+ - not containerized_deployment | bool
+ - groups.get(mon_group_name, []) | length > 0
- name: container | enable msgr2 protocol
command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} mon enable-msgr2"
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: True
- when: containerized_deployment | bool
+ when:
+ - containerized_deployment | bool
+ - groups.get(mon_group_name, []) | length > 0
- name: non container | enable msgr2 protocol
command: "ceph --cluster {{ cluster }} mon enable-msgr2"
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: True
- when: not containerized_deployment | bool
+ when:
+ - not containerized_deployment | bool
+ - groups.get(mon_group_name, []) | length > 0
- import_role:
name: ceph-handler
register: rolling_update_fsid
delegate_to: "{{ mon_host | default(groups[mon_group_name][0]) }}"
until: rolling_update_fsid is succeeded
- when: rolling_update | bool
+ when:
+ - rolling_update | bool
+ - groups.get(mon_group_name, []) | length > 0
- name: set_fact fsid
set_fact:
fsid: "{{ (rolling_update_fsid.stdout | from_json).fsid }}"
- when: rolling_update | bool
+ when:
+ - rolling_update | bool
+ - groups.get(mon_group_name, []) | length > 0
- name: set_fact fsid from current_fsid
set_fact:
py.test --reruns 5 --reruns-delay 1 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/inventory/external_clients-hosts --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests/test_install.py::TestCephConf
+ ansible-playbook -vv -i {changedir}/inventory/external_clients-hosts {toxinidir}/infrastructure-playbooks/rolling_update.yml --extra-vars "\
+ ireallymeanit=yes \
+ fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
+ 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_dev_branch=master \
+ ceph_dev_sha1=latest \
+ ceph_docker_registry_auth=True \
+ ceph_docker_registry_username={env:DOCKER_HUB_USERNAME} \
+ ceph_docker_registry_password={env:DOCKER_HUB_PASSWORD} \
+ "
+
+ py.test --reruns 5 --reruns-delay 1 -n 8 --durations=0 --sudo -v --connection=ansible --ansible-inventory={changedir}/inventory/external_clients-hosts --ssh-config={changedir}/vagrant_ssh_config {toxinidir}/tests/functional/tests/test_install.py::TestCephConf
+
vagrant destroy --force