]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
multisite: fix bug during switch2containers
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 Jun 2021 07:39:18 +0000 (09:39 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 16 Jun 2021 23:49:29 +0000 (01:49 +0200)
commit8279d14d328ad4bacafc01847f3ad9f385b4a3d5
tree698fae5be068b1328049b1cd067b25bc8b3b88c4
parent3eba2a1584284363cae81118ed6dbe7649b03c19
multisite: fix bug during switch2containers

When running the switch-to-containers playbook with multisite enabled,
the fact "rgw_instances" is only set for the node being processed
(serial: 1), the consequence of that is that the set_fact of
'rgw_instances_all' can't iterate over all rgw node in order to look up
each 'rgw_instances_host'.

Adding a condition checking whether hostvars[item]["rgw_instances_host"]
is defined fixes this issue.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1967926
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-facts/tasks/set_radosgw_address.yml