]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: do not use dm when osd_auto_discovery
authorSébastien Han <seb@redhat.com>
Wed, 8 Nov 2017 00:33:10 +0000 (11:33 +1100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Nov 2017 11:08:54 +0000 (12:08 +0100)
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 <seb@redhat.com>
(cherry picked from commit 0930f149154151e19dfc85917b1d8acf19234d33)

roles/ceph-osd/tasks/main.yml

index e54a27871b414749b1f0fc6ebdef2f738e95b2ee..7dc467f2e0e6ab5e119819813e5be3bff9840b7e 100644 (file)
@@ -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