From 38a683e5bf18e0e8ae45ee004715cdb0fae1e09d Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Thu, 5 Mar 2020 14:18:33 -0500 Subject: [PATCH] filestore-to-bluestore: stop ceph-volume services We only disable the ceph-osd services but not the ceph-volume lvm services during the filestore to bluestore migration. Signed-off-by: Dimitri Savineau --- infrastructure-playbooks/filestore-to-bluestore.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/infrastructure-playbooks/filestore-to-bluestore.yml b/infrastructure-playbooks/filestore-to-bluestore.yml index a8ece7c43..40bd64969 100644 --- a/infrastructure-playbooks/filestore-to-bluestore.yml +++ b/infrastructure-playbooks/filestore-to-bluestore.yml @@ -178,6 +178,16 @@ enabled: no with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}" + - name: stop and disable ceph-volume services + service: + name: "ceph-volume@lvm-{{ item.tags['ceph.osd_id'] }}-{{ item.tags['ceph.osd_fsid'] }}" + state: stopped + enabled: no + with_items: "{{ _lvm_list }}" + when: + - not containerized_deployment | bool + - item.type == 'data' + - name: mark down osds command: "{{ container_exec_cmd }} ceph --cluster {{ cluster }} osd down {{ item }}" with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}"