Public bug reported:
Ubuntu Release: 16.04.6 LTS
Keepalived Package Version: 1.2.24-1ubuntu0.16.04.2
-- /etc/keepalived/keepalived.conf --
vrrp_script chk_apiserver {
script "curl https://127.0.0.1:443/healthz --cacert ca.crt --key
request.key --cert request.crt --fail > /dev/null 2>&1"
interval 10
fall 6
rise 2
}
vrrp_instance K8S_APISERVER {
interface ens3
state BACKUP
virtual_router_id 118
nopreempt
dont_track_primary
authentication {
auth_type AH
auth_pass **REDACTED**
}
virtual_ipaddress {
10.128.233.23
}
track_script {
chk_apiserver
}
}
Expected Behavior: Upon DHCP renewal, Keepalived would maintain its VIP
on the designated interface. In the case that the VIP is lost (outside
of its control), it should failover to another VRRP instance.
Actual Behavior: VIP disappeared from the designated interface, and did
not failover to any other VRRP instance until Keepalived was restarted.
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast state UP
group default qlen 1000
link/ether fa:16:3e:8c:d2:e1 brd ff:ff:ff:ff:ff:ff
inet 172.20.34.50/27 brd 172.20.34.63 scope global ens3
valid_lft forever preferred_lft forever
inet6 fe80::f816:3eff:fe8c:d2e1/64 scope link
valid_lft forever preferred_lft forever
-- /var/log/syslog --
Feb 5 21:13:17 dhclient[839]: DHCPDISCOVER on ens3 to 255.255.255.255 port 67
interval 3 (xid=0x4cfc595e)
Feb 5 21:13:17 dhclient[839]: DHCPREQUEST of 172.20.34.50 on ens3 to
255.255.255.255 port 67 (xid=0x5e59fc4c)
Feb 5 21:13:17 dhclient[839]: DHCPOFFER of 172.20.34.50 from 172.20.34.36
Feb 5 21:13:17 dhclient[839]: DHCPACK of 172.20.34.50 from 172.20.34.36
Feb 5 21:13:17 dhclient[839]: bound to 172.20.34.50 -- renewal in 40846
seconds.
Feb 5 21:13:19 ntpd[19295]: Deleting interface #34 ens3, 172.20.34.40#123,
interface stats: received=0, sent=0, dropped=0, active_time=150821 secs
-- /tmp/keepalived.stats --
VRRP Instance: K8S_APISERVER
Advertisements:
Received: 10722
Sent: 153463
Became master: 1
Released master: 0
Packet Errors:
Length: 0
TTL: 0
Invalid Type: 0
Advertisement Interval: 0
Address List: 0
Authentication Errors:
Invalid Type: 0
Type Mismatch: 0
Failure: 15
Priority Zero:
Received: 0
Sent: 0
Note: the networking.service was *not* restarted during this timeframe;
however, I have been able to reproduce the issue in that manner.
Additionally, I've not been able to reproduce this issue by hand, i.e.
'dhclient -v -r ens3'. It seemingly only occurs when the lease has
expired; it is the only time in which we can observe ntpd detecting that
the interface has disappeared (thus the 'Deleting interface' message) at
least.
** Affects: keepalived (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1863174
Title:
Keepalived Loses VIP on DHCP Renewal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1863174/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs