I feel like I must be missing something obvious here, but I can’t seem to see it.
I’m attempting to get the discovery plugin to work on CentOS 7.4 using Foreman 1.17 and discovery plugin 11.0. I’ve gone through the docs and installed the plugin, added the discovery image, and configured the default template all as described in the docs. However, when my hosts try to PXE boot, they fail to get an IP address, just as I would expect if unknown hosts attempted to boot w/o host entries in Foreman having been created for them.
In my server logs, I of course repeatedly see lines like the following:
May 10 20:17:19 foreman dhcpd: DHCPDISCOVER from $my_MAC via eth0: network $my_network: no free leases
What I was expecting is for the hosts to get an address and PXE boot the discover image without needing to be individually added to Foreman beforehand. I’m assuming there is some trivial configuration change to Foreman for it to reconfigure the DHCP server I’m missing here, but I’ve not been able to find it in the docs so I figured I’d try here. Note that manual provisioning works perfectly; if I individually create a host entry in Foreman and provide the MAC address, the host gets an IP on its next attempt and provisioning works from there exactly as expected.
Thanks in advance for any assistance.