]> 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)
committerSébastien Han <seb@redhat.com>
Wed, 8 Nov 2017 00:33:10 +0000 (11:33 +1100)
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>
roles/ceph-osd/tasks/main.yml

index 3025999cd70ae7c80745824ec68a0ebfa4fc5da5..773ced7eae96e5e3546254b4ec6a702fdb8df434 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