Having issues getting foreman fully communicating to a Windows 2008 R2
foreman-proxy. I can add the Smart Proxy on the foreman server and I see
the DNS and DHCP features. After that I start to have issues.
Before diving in, seems like the MS DHCP documentation is out of date.
RubyForge.org no longer exists and seems to be the only site hosting "Ruby
1.8.7 release 334". The link to rubyinstaller.org/downloads points to
rubyforge.org for release 334. Because of that, I am trying to use Ruby
1.8.7-p374 which might be the start of my problems.
Continuing with Ruby and Windows issues. My server doesn't have internet
access so I used the Wget method from the documentation which should have
the correct version of the gems. Is the --platform argument required? I
had issues with --platform, i went to the directory with the gems and
simply ran gem install * . Should mingw64 be used for W2K8 R2 since it is
only x64?
After adding the the smart proxy to foreman I can import a subnet, it has
the Network Address and Network mask but other information is missing. The
Scope options are explicitly set for this subnet, they're not global or
coming from a superscope. Is this normal?
When trying to create a new host that utilizes the DHCP server I get the
following error:
Create DHCP Settings for tsg05t.dev.local task failed with the following
error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry
([RestClient::BadRequest]: 400 Bad Request) for proxy
https://test1.dev.local:8443/dhcp
On the Windows server(test1.dev.local) the proxy was able to setup the DHCP
reservation with the correct settings. There are some error in the
proxy.log.
10.99.0.189 - - [22/Jul/2014 16:25:49] "GET /dhcp HTTP/1.1" 200 101 0.2184
puppet.dev.local - - [22/Jul/2014:16:25:49 Central Daylight Time] "GET
/dhcp HTTP/1.1" 200 101
- -> /dhcp
10.99.0.189 - - [22/Jul/2014 16:26:26] "GET /dhcp HTTP/1.1" 200 101 0.1872
puppet.dev.local - - [22/Jul/2014:16:26:26 Central Daylight Time] "GET
/dhcp HTTP/1.1" 200 101 - -> /dhcp
10.99.0.189 - - [22/Jul/2014 16:31:48] "GET /dhcp HTTP/1.1" 200 101 0.1872
puppet.dev.local - - [22/Jul/2014:16:31:48 Central Daylight Time] "GET
/dhcp HTTP/1.1" 200 101 - -> /dhcp
10.99.0.189 - - [22/Jul/2014 16:44:16] "GET
/dhcp/10.99.1.0/unused_ip?mac=0050560101a5&from=10.99.1.51&to=10.99.1.99
HTTP/1.1" 200 19 1.7316
puppet.dev.local - - [22/Jul/2014:16:44:14 Central Daylight Time] "GET
/dhcp/10.99.1.0/unused_ip?mac=0050560101a5&from=10.99.1.51&to=10.99.1.99
HTTP/1.1" 200 19 - ->
/dhcp/10.99.1.0/unused_ip?mac=0050560101a5&from=10.99.1.51&to=10.99.1.99
E, [2014-07-22T16:45:23.009895 #2220] ERROR – : Record
10.99.1.0/00:50:56:01:01:a5 not found
10.99.0.189 - - [22/Jul/2014 16:45:23] "GET
/dhcp/10.99.1.0/00:50:56:01:01:a5 HTTP/1.1" 404 44 0.3588
puppet.dev.local - - [22/Jul/2014:16:45:22 Central Daylight Time] "GET
/dhcp/10.99.1.0/00:50:56:01:01:a5 HTTP/1.1" 404 44 - -> /dhcp/10.99.1.0/00:50:56:01:01:a5
E, [2014-07-22T16:45:23.493495 #2220] ERROR – : Record
10.99.1.0/10.99.1.51 not found
10.99.0.189 - - [22/Jul/2014 16:45:23] "GET /dhcp/10.99.1.0/10.99.1.51
HTTP/1.1" 404 37 0.3432
puppet.dev.local - - [22/Jul/2014:16:45:23 Central Daylight Time] "GET
/dhcp/10.99.1.0/10.99.1.51 HTTP/1.1" 404 37 - -> /dhcp/10.99.1.0/10.99.1.51
E, [2014-07-22T16:45:25.115898 #2220] ERROR – : Netsh failed:
Changed the current scope context to 10.99.1.0 scope.
The specified option does not exist.
E, [2014-07-22T16:45:25.115898 #2220] ERROR – : Unknown error while
processing ''
10.99.0.189 - - [22/Jul/2014 16:45:25] "POST /dhcp/10.99.1.0 HTTP/1.1" 400
33 1.0296
puppet.dev.local - - [22/Jul/2014:16:45:23 Central Daylight Time] "POST
/dhcp/10.99.1.0 HTTP/1.1" 400 33
- -> /dhcp/10.99.1.0
How can I determine what the non existent option is? Do I need to change
anything else in my config to get this working?