From: Andrew Schoen Date: Tue, 19 Mar 2019 20:08:32 +0000 (-0500) Subject: rolling_update: migrate ceph-disk osds to ceph-volume X-Git-Tag: v4.0.0rc4~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c28388bb06c7be4a4f41e33e03f90a6c657cf33d;p=ceph-ansible.git rolling_update: migrate ceph-disk osds to ceph-volume 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 (cherry picked from commit 28c47e4d1bb22b0c89f67b315a732b624f650f4b) --- diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 74b839014..f2c8ef65c 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -413,6 +413,22 @@ 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'] }}"