Open louis-6wind opened 1 year ago
To fix the issue, patches https://github.com/acassen/keepalived/pull/2277 and https://github.com/acassen/keepalived/pull/2281 are needed.
A more complicated scenario works with the patches
# Apply the following commands
killall keepalived
sleep 1
ip link set iface5 down
ip link set iface5 name ens5
ip link set ens5 down
ip -6 addr add fd00:100::3/64 dev ens4
ip addr add 10.0.0.1/24 dev ens4
ip link set dev ens4 up
sleep 2
cat>/etc/keepalived/keepalived.conf <<\EOF
global_defs
{
router_id router
dynamic_interfaces
}
vrrp_sync_group group15 {
group {
vrrp
}
}
vrrp_instance vrrp {
version 3
state BACKUP
interface ens4
use_vmac vrrp
garp_master_delay 5
virtual_router_id 15
priority 200
advert_int 1.0
virtual_ipaddress {
fd00:100::1/64
}
preempt_delay 0
}
EOF
keepalived -D
sleep 5
journalctl _PID=$(pgrep keepalived | tail -n1) | cat
sed -e 's|ens4|iface6|g' -i /etc/keepalived/keepalived.conf
killall -s SIGHUP keepalived
sleep 4
ip -br l
journalctl _PID=$(pgrep keepalived | tail -n1) | cat
sed -e 's|iface6|iface5|g' -i /etc/keepalived/keepalived.conf
killall -s SIGHUP keepalived
sleep 4
ip -br l
ip link set ens5 name iface5 up
sleep 4
journalctl _PID=$(pgrep keepalived | tail -n1) | cat
ip -br l
Describe the bug VRRPv3 IPv6 remains in a persistent FAULT state after setting an non-existent VMAC base interface. When the base interface appears, the problem is not solved. Base interface is never updated on the vmac.
To Reproduce
On a standalone VM machine
Expected behavior
Instance in MASTER state. VMAC updated with the correct base interface
Keepalived version
Distro (please complete the following information):
Details of any containerisation or hosted service (e.g. AWS)
NA
Configuration file: See above Notify and track scripts NA
System Log entries
Did keepalived coredump? No