From 59b96e9f110bf6e9fcb1b8fa208be7baf64db8ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Sat, 13 Feb 2016 23:07:44 +0100 Subject: [PATCH] ceph-osd: fix the autodiscovery osd scenario MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit the parted command wasn't getting the devices properly and the partition count is not necessary. Signed-off-by: Sébastien Han --- roles/ceph-osd/tasks/check_devices.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/ceph-osd/tasks/check_devices.yml b/roles/ceph-osd/tasks/check_devices.yml index 64d62c1a7..8292ea3df 100644 --- a/roles/ceph-osd/tasks/check_devices.yml +++ b/roles/ceph-osd/tasks/check_devices.yml @@ -118,7 +118,7 @@ when: not osd_auto_discovery - name: check if a partition named 'ceph' exists (autodiscover disks) - shell: "parted --script /dev/{{ item }} print | egrep -sq '^ 1.*ceph'" + shell: "parted --script /dev/{{ item.key }} print | egrep -sq '^ 1.*ceph'" with_dict: ansible_devices changed_when: false failed_when: false @@ -126,7 +126,6 @@ when: ansible_devices is defined and item.value.removable == "0" and - item.value.partitions|count != 0 and osd_auto_discovery # NOTE (leseb): we must do this because of -- 2.39.5