From: Sébastien Han Date: Wed, 8 Nov 2017 00:33:10 +0000 (+1100) Subject: osd: do not use dm when osd_auto_discovery X-Git-Tag: beta-3.1.0~70^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0930f149154151e19dfc85917b1d8acf19234d33;p=ceph-ansible.git osd: do not use dm when osd_auto_discovery The current code will also return lvm devices such as /dev/dm-2, this kind of device type is not supported by ceph-disk at the moment. Now we just ignore them. Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-osd/tasks/main.yml b/roles/ceph-osd/tasks/main.yml index 3025999cd..773ced7ea 100644 --- a/roles/ceph-osd/tasks/main.yml +++ b/roles/ceph-osd/tasks/main.yml @@ -28,6 +28,7 @@ - item.value.removable == "0" - item.value.partitions|count == 0 - item.value.holders|count == 0 + - "'dm-' not in item.key" - name: include check_devices.yml include: check_devices.yml