]> 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>
Wed, 5 May 2021 07:55:33 +0000 (09:55 +0200)
commit6451d3681b7f7115e5753444d3de9026666dbc3f
tree6af41a8e9ceab8dcc0b835516e5f77ef6c9f2a40
parent84a0ed440d4fa10bfce3029eeceb12b7094970d2
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>
(cherry picked from commit 3116f464226d676cae9603503c3f8a2d57bcf055)
roles/ceph-rgw-loadbalancer/tasks/pre_requisite.yml
roles/ceph-rgw-loadbalancer/templates/keepalived.conf.j2