<div dir="auto">Hey Ismael,<div dir="auto"><br></div><div dir="auto">I saw a similar error message when I'd broken my ipv4 host reservations in the mysql hosts table. I had subnets with required client classes and when I broke the host reservation for a specific mac address (I had passed in a malformed user-context value) it spit out that same error since it didn't register the mac in question as having a valid reservation. Are you using client classes to gate your subnets? How are you defining reservations?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020, 5:08 PM Ismael Suarez <<a href="mailto:Ismael_Suarez@coqui.com">Ismael_Suarez@coqui.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Getting the following message:<br>
<br>
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)<br>
<br>
<br>
In the documentation I see it reads:<br>
<br>
<br>
<br>
ALLOC_ENGINE_V4_ALLOC_FAIL<br>
<br>
%1: failed to allocate an IPv4 address after %2 attempt(s)<br>
<br>
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.<br>
<br>
<br>
But the leases DB (MySQL) is empty. How can I force kea to reload / reset leases to start fresh?<br>
<br>
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?<br>
<br>
<br>
Thanks again everyone!<br>
<br>
<br>
<br>
--<br>
<br>
Ism<br>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank" rel="noreferrer">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>