acassen / keepalived

Keepalived
https://www.keepalived.org
GNU General Public License v2.0
4k stars 737 forks source link

Keepalived crash on reload after removing VIPs, rules #1436

Closed batkins61 closed 4 years ago

batkins61 commented 4 years ago

Describe the bug Keepalived was started with 3 VIPs and rules in the configuration. It crashed when the config was reloaded with 2 of the VIPs and corresponding rules removed.

To Reproduce Create a VRRP instance with > 2 VIP and rule clauses. Remove mutliple VIPs and rules, leaving at least one, from the configuration and reload keepalived.

Expected behavior Expected not to have a core file produced on reload.

Keepalived version Keepalived v2.0.10 (11/12,2018)

Copyright(C) 2001-2018 Alexandre Cassen, acassen@gmail.com

Built with kernel headers for Linux 4.18.20 Running on Linux 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+ntap1 (2019-10-09)

configure options: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --with-kernel-dir=debian/ --enable-snmp --enable-sha1 --enable-snmp-rfcv2 --enable-snmp-rfcv3 --enable-dbus --enable-dbus-create-instance --enable-json --enable-bfd build_alias=x86_64-linux-gnu CFLAGS=-g -O2 -fdebug-prefix-map=/build/keepalived-8agDac/keepalived-2.0.10=. -fstack-protector-strong -Wformat -Werror=format-security LDFLAGS=-Wl,-z,relro CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2

Config options: LIBIPSET_DYNAMIC LVS VRRP VRRP_AUTH JSON BFD OLD_CHKSUM_COMPAT FIB_ROUTING SNMP_V3_FOR_V2 SNMP_VRRP SNMP_CHECKER SNMP_RFCV2 SNMP_RFCV3 DBUS DBUS_CREATE_INSTANCE

System options: PIPE2 SIGNALFD INOTIFY_INIT1 VSYSLOG EPOLL_CREATE1 IPV4_DEVCONF LIBNL3 RTA_ENCAP RTA_EXPIRES RTA_NEWDST RTA_PREF FRA_SUPPRESS_PREFIXLEN FRA_SUPPRESS_IFGROUP FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK RTEXT_FILTER_SKIP_STATS FRA_L3MDEV FRA_UID_RANGE RTAX_FASTOPEN_NO_COOKIE RTA_VIA FRA_OIFNAME FRA_PROTOCOL FRA_IP_PROTO FRA_SPORT_RANGE FRA_DPORT_RANGE RTA_TTL_PROPAGATE IFA_FLAGS IP_MULTICAST_ALL LWTUNNEL_ENCAP_MPLS LWTUNNEL_ENCAP_ILA LIBIPTC LIBIPSET_PRE_V7 LIBIPVS_NETLINK IPVS_DEST_ATTR_ADDR_FAMILY IPVS_SYNCD_ATTRIBUTES IPVS_64BIT_STATS VRRP_VMAC SOCK_NONBLOCK SOCK_CLOEXEC O_PATH GLOB_BRACE INET6_ADDR_GEN_MODE VRF SO_MARK SCHED_RT SCHED_RESET_ON_FORK

Distro (please complete the following information):

Details of any containerisation or hosted service (e.g. AWS) Keepalived is running as a standard daemon under Debian 10 inside a Docker container, on a VM also running Debian 10 under vSphere 6.5.

Configuration file: This is the configuration file after the 2 VIPs and corresponding rules were removed; the one on which the reload crashed. The removed VIPs were 47.47.4.218 and 47.47.4.217.

global_defs {
    vrrp_version 3
    enable_script_security
}

vrrp_script ha_check {
    script /etc/sv/nginx-gw/check
    interval 5
    user root
}

vrrp_instance "hg1" {
    interface                  eth0
    priority                   254
    virtual_router_id          1
    advert_int                 1
    accept

    track_interface {
      eth2
    }

    unicast_peer {
        172.16.4.214
    }

    virtual_ipaddress {
        47.47.4.219 dev eth2
    }

    virtual_rules {
        from 47.47.4.219 table 102 preference 16384
        to 47.47.4.219 table 102 preference 16383
    }

    track_script {
        ha_check
    }

    notify /usr/sbin/ha_notify.sh root root
}

Notify and track scripts If any notify or track scripts are in use, please provide copies of them

System Log entries

