]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
cephadm-adopt: fix mgr placement hosts task
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 10 Jun 2021 13:12:41 +0000 (15:12 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 14 Jun 2021 11:56:00 +0000 (13:56 +0200)
commit1eb42b143a831ed6d1cbc6d6d53a8fb12836edf5
treee314586e757ab765f624dad74ef49c591f8712a6
parent82b06afc96171c1367ce5391085ebe0a2506acd3
cephadm-adopt: fix mgr placement hosts task

When no `[mgrs]` group is defined in the inventory, mgr daemon are
implicitly collocated with monitors.
This task currently relies on the length of the mgr group in order to
tell cephadm to deploy mgr daemons.
If there's no `[mgrs]` group defined in the inventory, it will ask
cephadm to deploy 0 mgr daemon which doesn't make sense and will throw
an error.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1970313
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit f9a73149a4da79db4942d98b366d686665d402d7)
infrastructure-playbooks/cephadm-adopt.yml