]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add --cluster option on ceph require-osd-release command v4.0.30
authorFrancesco Pantano <fpantano@redhat.com>
Mon, 7 Sep 2020 12:02:06 +0000 (14:02 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 9 Sep 2020 13:11:24 +0000 (15:11 +0200)
On DCN environments, or when multiple ceph cluster are configured,
we need to specify the cluster name before running the command or
the rolling_update playbook will fail during minor updates.

Closes: https://bugzilla.redhat.com/1876447
Signed-off-by: Francesco Pantano <fpantano@redhat.com>
(cherry picked from commit cb64df30b687d95704bac76ed0b4f83dfc3ca992)

infrastructure-playbooks/rolling_update.yml

index 2f2e45b8bb5ac125517853328612c0f6ee0b273c..4dc9ee6c12a2ba526b68ea191ffa5142bfd9209d 100644 (file)
         name: ceph-facts
 
     - name: container | disallow pre-nautilus OSDs and enable all new nautilus-only functionality
-      command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph osd require-osd-release nautilus"
+      command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} osd require-osd-release nautilus"
       delegate_to: "{{ groups[mon_group_name][0] }}"
       run_once: True
       when: containerized_deployment | bool
       when: not containerized_deployment | bool
 
     - name: container | enable msgr2 protocol
-      command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph mon enable-msgr2"
+      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