Nov 18 17:23:03 host1 Keepalived[22728]: Starting Keepalived v2.0.10 (11/12,2018) Nov 18 17:23:03 host1 Keepalived[22728]: Running on Linux 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+ntap1 (2019-10-09) (built for Linux 4.18.20) Nov 18 17:23:03 host1 Keepalived[22728]: Command line: '/usr/sbin/keepalived' '--vrrp' '--log-detail' '--dump-conf' '--log-facility=6' Nov 18 17:23:03 host1 Keepalived[22728]: Opening file '/etc/keepalived/keepalived.conf'. Nov 18 17:23:03 host1 Keepalived[22765]: Starting VRRP child process, pid=22766 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Registering Kernel netlink reflector Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Registering Kernel netlink command channel Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Opening file '/etc/keepalived/keepalived.conf'. Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Assigned address 172.16.4.210 for interface eth0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Assigned address fe80::250:56ff:fe87:c44 for interface eth0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Registering gratuitous ARP shared channel Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: (hg1) removing Virtual Rules Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: (hg1) removing VIPs. Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ------< Global definitions >------ Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Network namespace = (default) Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Router ID = host1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Default smtp_alert = unset Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Default smtp_alert_vrrp = unset Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Default smtp_alert_checker = unset Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Dynamic interfaces = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Default interface = eth0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: LVS flush = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP IPv4 mcast group = 224.0.0.18 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP IPv6 mcast group = ff02::12 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP delay = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP repeat = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP refresh timer = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP refresh repeat = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP lower priority delay = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP lower priority repeat = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Send advert after receive lower priority advert = true Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Send advert after receive higher priority advert = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP interval = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous NA interval = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP default protocol version = 3 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Iptables input chain = INPUT Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Using ipsets = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ipset IPv4 address set = keepalived Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ipset IPv6 address set = keepalived6 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ipset IPv6 address,iface set = keepalived_if6 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP check unicast_src = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP skip check advert addresses = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP strict mode = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP process priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP don't swap = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP realtime priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP realtime limit = 10000 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Checker process priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Checker don't swap = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Checker realtime priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Checker realtime limit = 10000 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: BFD process priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: BFD don't swap = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: BFD realtime priority = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: BFD realtime limit = 10000 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP vrrp disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP checker disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP RFCv2 disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP RFCv3 disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP traps disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: SNMP socket = default (unix:/var/agentx/master) Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: DBus disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: DBus service name = Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Script security enabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Default script uid:gid 0:0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: vrrp_netlink_cmd_rcv_bufs = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: vrrp_netlink_cmd_rcv_bufs_force = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: vrrp_netlink_monitor_rcv_bufs = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: vrrp_netlink_monitor_rcv_bufs_force = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: lvs_netlink_cmd_rcv_bufs = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: lvs_netlink_cmd_rcv_bufs_force = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: lvs_netlink_monitor_rcv_bufs = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: lvs_netlink_monitor_rcv_bufs_force = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: rs_init_notifies = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: no_checker_emails = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: rx_bufs_multiples = 3 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: umask = 0133 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ------< VRRP Topology >------ Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP Instance = hg1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP Version = 3 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Wantstate = BACKUP Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Interface = eth0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Using src_ip = 172.16.4.210 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP delay = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP repeat = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP refresh = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP refresh repeat = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP lower priority delay = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Gratuitous ARP lower priority repeat = 5 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Send advert after receive lower priority advert = true Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Send advert after receive higher priority advert = false Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Virtual Router ID = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Priority = 254 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Advert interval = 1000 milli-sec Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Accept = enabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Preempt = enabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Promote_secondaries = disabled Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Virtual IP = 3 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: 47.47.4.219/32 dev eth2 scope global Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: 47.47.4.218/32 dev eth2 scope global Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: 47.47.4.217/32 dev eth2 scope global Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Unicast Peer = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: 172.16.4.214 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Unicast checksum compatibility = no Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: No sockets allocated Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Virtual Rules = 6 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from 47.47.4.219 priority 16384 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from all to 47.47.4.219 priority 16383 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from 47.47.4.218 priority 16382 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from all to 47.47.4.218 priority 16381 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from 47.47.4.217 priority 16380 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: from all to 47.47.4.217 priority 16379 tos 0x0 protocol 112 lookup 102 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracked interfaces = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: eth2 weight 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracked scripts = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ha_check weight 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Using smtp notification = no Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Generic state transition script = '/usr/sbin/ha_notify.sh', uid:gid 0:0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ------< VRRP Scripts >------ Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP Script = ha_check Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Command = '/etc/sv/nginx-gw/check' Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Interval = 5 sec Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Timeout = 0 sec Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Weight = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Rise = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Fall = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Insecure = no Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Status = INIT Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Script uid:gid = 0:0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP instances = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: hg1, weight 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: State = idle Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: ------< Interfaces >------ Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Name = lo Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: index = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv4 address = 127.0.0.1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv6 address = (none) Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: State = UP, RUNNING, no broadcast, loopback, no multicast Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MTU = 65536 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: HW Type = LOOPBACK Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: NIC netlink status update Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset ARP config counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_ignore 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_filter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original promote_secondaries 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset promote_secondaries counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracking VRRP instances = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Name = eth0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: index = 2 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv4 address = 172.16.4.210 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv6 address = fe80::250:56ff:fe87:c44 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC = 00:50:56:87:0c:44 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: State = UP, RUNNING Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MTU = 1400 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: HW Type = ETHERNET Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: NIC netlink status update Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset ARP config counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_ignore 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_filter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original promote_secondaries 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset promote_secondaries counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracking VRRP instances = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: hg1, weight 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Name = eth1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: index = 3 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv4 address = 10.224.4.210 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv6 address = fe80::250:56ff:fe87:94c1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC = 00:50:56:87:94:c1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: State = UP, RUNNING Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MTU = 1400 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: HW Type = ETHERNET Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: NIC netlink status update Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset ARP config counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_ignore 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_filter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original promote_secondaries 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset promote_secondaries counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracking VRRP instances = 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Name = eth2 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: index = 4 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv4 address = 47.47.4.210 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: IPv6 address = fe80::250:56ff:fe87:3f88 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC = 00:50:56:87:3f:88 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: State = UP, RUNNING Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: MTU = 1400 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: HW Type = ETHERNET Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: NIC netlink status update Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset ARP config counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_ignore 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original arp_filter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Original promote_secondaries 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Reset promote_secondaries counter 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: Tracking VRRP instances = 1 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: hg1, weight 0 Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: (hg1) removing Virtual Rules Nov 18 17:23:03 host1 Keepalived_vrrp[22766]: VRRP sockpool: [ifindex(2), family(IPv4), proto(112), unicast(1), fd(11,12)] Nov 18 17:23:06 host1 Keepalived_vrrp[22766]: VRRP_Script(ha_check) succeeded Nov 18 17:23:06 host1 Keepalived_vrrp[22766]: (hg1) Entering BACKUP STATE Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Receive advertisement timeout Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Entering MASTER STATE Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) using locally configured advertisement interval (1000 milli-sec) Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) setting VIPs. Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) setting Virtual Rules Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Received advert from 172.16.4.214 with lower priority 100, ours 254, forcing new election Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:09 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.218 Nov 18 17:23:14 host1 Keepalived_vrrp[22766]: Sending gratuitous ARP on eth2 for 47.47.4.217 Nov 18 17:24:28 host1 Keepalived[22765]: Reloading ... Nov 18 17:24:28 host1 Keepalived[22765]: Opening file '/etc/keepalived/keepalived.conf'. Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: Reloading Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: Opening file '/etc/keepalived/keepalived.conf'. Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: VRRP_Script(ha_check) considered successful on reload Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: Assigned address 172.16.4.210 for interface eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: Assigned address fe80::250:56ff:fe87:c44 for interface eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: ip address 47.47.4.218/32 dev eth2, no longer exist Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: ip address 47.47.4.217/32 dev eth2, no longer exist Nov 18 17:24:28 host1 Keepalived_vrrp[22766]: ip rule 47.47.4.218/32 ... , no longer exist Nov 18 17:24:28 host1 Keepalived[22765]: Keepalived_vrrp exited due to segmentation fault (SIGSEGV). Nov 18 17:24:28 host1 Keepalived[22765]: Please report a bug at https://github.com/acassen/keepalived/issues Nov 18 17:24:28 host1 Keepalived[22765]: and include this log from when keepalived started, a description Nov 18 17:24:28 host1 Keepalived[22765]: of what happened before the crash, your configuration file and the details below. Nov 18 17:24:28 host1 Keepalived[22765]: Also provide the output of keepalived -v, what Linux distro and version Nov 18 17:24:28 host1 Keepalived[22765]: you are running on, and whether keepalived is being run in a container or VM. Nov 18 17:24:28 host1 Keepalived[22765]: A failure to provide all this information may mean the crash cannot be investigated. Nov 18 17:24:28 host1 Keepalived[22765]: If you are able to provide a stack backtrace with gdb that would really help. Nov 18 17:24:28 host1 Keepalived[22765]: Source version 2.0.10 Nov 18 17:24:28 host1 Keepalived[22765]: Built with kernel headers for Linux 4.18.20 Nov 18 17:24:28 host1 Keepalived[22765]: Running on Linux 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+ntap1 (2019-10-09) Nov 18 17:24:28 host1 Keepalived[22765]: Command line: '/usr/sbin/keepalived' '--vrrp' '--log-detail' '--dump-conf' '--log-facility=6' Nov 18 17:24:28 host1 Keepalived[22765]: configure options: --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include Nov 18 17:24:28 host1 Keepalived[22765]: --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc Nov 18 17:24:28 host1 Keepalived[22765]: --localstatedir=/var --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu Nov 18 17:24:28 host1 Keepalived[22765]: --libexecdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run Nov 18 17:24:28 host1 Keepalived[22765]: --disable-maintainer-mode --disable-dependency-tracking --with-kernel-dir=debian/ Nov 18 17:24:28 host1 Keepalived[22765]: --enable-snmp --enable-sha1 --enable-snmp-rfcv2 --enable-snmp-rfcv3 --enable-dbus Nov 18 17:24:28 host1 Keepalived[22765]: --enable-dbus-create-instance --enable-json --enable-bfd Nov 18 17:24:28 host1 Keepalived[22765]: build_alias=x86_64-linux-gnu CFLAGS=-g -O2 Nov 18 17:24:28 host1 Keepalived[22765]: -fdebug-prefix-map=/build/keepalived-8agDac/keepalived-2.0.10=. Nov 18 17:24:28 host1 Keepalived[22765]: -fstack-protector-strong -Wformat -Werror=format-security LDFLAGS=-Wl,-z,relro Nov 18 17:24:28 host1 Keepalived[22765]: CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 Nov 18 17:24:28 host1 Keepalived[22765]: Config options: LIBIPSET_DYNAMIC LVS VRRP VRRP_AUTH JSON BFD OLD_CHKSUM_COMPAT FIB_ROUTING Nov 18 17:24:28 host1 Keepalived[22765]: SNMP_V3_FOR_V2 SNMP_VRRP SNMP_CHECKER SNMP_RFCV2 SNMP_RFCV3 DBUS DBUS_CREATE_INSTANCE Nov 18 17:24:28 host1 Keepalived[22765]: System options: PIPE2 SIGNALFD INOTIFY_INIT1 VSYSLOG EPOLL_CREATE1 IPV4_DEVCONF LIBNL3 RTA_ENCAP Nov 18 17:24:28 host1 Keepalived[22765]: RTA_EXPIRES RTA_NEWDST RTA_PREF FRA_SUPPRESS_PREFIXLEN FRA_SUPPRESS_IFGROUP FRA_TUN_ID Nov 18 17:24:28 host1 Keepalived[22765]: RTAX_CC_ALGO RTAX_QUICKACK RTEXT_FILTER_SKIP_STATS FRA_L3MDEV FRA_UID_RANGE Nov 18 17:24:28 host1 Keepalived[22765]: RTAX_FASTOPEN_NO_COOKIE RTA_VIA FRA_OIFNAME FRA_PROTOCOL FRA_IP_PROTO FRA_SPORT_RANGE Nov 18 17:24:28 host1 Keepalived[22765]: FRA_DPORT_RANGE RTA_TTL_PROPAGATE IFA_FLAGS IP_MULTICAST_ALL LWTUNNEL_ENCAP_MPLS Nov 18 17:24:28 host1 Keepalived[22765]: LWTUNNEL_ENCAP_ILA LIBIPTC LIBIPSET_PRE_V7 LIBIPVS_NETLINK IPVS_DEST_ATTR_ADDR_FAMILY Nov 18 17:24:28 host1 Keepalived[22765]: IPVS_SYNCD_ATTRIBUTES IPVS_64BIT_STATS VRRP_VMAC SOCK_NONBLOCK SOCK_CLOEXEC O_PATH Nov 18 17:24:28 host1 Keepalived[22765]: GLOB_BRACE INET6_ADDR_GEN_MODE VRF SO_MARK SCHED_RT SCHED_RESET_ON_FORK Nov 18 17:24:28 host1 Keepalived[22765]: VRRP child process(22766) died: Respawning Nov 18 17:24:28 host1 Keepalived[22765]: Starting VRRP child process, pid=27069 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Registering Kernel netlink reflector Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Registering Kernel netlink command channel Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Opening file '/etc/keepalived/keepalived.conf'. Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Assigned address 172.16.4.210 for interface eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Assigned address fe80::250:56ff:fe87:c44 for interface eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Registering gratuitous ARP shared channel Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: (hg1) removing Virtual Rules Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: (hg1) removing VIPs. Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ------< Global definitions >------ Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Network namespace = (default) Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Router ID = host1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Default smtp_alert = unset Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Default smtp_alert_vrrp = unset Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Default smtp_alert_checker = unset Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Dynamic interfaces = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Default interface = eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: LVS flush = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP IPv4 mcast group = 224.0.0.18 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP IPv6 mcast group = ff02::12 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP delay = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP repeat = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP refresh timer = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP refresh repeat = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP lower priority delay = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP lower priority repeat = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Send advert after receive lower priority advert = true Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Send advert after receive higher priority advert = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP interval = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous NA interval = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP default protocol version = 3 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Iptables input chain = INPUT Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Using ipsets = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ipset IPv4 address set = keepalived Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ipset IPv6 address set = keepalived6 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ipset IPv6 address,iface set = keepalived_if6 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP check unicast_src = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP skip check advert addresses = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP strict mode = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP process priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP don't swap = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP realtime priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP realtime limit = 10000 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Checker process priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Checker don't swap = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Checker realtime priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Checker realtime limit = 10000 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: BFD process priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: BFD don't swap = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: BFD realtime priority = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: BFD realtime limit = 10000 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP vrrp disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP checker disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP RFCv2 disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP RFCv3 disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP traps disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: SNMP socket = default (unix:/var/agentx/master) Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: DBus disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: DBus service name = Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Script security enabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Default script uid:gid 0:0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: vrrp_netlink_cmd_rcv_bufs = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: vrrp_netlink_cmd_rcv_bufs_force = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: vrrp_netlink_monitor_rcv_bufs = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: vrrp_netlink_monitor_rcv_bufs_force = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: lvs_netlink_cmd_rcv_bufs = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: lvs_netlink_cmd_rcv_bufs_force = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: lvs_netlink_monitor_rcv_bufs = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: lvs_netlink_monitor_rcv_bufs_force = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: rs_init_notifies = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: no_checker_emails = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: rx_bufs_multiples = 3 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: umask = 00 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ------< VRRP Topology >------ Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP Instance = hg1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP Version = 3 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Wantstate = BACKUP Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Interface = eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Using src_ip = 172.16.4.210 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP delay = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP repeat = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP refresh = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP refresh repeat = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP lower priority delay = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Gratuitous ARP lower priority repeat = 5 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Send advert after receive lower priority advert = true Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Send advert after receive higher priority advert = false Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Virtual Router ID = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Priority = 254 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Advert interval = 1000 milli-sec Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Accept = enabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Preempt = enabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Promote_secondaries = disabled Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Virtual IP = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: 47.47.4.219/32 dev eth2 scope global Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Unicast Peer = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: 172.16.4.214 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Unicast checksum compatibility = no Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: No sockets allocated Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Virtual Rules = 2 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: from 47.47.4.219 priority 16384 tos 0x0 protocol 112 lookup 102 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: from all to 47.47.4.219 priority 16383 tos 0x0 protocol 112 lookup 102 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracked interfaces = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: eth2 weight 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracked scripts = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ha_check weight 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Using smtp notification = no Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Generic state transition script = '/usr/sbin/ha_notify.sh', uid:gid 0:0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ------< VRRP Scripts >------ Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP Script = ha_check Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Command = '/etc/sv/nginx-gw/check' Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Interval = 5 sec Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Timeout = 0 sec Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Weight = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Rise = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Fall = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Insecure = no Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Status = INIT Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Script uid:gid = 0:0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP instances = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: hg1, weight 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: State = idle Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: ------< Interfaces >------ Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Name = lo Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: index = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv4 address = 127.0.0.1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv6 address = (none) Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: State = UP, RUNNING, no broadcast, loopback, no multicast Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MTU = 65536 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: HW Type = LOOPBACK Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: NIC netlink status update Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset ARP config counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_ignore 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_filter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original promote_secondaries 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset promote_secondaries counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracking VRRP instances = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Name = eth0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: index = 2 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv4 address = 172.16.4.210 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv6 address = fe80::250:56ff:fe87:c44 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC = 00:50:56:87:0c:44 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: State = UP, RUNNING Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MTU = 1400 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: HW Type = ETHERNET Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: NIC netlink status update Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset ARP config counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_ignore 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_filter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original promote_secondaries 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset promote_secondaries counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracking VRRP instances = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: hg1, weight 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Name = eth1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: index = 3 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv4 address = 10.224.4.210 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv6 address = fe80::250:56ff:fe87:94c1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC = 00:50:56:87:94:c1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: State = UP, RUNNING Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MTU = 1400 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: HW Type = ETHERNET Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: NIC netlink status update Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset ARP config counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_ignore 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_filter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original promote_secondaries 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset promote_secondaries counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracking VRRP instances = 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Name = eth2 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: index = 4 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv4 address = 47.47.4.210 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: IPv6 address = fe80::250:56ff:fe87:3f88 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC = 00:50:56:87:3f:88 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MAC broadcast = ff:ff:ff:ff:ff:ff Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: State = UP, RUNNING Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: MTU = 1400 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: HW Type = ETHERNET Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: NIC netlink status update Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset ARP config counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_ignore 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original arp_filter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Original promote_secondaries 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Reset promote_secondaries counter 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: Tracking VRRP instances = 1 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: hg1, weight 0 Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: (hg1) removing Virtual Rules Nov 18 17:24:28 host1 Keepalived_vrrp[27069]: VRRP sockpool: [ifindex(2), family(IPv4), proto(112), unicast(1), fd(11,12)] Nov 18 17:24:30 host1 Keepalived_vrrp[27069]: VRRP_Script(ha_check) succeeded Nov 18 17:24:30 host1 Keepalived_vrrp[27069]: (hg1) Entering BACKUP STATE Nov 18 17:24:32 host1 Keepalived_vrrp[27069]: (hg1) received lower priority (100) advert from 172.16.4.214 - discarding Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) received lower priority (100) advert from 172.16.4.214 - discarding Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) Receive advertisement timeout Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) Entering MASTER STATE Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) using locally configured advertisement interval (1000 milli-sec) Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) setting VIPs. Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) setting Virtual Rules Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:33 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: (hg1) Sending/queueing gratuitous ARPs on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219 Nov 18 17:24:38 host1 Keepalived_vrrp[27069]: Sending gratuitous ARP on eth2 for 47.47.4.219

