]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: avoid using non desired loop device in autodiscovery 2154/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Nov 2017 09:26:24 +0000 (10:26 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Nov 2017 09:26:24 +0000 (10:26 +0100)
This will prevent ceph-ansible from using a loop device while it
shouldn't in auto_discovery mode.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-osd/tasks/main.yml

index 773ced7eae96e5e3546254b4ec6a702fdb8df434..0fce26e3a4320da421ef58f02d45a90022ee6788 100644 (file)
@@ -26,6 +26,7 @@
     - osd_auto_discovery
     - ansible_devices is defined
     - item.value.removable == "0"
+    - item.value.sectors != "0"
     - item.value.partitions|count == 0
     - item.value.holders|count == 0
     - "'dm-' not in item.key"