From: Sébastien Han Date: Sat, 13 Feb 2016 22:07:44 +0000 (+0100) Subject: ceph-osd: fix the autodiscovery osd scenario X-Git-Tag: v1.0.0~36^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=59b96e9f110bf6e9fcb1b8fa208be7baf64db8ae;p=ceph-ansible.git ceph-osd: fix the autodiscovery osd scenario the parted command wasn't getting the devices properly and the partition count is not necessary. Signed-off-by: Sébastien Han --- 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