Hi Diogo, A couple of questions: * do all of your expired leases have state 0 or do some have state 2? * have you observed this behavior in dhcp4?
My understanding is that once the lease is reclaimed (sometime after cltt+valid-lifetime+reclaim-timer-wait-time) but before cltt+valid-lifetime+hold-reclaimed-time, these should be in state 2. After that last time period, they should be deleted. Thank you, Darren Ankney On Wed, Jan 21, 2026 at 3:57 AM Diogo André de Assumpção via Kea-users <[email protected]> wrote: > > Hi all, > > I'm trying to understand these results from the lease6-get command. > Particularly, why the "state" is "0" (assigned) if the cltt + valid-lft is > well in the past? Any relation to the LFC process? > > My logs show a couple of "ALLOC_ENGINE_V6_LEASES_RECLAMATION_SLOW" events, > but all before the cltt in the example bellow. > > > root@dhcp-server:~# echo '{ "command": "lease6-get", "arguments": { > "ip-address": "2001:db8:1234:5678::1" } }' | socat > UNIX:/run/kea/kea6-ctrl-socket -,ignoreeof | jq . > { > "arguments": { > "cltt": 1768575433, > "duid": "00:03:00:01:aa:bb:cc:dd:ee:ff", > "fqdn-fwd": false, > "fqdn-rev": false, > "hostname": "", > "hw-address": "aa:bb:cc:dd:ee:ff", > "iaid": 0, > "ip-address": "2001:db8:1234:5678::1", > "preferred-lft": 28800, > "state": 0, > "subnet-id": 123456789, > "type": "IA_NA", > "user-context": { > "ISC": { > "relay-info": [ > { > "hop": 0, > "link": "2001:db8:1234:5678::3", > "options": > "0x0035001F00020000XXXX00000000000000000000000000000000000000000000004F0008000100000000000000", > "peer": "fe80::1111:2222:3333:4444", > "relay-id": > "00020000XXXX00000000000000000000000000000000000000000000" > } > ] > } > }, > "valid-lft": 43200 > }, > "result": 0, > "text": "IPv6 lease found." > } The timers and reclaim numbers are: > "expired-leases-processing": { > "reclaim-timer-wait-time": 3600, > "hold-reclaimed-time": 172800, > "max-reclaim-leases": 500, > "max-reclaim-time": 250, > "unwarned-reclaim-cycles": 10 > }, > "valid-lifetime": 43200, > "preferred-lifetime": 28800, > "renew-timer": 14400, > "rebind-timer": 23040, > "cache-threshold": .30, > > Any info is appreciated. > > Thanks, > Diogo > > > -- > 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. > [email protected] -- 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. [email protected]
