[Kea-users] ALLOC_ENGINE_V4_ALLOC_FAIL

Ismael Suarez Ismael_Suarez at coqui.com
Fri Jul 3 21:08:28 UTC 2020


Getting the following message:

2020-07-03 16:58:22.354 WARN  [kea-dhcp4.alloc-engine/3131] ALLOC_ENGINE_V4_ALLOC_FAIL [hwtype=1 aa:bb:cc:dd:ee:ff], cid=[aa:bb:cc:dd:ee:ff], tid=0xa5d749bc: failed to allocate an IPv4 address after 0 attempt(s)


In the documentation I see it reads:



ALLOC_ENGINE_V4_ALLOC_FAIL

%1: failed to allocate an IPv4 address after %2 attempt(s)

The DHCP allocation engine gave up trying to allocate an IPv4 address after the specified number of attempts. This probably means that the address pool from which the allocation is being attempted is either empty, or very nearly empty. As a result, the client will have been refused a lease. The first argument includes the client identification information. This message may indicate that your address pool is too small for the number of clients you are trying to service and should be expanded. Alternatively, if the you know that the number of concurrently active clients is less than the addresses you have available, you may want to consider reducing the lease lifetime. In this way, addresses allocated to clients that are no longer active on the network will become available sooner.


But the leases DB (MySQL) is empty. How can I force kea to reload / reset leases to start fresh?

It was working all good, until I added a few more subnets for further testing, then moved a client to another network/subnet and started seeing the message. Maybe the subnet_id's got mixed or something down that line?


Thanks again everyone!



--

Ism


More information about the Kea-users mailing list