]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make L3 HA VIPs ordering consistent in keepalived.conf
authorAssaf Muller <amuller@redhat.com>
Tue, 23 Dec 2014 11:52:41 +0000 (13:52 +0200)
committerAssaf Muller <amuller@redhat.com>
Wed, 7 Jan 2015 11:56:00 +0000 (13:56 +0200)
commitea587e113a838f74efed9a04c78c0ff3d860d04b
treeccf98730f796e3ccbed7b0b218d6783d68a01032
parent6e42c4c926dacef74b1816126b43faa3abfe8948
Make L3 HA VIPs ordering consistent in keepalived.conf

Currently the order of VIPs in keepalived.conf is determined
by sorting the VIPs whenever one is added or removed. As it
turns out, keepalived doesn't like it when the primary VIP
changes. One side effect is that virtual routes, in our case
the router's default route, may be removed.

This patch fabricates an IP address on the router's HA interface
and uses it as the primary VIP.

Closes-Bug: #1404945
Change-Id: I993daf594a28918de6fafff465f5f40e7b89305e
neutron/agent/l3/ha.py
neutron/agent/linux/keepalived.py
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/agent/linux/test_keepalived.py
neutron/tests/unit/test_l3_agent.py