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 <aschoen@redhat.com>
pull/3882/head
Andrew Schoen 2019-03-19 15:08:32 -05:00 committed by Guillaume Abrioux
parent c8814d1331
commit 28c47e4d1b
1 changed files with 16 additions and 0 deletions

View File

@ -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'] }}"