Keepalived preempts

Ross Vandegrift <[email protected]>
Newsgroups gmane.linux.keepalived.devel
Message-ID <[email protected]>
Hello all,

I'm seeing strange VRRP preempt behavior on keepalived 1.2.16 on ubuntu
14.04 LTS.  Both boxes have priority 100 and nopreempt.

10.84.128.202 was master, 10.84.129.151 was backup.  I rebooted the
backup box, and when it returned, it preempted.

Config is simple:
vrrp_instance instance0 {
    state BACKUP
    interface eth0
    unicast_src_ip 10.84.129.151
    unicast_peer {
        10.84.128.202
    }
    virtual_router_id 1
    priority 100
    nopreempt
    notify_master /etc/keepalived/master.sh
    notify_backup /etc/keepalived/backup.sh
    notify_fault /etc/keepalived/fault.sh
}

Peer config is identical but unicast IPs are swapped.  I normally use AH
auth, but it's disabled to simplify troubleshooting - that hasn't
helped.  Maybe I've done something else wrong?

Here's the startup logs from 10.84.129.151:
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived[1092]: Starting Keepalived v1.2.16 (08/04,2015)
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived[1093]: Starting Healthcheck child process, pid=1094
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived[1093]: Starting VRRP child process, pid=1095
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Registering Kernel netlink reflector
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Registering Kernel netlink command channel
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Registering gratuitous ARP shared channel
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Initializing ipvs 2.6
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Opening file '/etc/keepalived/keepalived.conf'.
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Configuration is using : 60216 Bytes
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Using LinkWatch kernel netlink reflector...
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: VRRP_Instance(instance0) Entering BACKUP STATE
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_vrrp[1095]: Opening script file /etc/keepalived/backup.sh
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Registering Kernel netlink reflector
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Registering Kernel netlink command channel
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Opening file '/etc/keepalived/keepalived.conf'.
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Configuration is using : 5437 Bytes
> Sep 16 14:55:21 ip-10-84-129-151 Keepalived_healthcheckers[1094]: Using LinkWatch kernel netlink reflector...
> Sep 16 14:55:24 ip-10-84-129-151 Keepalived_vrrp[1095]: VRRP_Instance(instance0) Transition to MASTER STATE
> Sep 16 14:55:25 ip-10-84-129-151 Keepalived_vrrp[1095]: VRRP_Instance(instance0) Entering MASTER STATE
> Sep 16 14:55:25 ip-10-84-129-151 Keepalived_vrrp[1095]: Opening script file /etc/keepalived/master.sh

Here's the preempt logs from 10.84.128.202:
> Sep 16 14:55:25 ip-10-84-128-202 Keepalived_vrrp[25564]: VRRP_Instance(instance0) Received higher prio advert
> Sep 16 14:55:25 ip-10-84-128-202 Keepalived_vrrp[25564]: VRRP_Instance(instance0) Entering BACKUP STATE
> Sep 16 14:55:25 ip-10-84-128-202 Keepalived_vrrp[25564]: Opening script file /etc/keepalived/backup.sh

Ross

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.