Two routers in a VRRP group, HAProxy frontend on the virtual address (plus one on the router's own address):
set high-availability vrrp group G interface 'eth1' set high-availability vrrp group G vrid '66' set high-availability vrrp group G address '10.66.1.100/24' set load-balancing haproxy backend PRVBK mode 'tcp' set load-balancing haproxy backend PRVBK server s1 address '10.66.1.2' set load-balancing haproxy backend PRVBK server s1 port '8066' set load-balancing haproxy service PRVH7 mode 'tcp' set load-balancing haproxy service PRVH7 port '2277' set load-balancing haproxy service PRVH7 listen-address '10.66.1.100' set load-balancing haproxy service PRVH7 backend 'PRVBK' set load-balancing haproxy service PRVH7B mode 'tcp' set load-balancing haproxy service PRVH7B port '2278' set load-balancing haproxy service PRVH7B listen-address '10.66.1.1' set load-balancing haproxy service PRVH7B backend 'PRVBK'
Commit and save while the router is master, then reboot it while the other router is master. The boot commit refuses the frontend:
[load-balancing_haproxy] listen-address "10.66.1.100" not assigned on any interface!
and the whole load-balancing haproxy section is missing from the running config, including the frontend on the router's own address. When this router later becomes master and takes the VIP, HAProxy is still not running.
The same check can also drop the config when the router boots as master, because keepalived adds the VIP about 3 s after the HAProxy check runs in the boot commit (seen in testing of the same code).
Cause
The T7928 and T9466 backports (272290a5d, d8214e438) add a listen-address check to load-balancing_haproxy.py verify: is_addr_assigned(address, vrf=vrf, allow_nonlocal=True). A VRRP VIP is not assigned on a backup, and not yet assigned during the boot commit, so verify fails. 1.5.1's scripts have no such check; HAProxy restarted until the address appeared. The refusal with ip_nonlocal_bind as the way out is the T8977 design, but nothing sets ip_nonlocal_bind for an existing VIP frontend on upgrade, so 1.5.1 config loses HAProxy on the first backup boot.
Workaround
set system sysctl parameter net.ipv4.ip_nonlocal_bind value 1 (and net.ipv6.ip_nonlocal_bind for IPv6 VIPs) keeps the config (measured on a build with the same check).
Suggested fix
A migration that sets ip_nonlocal_bind for configs with a frontend on a VRRP address, or do not refuse a listen-address that is a configured VRRP virtual address (or a warning instead of an error for it), or set ip_nonlocal_bind when a frontend uses one. A refusal at boot should not remove the frontends that are valid.