From 8530bc10a2cdc79f765033db7eb6e444686e2e5f Mon Sep 17 00:00:00 2001 From: "Michal (inc0) Jastrzebski" Date: Fri, 9 Jun 2017 11:03:50 -0700 Subject: [PATCH] Enable deploying ceph on loopback devices Since whole issue was related to check whether user wants to wipe device, loopbacks can be opt out from this warnings Change-Id: Idd823b282e3055457ed041a98c848deb8509cc30 Closes-Bug: #1667074 --- ansible/roles/ceph/tasks/bootstrap_osds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/ceph/tasks/bootstrap_osds.yml b/ansible/roles/ceph/tasks/bootstrap_osds.yml index 1ede1aafe6..135f713630 100644 --- a/ansible/roles/ceph/tasks/bootstrap_osds.yml +++ b/ansible/roles/ceph/tasks/bootstrap_osds.yml @@ -35,6 +35,7 @@ with_items: "{{ osds_bootstrap|default([]) }}" when: - item.external_journal | bool == False + - item.device.split('/')[2] in ansible_devices # if there is no device in setup (like loopback, we don't need to warn user - ansible_devices[item.device.split('/')[2]].partitions|count > 1 - ceph_osd_wipe_disk != "yes-i-really-really-mean-it"