]> git-server-git.apps.pok.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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Dec 2019 15:37:21 +0000 (16:37 +0100)
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>
(cherry picked from commit 51d601193ee2050a002dafd29005019e26e2a804)

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 }}"