LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] sync_group infinite loop

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [lvs-users] sync_group infinite loop
From: Gerry Reno <greno@xxxxxxxxxxx>
Date: Sun, 29 Jul 2007 18:22:59 -0400
Created a second set of directors but this time I use sync_group to sync 
two instances like this:

vrrp_sync_group VG1 {
        VI_1
        VI_2
}

vrrp_instance VI_1 {
        state MASTER
#       state BACKUP
        interface eth0
        virtual_router_id 45
        priority 150  # MASTER
#       priority 100  # BACKUP
        advert_int 2
        authentication {
                auth_type PASS
                auth_pass 45
        }
        virtual_ipaddress {
                192.168.1.245/24
        }
        notify_master "/etc/keepalived/myscript"
        notify_backup "/etc/keepalived/myscript"
        notify_fault  "/etc/keepalived/myscript"
}

vrrp_instance VI_2 {
        state MASTER
#       state BACKUP
        interface eth0
        virtual_router_id 46
        priority 150  # MASTER
#       priority 100  # BACKUP
        advert_int 2
        authentication {
                auth_type PASS
                auth_pass 46
        }
        virtual_ipaddress {
                192.168.1.246/24
        }
        notify_master "/etc/keepalived/myscript"
        notify_backup "/etc/keepalived/myscript"
        notify_fault  "/etc/keepalived/myscript"
}

...
virtual_server ...
virtual_server ...
virtual_server ...


and I am seeing an infinite loop in the logs on both directors with 
child processes dying and respawning:

Jul 29 17:52:17 grp-01-00-60 Keepalived: Starting Keepalived v1.1.13 
(03/26,2007)
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Using MII-BMSR 
NIC polling thread...
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Netlink 
reflector reports IP 192.168.1.155 added
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Registering 
Kernel netlink reflector
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Registering 
Kernel netlink command channel
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Configuration is 
using : 23566 Bytes
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.230:22]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.231:22]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.230:3306]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.231:3306]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.230:3306]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.231:3306]
Jul 29 17:52:17 grp-01-00-60 Keepalived_healthcheckers: Activating 
healtchecker for service [192.168.1.239:3306]
Jul 29 17:52:17 grp-01-00-60 Keepalived: Starting Healthcheck child 
process, pid=26763
Jul 29 17:52:17 grp-01-00-60 Keepalived: Remove a zombie pid file 
/var/run/vrrp.pid
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Using MII-BMSR NIC polling 
thread...
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Netlink reflector reports 
IP 192.168.1.155 added
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering Kernel netlink 
reflector
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering Kernel netlink 
command channel
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering gratutious ARP 
shared channel
Jul 29 17:52:17 grp-01-00-60 Keepalived: Starting VRRP child process, 
pid=26764
Jul 29 17:52:17 grp-01-00-60 Keepalived: VRRP child process(26764) died: 
Respawning
Jul 29 17:52:17 grp-01-00-60 Keepalived: Remove a zombie pid file 
/var/run/vrrp.pid
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Using MII-BMSR NIC polling 
thread...
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Netlink reflector reports 
IP 192.168.1.155 added
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering Kernel netlink 
reflector
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering Kernel netlink 
command channel
Jul 29 17:52:17 grp-01-00-60 Keepalived_vrrp: Registering gratutious ARP 
shared channel
Jul 29 17:52:17 grp-01-00-60 Keepalived: Starting VRRP child process, 
pid=26765
Jul 29 17:52:17 grp-01-00-60 Keepalived: VRRP child process(26765) died: 
Respawning
Jul 29 17:52:17 grp-01-00-60 Keepalived: Remove a zombie pid file 
/var/run/vrrp.pid


This is the first time I've tried the sync_group so am I doing something 
wrong.  I tried copying from the user guide and other examples.

Gerry



<Prev in Thread] Current Thread [Next in Thread>