[Kea-users] kea-1.4.0 - HA, Stand-By Mode is not working [I have installed kea on VirtualBox]

saidarao saidaraoinnet at gmail.com
Thu Oct 11 16:24:52 UTC 2018


Hello Guys... Can someone help me out in bringup of the HA setup using
hot-standby mode. 
Wentu through the similar posts in recent past, but found to be not
concluded. So,
creating the new topic.

*Issue:* With the below configuration, both the primary and secondary
servers are up. But the syncing of the lease files is not happening between
primary and secondary.
HeartBeat Communcation is Failed with messages as below:
WARN  [kea-dhcp6.ha-hooks/32639] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed
to send heartbeat to server2 (http://168.127.39.46:8080/): Connection
refused
WARN  [kea-dhcp6.ha-hooks/17087] HA_HEARTBEAT_COMMUNICATIONS_FAILED failed
to send heartbeat to server1 (http://168.127.39.7:8080/): Connection refused

*Observation* 
[sdnuser at PRIMARY kea6]$ sudo netstat -lnptu6
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
PID/Program name    
                                 :
udp6       0      0 ff02::1:2:547           :::*                               
32639/kea-dhcp6     
udp6       0      0 fe80::a00:27ff:fec3:547 :::*                               
32639/kea-dhcp6     
                                 :
[sdnuser at PRIMARY kea6]$ sudo lsof -i :8080
COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
kea-ctrl- 32482 root    8u  IPv4 18686418      0t0  TCP localhost:webcache
(LISTEN)
[sdnuser at PRIMARY kea6]$

[sdnuser at SECONDARY dhcp_scripts]$ sudo netstat -lnptu6
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
PID/Program name    
                                  :
udp6       0      0 ff02::1:2:547           :::*                               
17087/kea-dhcp6     
udp6       0      0 fe80::a00:27ff:fe15:547 :::*                               
17087/kea-dhcp6     
[sdnuser at SECONDARY dhcp_scripts]$sudo lsof -i :8080
COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
kea-ctrl- 17096 root    8u  IPv4 14105993      0t0  TCP localhost:webcache
(LISTEN)
[sdnuser at SECONDARY dhcp_scripts]$ 

*Primary Configuration:*
{ "Dhcp6":
{
    "interfaces-config": {"interfaces": [ "enp0s8" ]},
    "control-socket": {
        "socket-type": "unix",
        "socket-name": "/tmp/kea-dhcp6-ctrl.sock"
    },
    "lease-database": {
        "type": "postgresql",
        "name": "postgres",
        "host": "",
        "port": 5432,
        "connect-timeout" : 6,
        "reconnect-wait-time" : 4,
        "lfc-interval": 30
    },

    "hooks-libraries": [
        {
            "library": "/usr/local/lib/hooks/libdhcp_lease_cmds.so",
            "parameters": { }
        },
        {
            "library": "/usr/local/lib/hooks/libdhcp_ha.so",
            "parameters": {
                "high-availability": [ {
                    "this-server-name": "server1",
                    "mode": "hot-standby",
                    "heartbeat-delay": 10000,
                    "max-response-delay": 10000,
                    "max-ack-delay": 5000,
                    "max-unacked-clients": 5,
                    "peers": [
                         {
                             "name": "server1",
                             "url": "http://168.127.39.7:8080/",
                             "role": "primary"
                         },
                         {
                             "name": "server2",
                             "url": "http://168.127.39.46:8080/",
                             "role": "standby"
                         }
                     ]
                 } ]
            }
        }
    ],

    "subnet6": [{
             "subnet": "2001:db8:1::/64",
             "pools": [{"pool": "2001:db8:1::111 - 2001:db8:1::249"}],
             "interface": "enp0s8"
    }]
},
"Logging": {
    "loggers": [
        {
            "name": "kea-dhcp6",
            "output_options": [{"output": "stdout"}],
            "debuglevel": 0,
            "severity": "INFO"
        },
        {
            "name": "kea-dhcp4.ha-hooks",
            "output_options": [{"output": "stdout"}],
            "severity": "INFO",
            "debuglevel": 99
        }
    ]
}
}

*Secondary Configuration:* Same as above, except "this-server-name"

*PS:*
1. I am trying to make bringup the setup on VMs using VirtualBox. Interfaces
are added in bridged mode.
2. Observed, clients are getting served from Primary and able to see lease
getting populated in postgres.

Thanks in advance for your inputs.




--
Sent from: http://kea-users.7364.n8.nabble.com/



More information about the Kea-users mailing list