[Kea-users] ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR and ALLOC_ENGINE_V6_ALLOC_UNRESERVED

Veronique.Lefebure at cern.ch Veronique.Lefebure at cern.ch
Wed Jun 22 12:06:36 UTC 2022


Hi, Yes, of course memfile is supported by KEA (we are using it), but is is supported by kea-admin with the lease-dump command ?


> On 22/06/2022 13:43 perl-list <perl-list at network1.net> wrote:
> 
>  
> memfile is supported
> 
> "lease-database": {
>             "type": "memfile",
>             "persist": true,
>             "name": "/var/state/kea/dhcp6.leases"
>         },
> 
> Kea should periodically launch kea-lfc to cleanup the lease file in the case of memfile.  I'm not sure about other lease storage methods as I've not used them.
> 
> ----- Original Message -----
> > From: "Veronique Lefebure" <Veronique.Lefebure at cern.ch>
> > To: "kea-users" <kea-users at lists.isc.org>
> > Sent: Wednesday, June 22, 2022 4:36:21 AM
> > Subject: Re: [Kea-users] ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR and ALLOC_ENGINE_V6_ALLOC_UNRESERVED
> 
> > Replying to myself:
> 
> > The problem has been solved by deleting the lease files which was containing
> > stale lease information from previous tests.
> 
> > Is there a tool that an admin can use to remove stale entries from a lease file
> > ?
> 
> > By the way, I have tries to use kea-admin to have a look at the leases but it
> > exists with:
> 
> > kea-admin lease-dump memfile
> > ERROR/kea-admin: lease-dump is not supported for memfile
> 
> > While the help says:
> 
> > Usage: /usr/sbin/kea-admin COMMAND BACKEND [parameters]
> 
> > COMMAND: Currently supported operations are:
> > - db-init: Initializes new database. Useful for first time installation.
> > - db-version: Checks version of the existing database schema. Useful
> > - for checking database version when preparing for an upgrade.
> > - db-upgrade: Upgrades your database schema.
> > - lease-dump: Dumps current leases to a memfile-ready CSV file.
> > - lease-upload: Uploads leases from a CSV file to the database.
> > - stats-recount: Recounts lease statistics.
> 
> > BACKEND - one of the supported backends: memfile|mysql|pgsql
> 
> > Is "memfile" really supported ?
> 
> > Thanks,
> > Veronique
> 
> >> On 21/06/2022 16:59 Veronique Lefebure <veronique.lefebure at cern.ch> wrote:
> 
> >> Hi,
> >> Out test client is failing to get an IPv6 IP.
> >> Enabling debug logs, we see messages from the server that seem contradictory:
> 
> >> 2022-06-21 16:43:50.948 DEBUG [kea-dhcp6.alloc-engine/13499.139838611867840]
> >> ALLOC_ENGINE_V6_ALLOC_NO_LEASES_HR no leases found but reservations exist for
> >> client duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx], tid=0x93e611
> >> 2022-06-21 16:43:50.948 DEBUG [kea-dhcp6.alloc-engine/13499.139838611867840]
> >> ALLOC_ENGINE_V6_ALLOC_UNRESERVED no static reservations available - trying to
> >> dynamically allocate leases for client
> >> duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx], tid=0x93e611
> 
> >> where xx:xx:xx:xx:xx:xx is the client mac address.
> >> How can that happen ?
> 
> >> Kea has correctly identified the subnet where the client reservation is defined:
> >> 2022-06-21 16:43:50.947 DEBUG [kea-dhcp6.packets/13499.139838611867840]
> >> DHCP6_SUBNET_SELECTED duid=[00:01:00:01:2a:44:7a:5c:xx:xx:xx:xx:xx:xx],
> >> tid=0x93e611: the subnet with ID 2156789248 was selected for client assignments
> 
> >> Thanks for helping.
> >> Veronique
> >> --
> >> 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
> >> Kea-users at lists.isc.org
> >> https://lists.isc.org/mailman/listinfo/kea-users
> 
> > --
> > 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
> > Kea-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/kea-users


More information about the Kea-users mailing list