]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: migrate ceph-disk osds to ceph-volume
authorAndrew Schoen <aschoen@redhat.com>
Tue, 19 Mar 2019 20:08:32 +0000 (15:08 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Apr 2019 08:55:11 +0000 (10:55 +0200)
When upgrading to nautlius run ``ceph-volume simple scan`` and
``ceph-volume simple activate --all`` to migrate any running
ceph-disk osds to ceph-volume.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1656460
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 5b6449e3b75597a64bb03257ab83e7c4afdd1a29..29174b0a79d4eeaa6906660555f3e5ccbd1ec0f6 100644 (file)
       when:
         - containerized_deployment
 
+    - name: scan ceph-disk osds with ceph-volume if deploying nautilus
+      command: "ceph-volume --cluster={{ cluster }} simple scan"
+      environment:
+        CEPH_VOLUME_DEBUG: 1
+      when:
+        - ceph_release in ["nautilus", "octopus"]
+        - not containerized_deployment
+
+    - name: activate scanned ceph-disk osds and migrate to ceph-volume if deploying nautilus
+      command: "ceph-volume --cluster={{ cluster }} simple activate --all"
+      environment:
+        CEPH_VOLUME_DEBUG: 1
+      when:
+        - ceph_release in ["nautilus", "octopus"]
+        - not containerized_deployment
+
     - name: set_fact docker_exec_cmd_osd
       set_fact:
         docker_exec_cmd_update_osd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"