Did keepalived coredump? Reading symbols from /usr/sbin/keepalived...(no debugging symbols found)...done. [New LWP 22766] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Core was generated by `/usr/sbin/keepalived --vrrp --log-detail --dump-conf --log-facility=6'. Program terminated with signal SIGSEGV, Segmentation fault.

0 0x0000561f4d8aa936 in clear_diff_rules ()

(gdb) (gdb) bt

0 0x0000561f4d8aa936 in clear_diff_rules ()

1 0x0000561f4d896e65 in clear_diff_vrrp ()

2 0x0000561f4d8898e2 in ?? ()

3 0x0000561f4d889dec in ?? ()

4 0x0000561f4d8c1abb in process_threads ()

5 0x0000561f4d88a0a9 in start_vrrp_child ()

6 0x0000561f4d86b40e in keepalived_main ()

7 0x00007f27e4c8109b in __libc_start_main (main=0x561f4d869550
, argc=5, argv=0x7fff8ca8e7b8, init=,

fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff8ca8e7a8) at ../csu/libc-start.c:308

8 0x0000561f4d86958a in _start ()

Additional context

pqarmitage commented 4 years ago

Many thanks for reporting this issue. Commit b983718 resolves it.

batkins61 commented 4 years ago

Excellent! Thanks for that. Any chance for a 2.0.10 backport/patch for Debian 10?

pqarmitage commented 4 years ago

We only maintain the master branch and don't backport to earlier versions.

However, patch b983718 applies to the v2.0.10 source, but the following definition needs to be added to keepalived/include/vrrp_ipaddress.h: #define IPADDRESSTOS_BUF_LEN (INET6_ADDRSTRLEN + 4) /* allow for subnet */ which is part of the previous commit e826ae2.

Presumably you need to file a bug against keepalived on Debian's bug tracking system to get the patch incorporated, but issues there don't seem to be processed very rapidly. You are probably best off building the .deb package yourself.