I don’t have Windows Server too so I can hardly comment on that one. Dmitri moved on and he is no longer involved in Foreman. Anyone has a working Windows DHCP setup?
I wish there was an Ansible Playbook we could link from here, so many users struggle and our documentation is sparse on this topic. Thanks a bunch for sharing your experience!
I have the same issue as described above in foreman 1.23.1.
I have a domain controller on one site that still runs 2008.
Foreman proxy 1.23.1 is installed and works fine.
I have installed the same proxy version on a 2012R2 version with similar settings and no IP is returned to the foreman on request.
The logs of the proxy show a warning while manually suggesting for an IP upon host creation;
|Jan 29, 11:57:43 AM|WARN|The specified subnet 172.22.13.0 does not exist on the DHCP server|
But the subnet does exist on my DHCP Domain controller.
And the dhcp.yml contains the correct content;
On my old foreman 1.12.4 this works without issues while using an older proxy version 1.11 , I can’t figure out how to resolve it for the new proxy.
Is there a fix for this issue of some other things I can try ?
Kinda blocked right now to proceed further.
Also is there some workaround ?
Because when I set IPAM to “none” in the subnet that I need to create a machine in, and set boot mode to static instead of DHCP it still returns an error on creation of the machine;
Turns out I either didn’t start the smart-proxy previously as local Administrator like I used to with the old version.
I did add my own user to the DHCP administrators group now and it’s working both with and without elevated Administrator rights.
So for anyone having the same issue, please check under what user the smart-proxy runs and if this user is either a local admin on the DHCP controller or a user in the DHCP administrators group.