From 99ac694cc0894faa4f40a9483e03e148f4e20c22 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 10 Dec 2019 23:03:40 +0100 Subject: [PATCH] filestore-to-bluestore: force OSDs to be marked down Otherwise, sometimes it can take a while for an OSD to be seen as down and causes the `ceph osd purge` command to fail. Signed-off-by: Guillaume Abrioux (cherry picked from commit 51d601193ee2050a002dafd29005019e26e2a804) --- infrastructure-playbooks/filestore-to-bluestore.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infrastructure-playbooks/filestore-to-bluestore.yml b/infrastructure-playbooks/filestore-to-bluestore.yml index f09106444..ebe9b17ba 100644 --- a/infrastructure-playbooks/filestore-to-bluestore.yml +++ b/infrastructure-playbooks/filestore-to-bluestore.yml @@ -146,6 +146,12 @@ enabled: no with_items: "{{ (ceph_volume_lvm_list.stdout | from_json).keys() | list }}" + - 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 }}" + delegate_to: "{{ groups[mon_group_name][0] }}" + run_once: true + - name: ensure all dmcrypt for data and journal are closed command: cryptsetup close "{{ item['lv_uuid'] }}" with_items: "{{ _lvm_list }}"