From c9071a6af00b7e1ec1261a03948ec868bbfedd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 21 Mar 2016 16:00:58 +0100 Subject: [PATCH] ceph-osd: fix activate for osd on partitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we want to activate the OSD when it's a partition we are looking for a return code that is equal to 0 which means the device is a partition. closes: #636 Signed-off-by: Sébastien Han --- roles/ceph-osd/tasks/activate_osds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-osd/tasks/activate_osds.yml b/roles/ceph-osd/tasks/activate_osds.yml index b9b7c1f02..0ee388b5c 100644 --- a/roles/ceph-osd/tasks/activate_osds.yml +++ b/roles/ceph-osd/tasks/activate_osds.yml @@ -35,7 +35,7 @@ failed_when: false when: not item.0.get("skipped") and - item.0.get("rc", 0) != 0 and + item.0.get("rc", 0) == 0 and not osd_auto_discovery - include: osd_fragment.yml