Foreman DHCP Smart Proxy

Problem:** Provisioning new server, produces error:

failed to detect boot server: ERF50-9294 [Foreman::WrappedException]: Unable to find IP address for ‘ubuntu-foreman-smartproxy.domain.com’ ([NoMethodError]: undefined method `resolver’ for nil:NilClass)

Expected outcome:

Build Process Begins

Foreman and Proxy versions:

|foreman-tasks|0.13.2|
|foreman_ansible|2.2.6|
|foreman_discovery|13.0.1|
|foreman_hooks|0.3.14|
|foreman_remote_execution|1.5.5|

Other relevant data:

GET REQUEST shows up in log files on Smart Proxy.

, [2018-09-14T22:56:44.176282 f00f5801] INFO – : 192.168.50.100 - - [14/Sep/2018:22:56:44 +1000] “GET /dhcp/192.168.56.0/mac/a0:36:9f:27:ad:b8 HTTP/1.1” 200 282 0.0000

I, [2018-09-14T22:56:44.285678 f00f5801] INFO – : 192.168.50.100 - - [14/Sep/2018:22:56:44 +1000] “GET /dhcp/192.168.56.0/ip/192.168.56.22 HTTP/1.1” 200 284 0.0000

I hope this helps others with this issue;

This issue was caused due to the host group not having any networks specified. Once i specified the networks within the host group, this issue went away and provisioning occurred as expected.

https://projects.theforeman.org/projects/foreman/wiki/ERF50-9294