I have a rather odd question about the HA setup. I have two Kea nodes (.221
and .222) in hot-standby setup, with Stork running on .223. 

 

Each Kea node has the hooks-library entry as follows (note the :8001 port
being used)

 

    "hooks-libraries": [{

       "library":
"/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"

       },{

       "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_stat_cmds.so"

       },{

       "library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_ha.so",

       "parameters": {

          "high-availability": [{

             "this-server-name": "dhcp-kea-node1",

             "mode": "hot-standby",

             "heartbeat-delay": 10000,

             "max-response-delay": 60000,

             "max-ack-delay": 5000,

             "max-unacked-clients": 5,

             "peers": [{

                "name": "dhcp-kea-node1",

                "url": http://192.168.150.221:8001/,

                "role": "primary",

                "auto-failover": true

             }, {

                "name": "dhcp-kea-node2",

                "url": http://192.168.150.222:8001/,

                "role": "standby",

                "auto-failover": true

             }]

          }]

       }

    }],

 

and the matching control agent config is as follows (again, note the
parching :8001 port number)

 

{

    "Control-agent":

    {

        // We need to specify where the agent should listen to incoming HTTP
queries.

        "http-host": "192.168.150.221",

 

        // This specifies the port CA will listen on.

        "http-port": 8001,

 

        "control-sockets":

        {

            // Location of the DHCPv4 command channel socket.

            "dhcp4":

            {

                "comment": "socket to DHCP4 server",

                "socket-type": "unix",

                "socket-name": "/tmp/kea4-ctrl-socket"

            },

 

            // Location of the DHCPv6 command channel socket.

            "dhcp6":

            {

                "socket-type": "unix",

                "socket-name": "/tmp/kea6-ctrl-socket"

            }

        },

 

        "loggers": [

            {

                "name": "kea-ctrl-agent",

                "output_options": [

                    {

                        "output": "/var/log/kea-ctrl-agent.log",

 

                        "flush": true,

                        "maxsize": 204800,

                        "maxver": 4,

                        "pattern": "%d{%y.%m.%d %H:%M:%S.%q} %-5p [%c/%i]
%m\n"

                    }

                ],

                "severity": "INFO",

                "debuglevel": 0 

            }

        ]

    }

}

 

I keep on getting the following warning (?) in Strok through for .222 and
.221 nodes alike, that confuses me. As far as I can understand, it complains
that I am using a dedicated port :8001, and then tells me that "You need to
set the peer's HTTP '8001' port to the dedicated listener's port.", which is
what I am doing already. 

 



Can someone please tell me what I am doing wrong here (I did follow the
configuration instructions) and how to fix this issue? It has been driving
me insane for a while now . 

 

Marek

 

 

 

 

-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to