]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix devices check for raw_multi_journal 374/head
authorAndy McCrae <andy.mccrae@gmail.com>
Fri, 14 Aug 2015 14:18:18 +0000 (15:18 +0100)
committerAndy McCrae <andy.mccrae@gmail.com>
Fri, 14 Aug 2015 14:43:10 +0000 (15:43 +0100)
Fix the logic for the mandatory devices check so that it applies to
raw_multi_journal and journal_collocation scenarios separately.

This fails otherwise because whichever var is "first" in the or is most
likely undefined.

roles/ceph-common/tasks/checks/check_mandatory_vars.yml

index 2130cb3f1551ebd0021f11c389c19978b7f7d8ee..905d6c387d0f9a9f52d5c355f2438d1064dcd90a 100644 (file)
@@ -50,7 +50,7 @@
   fail: msg="please provide devices to your osd scenario"
   when:
     osd_group_name is defined and
-    (journal_collocation or raw_multi_journal) and
+    journal_collocation and
     devices is not defined
 
 - name: verify journal devices have been provided
@@ -58,7 +58,8 @@
   when:
     osd_group_name is defined and
     raw_multi_journal and
-    raw_journal_devices is not defined
+    (raw_journal_devices is not defined or
+    devices is not defined)
 
 - name: verify directories have been provided
   fail: msg="please provide directories to your osd scenario"