]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch_to_containers: don't set noup flag
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Jun 2020 15:43:13 +0000 (17:43 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 17 Jun 2020 13:24:02 +0000 (09:24 -0400)
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 <gabrioux@redhat.com>
(cherry picked from commit b91d60d38456f9e316bee3daeb2f72dda0315cae)

infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml
roles/ceph-osd/tasks/main.yml

index dec3915603c72a4199f4f00d20214babbf24b2c5..56906771ba16c287cbbd85ad66708effca0e2f14 100644 (file)
   vars:
     containerized_deployment: true
     osd_group_name: osds
+    switch_to_containers: True
 
   hosts: "{{ osd_group_name|default('osds') }}"
 
index 7e7a6437d06e4cbfdeae5733601b91217225b9f1..3bc8489d01c246b94d6382573e964e3d67f231f2 100644 (file)
@@ -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