[Kea-users] Migration Questions

Darren Ankney darren.ankney at gmail.com
Sat Oct 21 18:09:40 UTC 2023


Hi,

> Does the Kea Lease Migration support ISC DHCP Failover Lease Files?

The only difference between a non-failover lease file and failover
lease file in ISC DHCP, AFAIK, was that there were some extra entries
about peers and status.  I don't think there was anything in the
actual leases themselves, so I imagine the answer would be yes.

>
> I might have overlooked this in the document for the Lease Migration.  Would it be possible to upload the output of the Kea Lease Migration to MySQL Database Backend when Kea is configured to store Leases in a database rather than memfile?  Or is the output intended to be used in the memfile?

I don't think the migration assistant itself is capable of that, but
the kea-admin tool can transport leases between memfile csv format and
database (postgres or mysql):
https://kea.readthedocs.io/en/kea-2.4.0/arm/admin.html#the-kea-admin-tool

>
> Also, I used the Kea Lease Migration and the converted lease file shows all the leases just fine.  I followed the example to load the output csv file into Kea DHCP4 and when I test the configuration file everything shows to be fine.  However, when I go to start the Kea DHCP4 Service, I get the error "unable to open database: unable to open "filename" regardless if the csv file is in the /etc/kea directory or the /var/lib/kea/ directory.
>
> Here is the lease database configuration snippet with the lease file in the /etc/kea directory -
>
>     "sanity-checks": {
>         "lease-checks": "fix-del"
>     },
>     "lease-database": {
>         // Memfile is the simplest and easiest backend to use. It's an in-memory
>         // C++ database that stores its state in CSV file.
>         "type": "memfile",
>         "persist": true,
>         "name": "/etc/kea/dhcpd-leases-kea.csv",
>         "lfc-interval": 3600
>     },


Perhaps there is a permission issue?  Depending how you installed, Kea
may be running as an unprivileged user (such as _kea) who may not have
access to the .csv file to read on startup.

Thank you,

Darren Ankney


More information about the Kea-users mailing list