[Kea-users] Kea-dhcp6 always warns with ALLOC_ENGINE_V6_ALLOC_FAIL_SUBNET when allocating reserved address

Andrew Rowson andrew at growse.com
Thu Jan 4 17:09:24 UTC 2024


Hi,

I'm using isc-kea-dhcp6 (2.4.1-isc20231123184533) on Debian bookworm and am having a minor logging issue. I've got a minimal config that defines a single subnet, an allocatable pool within that subnet and a single reservation. 

The host gets its reserved IP successfully, but there's always a WARN log dance in the kea logs with ALLOC_ENGINE_V6_ALLOC_FAIL_SUBNET, ALLOC_ENGINE_V6_ALLOC_FAIL_NO_POOLS and ALLOC_ENGINE_V6_ALLOC_FAIL_CLASSES.

Are these warnings expected, or have I misunderstood something about the configuration?

Thanks,
Andrew

Config:

    {
        "Dhcp6": {
            "interfaces-config": {
                "interfaces": [
                    "enp1s0.2",
                ]
            },
            "lease-database": {
                "lfc-interval": 1800,
                "name": "/var/lib/kea/kea-leases6.csv",
                "type": "memfile"
            },
            "subnet6": [
                {
                    "interface": "enp1s0.2",
                    "reservation-mode": "out-of-pool",
                    "pools": [
                        {
                            "pool": "2001:123:456:e8b0:beef:f00f::/112"
                        }
                    ],
                    "reservations-global": false,
                    "reservations-in-subnet": true,
                    "eservations-out-of-pool": true,
                    "subnet": "2001:123:456:e8b0::/64",
                    "reservations": [
                        {
                            "duid": "00:03:00:01:b8:27:eb:bf:db:dd",
                            "hostname": "myhost",
                            "ip-addresses": [
                                "2001:123:456:e8b0::f"
                            ]
                        }
                    ]
                }
            ],
            "valid-lifetime": 1800
        }
    }

Logs: 

    INFO [kea-dhcp6.dhcp6/182198.139733472774592] DHCP6_STARTED Kea DHCPv6 server version 2.4.1 started
    INFO  [kea-dhcp6.leases/182198.139733433005760] DHCP6_LEASE_ADVERT duid=[00:03:00:01:b8:27:eb:bf:db:dd], tid=0x3e9640: lease for address 2001:123:456:e8b0::f and iaid=1746070577 will be advertised
    WARN  [kea-dhcp6.alloc-engine/182198.139733433005760] ALLOC_ENGINE_V6_ALLOC_FAIL_SUBNET duid=[00:03:00:01:b8:27:eb:bf:db:dd], tid=0x3e9640: failed to allocate an IPv6 lease in the subnet 2001:123:456:e8b0::/64, subnet-id 1, shared network (none)
    WARN  [kea-dhcp6.alloc-engine/182198.139733433005760] ALLOC_ENGINE_V6_ALLOC_FAIL_NO_POOLS duid=[00:03:00:01:b8:27:eb:bf:db:dd], tid=0x3e9640: no pools were available for the lease allocation
    WARN  [kea-dhcp6.alloc-engine/182198.139733433005760] ALLOC_ENGINE_V6_ALLOC_FAIL_CLASSES duid=[00:03:00:01:b8:27:eb:bf:db:dd], tid=0x3e9640: Failed to allocate an IPv6 address for client with classes: ALL, KNOWN
    INFO  [kea-dhcp6.leases/182198.139733424613056] DHCP6_LEASE_ALLOC duid=[00:03:00:01:b8:27:eb:bf:db:dd], tid=0x137d91: lease for address 2001:123:456:e8b0::f and iaid=1746070577 has been allocated for 1800 seconds


More information about the Kea-users mailing list