]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
filestore-to-bluestore: ensure all dm are closed 4885/head v4.0.6
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 10 Dec 2019 22:04:57 +0000 (23:04 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 11 Dec 2019 15:37:21 +0000 (16:37 +0100)
commit19068659c79e56ddbca0a19c6cf631e8271feac8
tree17ef7b1c38b6ffae5fcf02601122d308974eeb94
parent99ac694cc0894faa4f40a9483e03e148f4e20c22
filestore-to-bluestore: ensure all dm are closed

This commit adds a task to ensure device mappers are well closed when
lvm batch scenario is used.
Otherwise, OSDs can't be redeployed given that devices that are rejected
by ceph-volume because they are locked.

Adding a condition `devices | default([]) | length > 0` to remove these
dm only when using lvm batch scenario.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 8e6ef818a287e8bf139420142493843077ea3851)
infrastructure-playbooks/filestore-to-bluestore.yml