]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: enable new nautilus-only functionality
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 20 Mar 2019 12:25:26 +0000 (13:25 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 25 Mar 2019 20:02:56 +0000 (16:02 -0400)
once the cluster is upgraded to nautilus, we can complete the process by
disallowing pre-nautilus OSDs and enabling all new nautilus-only functionality

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/rolling_update.yml

index f74b5ae8731ba2de75099a00ba520fdcae5a2bc4..994bc051ac7e5e90d596da3cf1b14fbca41ac99a 100644 (file)
     - import_role:
         name: ceph-client
 
+- name: complete upgrade
+  hosts:
+    - all
+  become: True
+  tasks:
+    - import_role:
+        name: ceph-defaults
+    - import_role:
+        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"
+      delegate_to: "{{ groups[mon_group_name][0] }}"
+      run_once: True
+      when: containerized_deployment
+
+    - name: non container | disallow pre-nautilus OSDs and enable all new nautilus-only functionality
+      command: ceph osd require-osd-release nautilus
+      delegate_to: "{{ groups[mon_group_name][0] }}"
+      run_once: True
+      when: not containerized_deployment
 
     - name: container | enable msgr2 protocol
       command: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph mon enable-msgr2"