]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osd: avoid using non desired loop device in autodiscovery 2159/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 9 Nov 2017 09:26:24 +0000 (10:26 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 10 Nov 2017 00:27:08 +0000 (01:27 +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>
(cherry picked from commit 43975a7332795fb85a92101b8049c2854598b4e5)

roles/ceph-osd/tasks/main.yml

index 7dc467f2e0e6ab5e119819813e5be3bff9840b7e..1293681dd4d9af21682df8eebdf5851caf5ff5e7 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"