ceph-validate: fail if no mgr host is present

We already stop the upgrade playbook (rolling_update.yml) if there's
no mgr node present so we should also do the same for initial
deployment.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1788644

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/5065/head
Dimitri Savineau 2020-02-11 11:44:28 -05:00 committed by Dimitri Savineau
parent 553fb1ed1e
commit 306ce82358
1 changed files with 7 additions and 0 deletions

View File

@ -158,6 +158,13 @@
- osd_objectstore == 'filestore'
- osd_group_name in group_names
- name: fail if no mgr host is present in the inventory
fail:
msg: "Please add a mgr host to your inventory."
when:
- groups.get(mon_group_name, []) | length > 0
- groups.get(mgr_group_name, []) | length == 0
- name: include check_system.yml
include_tasks: check_system.yml