Check to ensure device checks only happen on osds

Add bool for osd_group_name in group_names for osd checks.
pull/379/head
Andy McCrae 2015-08-17 11:20:46 +01:00
parent 967b9b51c0
commit 942f914b84
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@
fail: msg="please choose an osd scenario"
when:
osd_group_name is defined and
osd_group_name in group_names and
not journal_collocation and
not raw_multi_journal and
not osd_directory
@ -42,6 +43,7 @@
fail: msg="please select only one osd scenario"
when:
osd_group_name is defined and
osd_group_name in group_names and
((journal_collocation and raw_multi_journal) or
(journal_collocation and osd_directory) or
(raw_multi_journal and osd_directory))
@ -50,6 +52,7 @@
fail: msg="please provide devices to your osd scenario"
when:
osd_group_name is defined and
osd_group_name in group_names and
journal_collocation and
devices is not defined
@ -57,6 +60,7 @@
fail: msg="please provide devices to your osd scenario"
when:
osd_group_name is defined and
osd_group_name in group_names and
raw_multi_journal and
(raw_journal_devices is not defined or
devices is not defined)