Syntax Error when configuring High Availability
I am attempting to configure high availability on 2 kea instances. Here are the machine specs:
PVE OS: Ubuntu 22.04 LTS Kea version: 2.0.2
Error encountered: root@dhcp0001:/etc/kea# kea-dhcp4 -t /etc/kea/kea-dhcp4.conf Syntax check failed with: /etc/kea/kea-dhcp4.conf:11.5-16: got unexpected keyword "parameters" in Dhcp4 map.
configuration file contents:
{
"Dhcp4": {
"hooks-libraries": [
{
"library": "/usr/lib/x86_64-linux-gnu/kea/hooks/libdhcp_lease_cmds.so"
},
{
"library": "/usr/local/lib/kea/hooks/libdhcp_ha.so"
}
],
"parameters": {
"high-availability": [
{
"this-server-name": "kea-dhcp02",
"mode": "hot-standby",
"heartbeat-delay": 10000,
"max-response-delay": 60000,
"max-ack-delay": 5000,
"max-unacked-clients": 5,
"sync-timeout": 60000,
"peers": [
{
"name": "dhcp0001",
"url": "http://10.5.1.107:8000/",
"role": "primary",
"auto-failover": true
},
{
"name": "dhcp0002",
"url": "http://10.2.1.121:8000/",
"role": "standby",
"auto-failover": true
},
{
"name": "kea-dhcp03",
"url": "http://172.16.1.12:8000/",
"basic-auth-user": "kea",
"basic-auth-password": "kea123",
"role": "backup",
"auto-failover": false
}
]
},
{
"interfaces-config": {
"interfaces": [
"ens18"
]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/run/kea/kea4-ctrl-socket"
},
"lease-database": {
"type": "memfile",
"lfc-interval": 3600
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"renew-timer": 900,
"rebind-timer": 1800,
"valid-lifetime": 3600,
"max-valid-lifetime": 7200,
"GLOBAL RESERVATIONS": {
"host-reservation-identifiers": [
"hw-address"
],
"reservations-global": true,
"reservations-in-subnet": false,
"reservations-out-of-pool": false,
"reservations": [],
"END GLOBAL RESERVATIONS": "subnet4",
"id": 1,
"subnet": "192.168.72.0/24",
"pools": [
{
"pool": "192.168.72.150 - 192.168.72.200"
}
],
"option-data": [
{
"name": "routers",
"data": "192.168.72.1"
},
{
"name": "domain-name-servers",
"data": "8.8.8.8, 1.1.1.1"
},
{
"name": "domain-name",
"data": "protek.net"
}
]
},
"id": 2,
"subnet": "172.31.1.0/25",
"pools": [
{
"pool": "172.31.1.50 - 172.31.1.100"
}
],
"option-data": [
]
}
],
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "/var/log/kea-dhcp4.log",
"pattern": "%-5p %m\n",
"maxsize": 1048576,
"maxver": 8
}
],
"severity": "INFO",
"debuglevel": 50
}
]
}
}
}
I have been banging my head against the wall debugging for days, and finally have the formatting correct, only to encounter unexpected keyword errors now. I have dug through the Dhcp4 parse log for the proper keyword, but honestly can't make heads or tails of what's being required here. Can someone give me a hand with this, please?