]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch_to_containers: don't set noup flag v3.2.45
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 16 Jun 2020 15:43:13 +0000 (17:43 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 29 Jun 2020 13:25:01 +0000 (15:25 +0200)
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 25b64ae291aa64896deb42b764005c2cdcee9f1a..87821fc18ecdeafc8d7cf6d751886b90b0eaac27 100644 (file)
     health_osd_check_delay: 15
     containerized_deployment: true
     osd_group_name: osds
+    switch_to_containers: True
 
   hosts:
     - "{{ osd_group_name|default('osds') }}"
index 961ae006f5aa8dab95c6ed62699e26f302a02562..e6645cf415fc97bdc2e739a47715821727909a9f 100644 (file)
@@ -40,7 +40,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 ceph_disk_cli_options_facts.yml
   include_tasks: ceph_disk_cli_options_facts.yml
   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