You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After down/up interface via nmcli, NetworkManager deletes the VIP address and does not reassign the VIP to the configured interface.
To Reproduce
Step 1: On the backup node, use "nmcli c down bond0.91" to take down the network, then use "nmcli c up bond0.91" to restore the network.
Step 2: On the master node, use "nmcli c down bond0.91" to take down the network, then use "nmcli c up bond0.91" to restore the network.
The VIP is lost and will not be configured on any node running Keepalived.
Expected behavior
VIP should configured on the new master node
Keepalived version
2.2.7
Distro (please complete the following information):
Name:Red Hat Enterprise Linux 9
Linux kernel Version: 5.15.131
Architecture: x86_64
Details of any containerisation or hosted service (e.g. AWS)
If any notify or track scripts are in use, please provide copies of them
System Log entries
Wed Mar 19 18:45:25 2025: Deassigned address fe80::c425:ed87:9a2d:d81c from interface bond0.91
Wed Mar 19 18:45:25 2025: Deassigned address 10.255.62.7 from interface bond0.91
Wed Mar 19 18:45:25 2025: Netlink reports bond0.91 down
Wed Mar 19 18:45:25 2025: (dns-grp) Entering FAULT STATE
2025-03-19 18:45:25 notify_stor_dns.sh:execute notify dns script
2025-03-19 18:45:25 notify_stor_dns.sh:INSTANCE:dns-grp become fault
Wed Mar 19 18:45:25 2025: Interface vxlan.calico deleted
Wed Mar 19 18:45:25 2025: Interface bond0.91 deleted
Wed Mar 19 18:45:25 2025: Closing vrrp socket fd_in
Wed Mar 19 18:45:25 2025: Closing vrrp socket fd_in
Wed Mar 19 18:45:35 2025: Interface bond0.91 added
Wed Mar 19 18:45:35 2025: (dns-grp) interface bond0.91 is down
Wed Mar 19 18:45:35 2025: Netlink reports bond0.91 up
Wed Mar 19 18:45:35 2025: (dns-grp) Entering BACKUP STATE
Wed Mar 19 18:45:35 2025: dns-grp: sending gratuitous ARP for 10.255.62.7
Wed Mar 19 18:45:35 2025: Sending gratuitous ARP on bond0.91 for 10.255.62.7
Wed Mar 19 18:45:35 2025: Assigned address 10.255.62.7 for interface bond0.91
2025-03-19 18:45:35 notify_stor_dns.sh:execute notify dns script
Wed Mar 19 18:45:35 2025: Assigned address fe80::c425:ed87:9a2d:d81c for interface bond0.91
2025-03-19 18:45:35 notify_stor_dns.sh:INSTANCE:dns-grp become backup
The above log "Closing vrrp socket fd_in" that is added to check this bug
Root Cause
When Keepalived receives a link delete event via netlink, cleanup_lost_interface() closes the sockets. Even if the network interface is brought back up, Keepalived nodes will no longer send or receive VRRP packets.
The text was updated successfully, but these errors were encountered:
The versions of keepalived that you tested do not have a problem with interfaces simply being downed and upped, but the problem here, rather, is that for some reason the bond0.91 interface is deleted, and then 10 seconds later it is recreated.
To handle interfaces being deleted and recreated, you need to specify dynamic_interfaces in the global_defs section of your configuration. Also, quite a bit of work has been done in the last week to improve the handling of the deletion and recreation of interfaces, so you will probably need to build keepalived from the head of the master branch in order for this to work successfully.
Describe the bug
After down/up interface via nmcli, NetworkManager deletes the VIP address and does not reassign the VIP to the configured interface.
To Reproduce
Step 1: On the backup node, use "nmcli c down bond0.91" to take down the network, then use "nmcli c up bond0.91" to restore the network.
Step 2: On the master node, use "nmcli c down bond0.91" to take down the network, then use "nmcli c up bond0.91" to restore the network.
The VIP is lost and will not be configured on any node running Keepalived.
Expected behavior
VIP should configured on the new master node
Keepalived version
2.2.7
Distro (please complete the following information):
Details of any containerisation or hosted service (e.g. AWS)
keepalived running in a container on k8s cluster
Configuration file:
Notify and track scripts
System Log entries
The above log "Closing vrrp socket fd_in" that is added to check this bug
Root Cause
When Keepalived receives a link delete event via netlink, cleanup_lost_interface() closes the sockets. Even if the network interface is brought back up, Keepalived nodes will no longer send or receive VRRP packets.
The text was updated successfully, but these errors were encountered: