]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-rgw-loadbalancer: Fix keepalived master selection
authorBenoît Knecht <bknecht@protonmail.ch>
Mon, 1 Jun 2020 15:09:18 +0000 (17:09 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 12 Jan 2021 10:03:12 +0000 (11:03 +0100)
commit3116f464226d676cae9603503c3f8a2d57bcf055
treeaf1cc27d7fb847178348ac66e701d74740af07a7
parent175ffa1b882960e8127ada7f6a4b1e6c9a9b8fba
ceph-rgw-loadbalancer: Fix keepalived master selection

While 2ca33641 fixed a bug in the way the `keepalived.conf.j2` template matched
hostnames to set the VRRP `MASTER`/`BACKUP` states, it also introduced a
regression in the case where `virtual_ips` is a list of more than one IP
address.

The previous behavior would result in each host in the `rgwloadbalancers` group
to be `MASTER` for one of the `virtual_ips`, but the new behavior caused the
first host to be `MASTER` for all the IP address in `virtual_ips`.

This commit restores the original behavior.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
roles/ceph-rgw-loadbalancer/tasks/pre_requisite.yml
roles/ceph-rgw-loadbalancer/templates/keepalived.conf.j2