From f1321886588d2f6d78888eb1d33279948a4a1504 Mon Sep 17 00:00:00 2001 From: Michael Sambol Date: Mon, 17 Aug 2015 11:14:06 -0500 Subject: [PATCH] Remove parition check from ceph-osd role I'm removing the ceph paritition check from `activate osd(s) when device is a disk` because the ceph parition does not exist when parted was registered (on a fresh install). This was causing the activate step to be skipped. --- roles/ceph-osd/tasks/activate_osds.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index d6becc9be..02bb6b587 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -5,14 +5,11 @@ command: | ceph-disk activate {{ item.2 | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1 with_together: - - parted.results - ispartition.results - devices changed_when: false - failed_when: false - when: - item.0.rc == 0 and - item.1.rc != 0 + failed_when: false + when: item.0.rc != 0 # NOTE (leseb): this task is for partitions because we don't explicitly use a partition. - name: activate osd(s) when device is a partition -- 2.39.5