From: Guillaume Abrioux Date: Tue, 16 Jun 2020 15:43:13 +0000 (+0200) Subject: switch_to_containers: don't set noup flag X-Git-Tag: v6.0.0alpha2~170 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b91d60d38456f9e316bee3daeb2f72dda0315cae;p=ceph-ansible.git switch_to_containers: don't set noup flag We shouldn't set this flag when running switch_to_containers playbook. Otherwise the playbook fails waiting for pgs to be clean. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1843569 Signed-off-by: Guillaume Abrioux --- diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index dec391560..56906771b 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -214,6 +214,7 @@ vars: containerized_deployment: true osd_group_name: osds + switch_to_containers: True hosts: "{{ osd_group_name|default('osds') }}" diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 7e7a6437d..3bc8489d0 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -43,7 +43,9 @@ delegate_to: "{{ groups[mon_group_name][0] }}" run_once: True changed_when: False - when: not rolling_update | default(False) | bool + when: + - not rolling_update | default(False) | bool + - not switch_to_containers | default(False) | bool - name: include container_options_facts.yml include_tasks: container_options_facts.yml @@ -70,6 +72,7 @@ changed_when: False when: - not rolling_update | default(False) | bool + - not switch_to_containers | default(False) | bool - inventory_hostname == ansible_play_hosts_all | last - name: wait for all osd to be up