pool-id is incorrectly assinged in load-balancing configuration
When 2 Kea servers are in load balancing configuration and in contact, then most of the leases in the second pool are assigned the wrong pool-id.
In ready and maintenance mode, the problem exists. In partner down state, pool-id is assigned correctly.
I didn't see the problem in standby mode.
In this configuration, all adreses from ::0
to ::30
should have pool-id=0
, and all from ::100
to ::130
should have pool-id=1
Subnet:
"subnet6": [
{
"subnet": "2001:db8:1::/64",
"pools": [
{
"pool": "2001:db8:1::1-2001:db8:1::30",
"client-class": "HA_server1"
},
{
"pool": "2001:db8:1::100-2001:db8:1::130",
"client-class": "HA_server2"
}
],
"interface": "enp0s9"
}
]
Example lease:
server1:
{'cltt': 1685374590, 'duid': '00:03:00:01:01:03:0d:04:0b:01', 'fqdn-fwd': False, 'fqdn-rev': False, 'hostname': '', 'hw-address': '01:03:0d:04:0b:01', 'iaid': 3973, 'ip-address': '2001:db8:1::101', 'pool-id': 0, 'preferred-lft': 3000, 'state': 0, 'subnet-id': 1, 'type': 'IA_NA', 'valid-lft': 4000}
server2:
{'cltt': 1685374590, 'duid': '00:03:00:01:01:03:0d:04:0b:01', 'fqdn-fwd': False, 'fqdn-rev': False, 'hostname': '', 'hw-address': '01:03:0d:04:0b:01', 'iaid': 3973, 'ip-address': '2001:db8:1::101', 'pool-id': 1, 'preferred-lft': 3000, 'state': 0, 'subnet-id': 1, 'type': 'IA_NA', 'valid-lft': 4000}