]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
filestore-to-bluestore: force OSDs to be marked down
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 10 Dec 2019 22:03:40 +0000 (23:03 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 11 Dec 2019 14:04:41 +0000 (09:04 -0500)
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 <gabrioux@redhat.com>
infrastructure-playbooks/filestore-to-bluestore.yml

index f09106444c1f00dc3c2f9f7370cce23c035e2502..ebe9b17bac7d5b149c42d51f2b168a5559fc7d21 100644 (file)
             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 }}"