<br><br>On Friday, 5 August 2016, Klaus Steden <<a href="mailto:klausfiend@gmail.com">klausfiend@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>I've had issues with reservations with previous builds; I think the initial stable release supported reservations with a MySQL backend, but the last build from Git that I used with the same configuration did not. FWIW it's supposed to be ironed out with the 1.0.1 release, which is due to drop any day now. I did test using reservations baked into the configuration file with the aforementioned Git build, and that did work, but that of course won't scale with application code, so I couldn't use that setup.</div></div></blockquote><div><br></div><div>Hmm.. Okay. No scaling issues here since this is, for now, just for home use. Perhaps I'll try the development version and see how that does. </div><div><br></div><div>Thanks! (And hi Klaus! Long time!)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Also, hi Matt! :-)</div><div><br></div><div>cheers,</div><div>Klaus</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 12:40 PM, Matthew Pounsett <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','matt@conundrum.com');" target="_blank">matt@conundrum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I have what I think is a fairly straightforward config, but I'm having issues with it. From the default kea.conf that ships with FreeBSD ports I have made the following changes:<br></div><div>1) listen on all interfaces</div><div>2) add global dns servers options</div><div>3) added two subnets:</div><div><div> 3a) an RFC1918 /24</div><div> - subnet specific option for a router</div><div> - one pool of 10.0.5.100 to 10.0.5.254</div><div> - several out-of-pool reservations (none in-pool)</div></div><div> 3b) a routed /28</div><div> - subnet specific option for a router</div><div> - no pools</div><div> - several reservations</div><div><br></div><div><br></div><div>3b works fine. Neither the pool nor the reservations in 3a seem to be working. For any of those, kea seems to be giving up before even attempting to make an assignment:</div><div><div>2016-08-05 15:04:31.959 WARN [kea-dhcp4.alloc-engine/1223] ALLOC_ENGINE_V4_ALLOC_FAIL [hwtype=1 0c:c4:7a:b9:24:91], cid=[01:0c:c4:7a:b9:24:91], tid=0xfc7cd269: failed to allocate an IPv4 address after 0 attempt(s)</div></div></div><div><br></div><div><div>The server running Kea has addresses on its interface in both subnets.</div></div><div><br></div><div>I have triple-checked that the subnet 'name', pool, and reservations are all out of the same /24</div><div><br></div><div>When I turn on debugging, it looks like kea is ignoring the available pool in 3a, and is trying to assign addresses out of 3b instead:</div><div><br></div><div><div>2016-08-05 15:37:21.718 DEBUG [kea-dhcp4.packets/2108] DHCP4_SUBNET_SELECTED [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: the subnet with ID 2 was selected for client assignments</div><div>2016-08-05 15:37:21.718 DEBUG [kea-dhcp4.packets/2108] DHCP4_SUBNET_DATA [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: the selected subnet details: <a href="http://216.235.10.32/28" target="_blank">216.235.10.32/28</a></div><div>2016-08-05 15:37:21.718 DEBUG [kea-dhcp4.packets/2108] DHCP4_PACKET_RECEIVED [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: DHCPDISCOVER (type 1) received from 0.0.0.0 to 255.255.255.255 on interface em0</div><div>2016-08-05 15:37:21.718 DEBUG [kea-dhcp4.packets/2108] DHCP4_QUERY_DATA [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3, packet details: local_address=<a href="http://255.255.255.255:67" target="_blank">255.255.255.255:<wbr>67</a>, remote_adress=<a href="http://0.0.0.0:68" target="_blank">0.0.0.0:68</a>, msg_type=DHCPDISCOVER (1), transid=0xae5b3aa3,</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.packets/2108] DHCP4_SUBNET_SELECTED [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: the subnet with ID 2 was selected for client assignments</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.packets/2108] DHCP4_SUBNET_DATA [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: the selected subnet details: <a href="http://216.235.10.32/28" target="_blank">216.235.10.32/28</a></div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.hosts/2108] HOSTS_CFG_GET_ONE_SUBNET_ID_HW<wbr>ADDR_DUID get one host with IPv4 reservation for subnet id 2, HWADDR hwtype=1 08:00:27:2c:73:00, DUID 70:6f:75:64:72:69:65:72:65</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.hosts/2108] HOSTS_CFG_GET_ALL_HWADDR_DUID get all hosts with reservations for HWADDR hwtype=1 08:00:27:2c:73:00 and DUID 70:6f:75:64:72:69:65:72:65</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.hosts/2108] HOSTS_CFG_GET_ALL_IDENTIFIER get all hosts with reservations using identifier: hwaddr=08:00:27:2c:73:00</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.hosts/2108] HOSTS_CFG_GET_ALL_IDENTIFIER_C<wbr>OUNT using identifier hwaddr=08:00:27:2c:73:00, found 0 host(s)</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.hosts/2108] HOSTS_CFG_GET_ONE_SUBNET_ID_HW<wbr>ADDR_DUID_NULL host not found using subnet id 2, HW address hwtype=1 08:00:27:2c:73:00 and DUID 70:6f:75:64:72:69:65:72:65</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.ddns/2108] DHCP4_CLIENT_HOSTNAME_PROCESS [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: processing client's Hostname option</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.ddns/2108] DHCP4_CLIENT_HOSTNAME_DATA [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: client sent Hostname option: poudriere</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.dhcpsrv/2108] DHCPSRV_MEMFILE_GET_SUBID_HWAD<wbr>DR obtaining IPv4 lease for subnet ID 2 and hardware address hwtype=1 08:00:27:2c:73:00</div><div>2016-08-05 15:37:21.719 DEBUG [kea-dhcp4.alloc-engine/2108] ALLOC_ENGINE_V4_OFFER_NEW_LEAS<wbr>E allocation engine will try to offer new lease to the client [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3</div><div>2016-08-05 15:37:21.719 WARN [kea-dhcp4.alloc-engine/2108] ALLOC_ENGINE_V4_ALLOC_FAIL [hwtype=1 08:00:27:2c:73:00], cid=[70:6f:75:64:72:69:65:72:6<wbr>5], tid=0xae5b3aa3: failed to allocate an IPv4 address after 0 attempt(s)</div></div><div><br></div><div>Any suggestions on how to approach troubleshooting this?</div><div><br></div><div><div>% kea-dhcp4 -V</div><div>1.0.0</div><div>tarball</div><div>linked with:</div><div>log4plus 1.1.2</div><div>OpenSSL 0.9.8zh-freebsd 3 Dec 2015</div><div>database:</div><div>PostgreSQL backend 2.0, library 90313</div><div>Memfile backend 2.0</div><div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
Kea-users mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','Kea-users@lists.isc.org');" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/kea-users</a><br>
<br></blockquote></div><br></div>
</blockquote>