Project

General

Profile

ERF12-6899 » History » Version 6

Dominic Cleal, 08/11/2016 04:20 AM
#13575 is fixed

1 4 Dominic Cleal
h1. ERF12-6899 - Unable to set DHCP entry
2 1 Dominic Cleal
3 1 Dominic Cleal
h2. Generic or SSL connection errors
4 1 Dominic Cleal
5 1 Dominic Cleal
Please see [[Proxy_communication_errors]] first for SSL or communication errors, which aren't specific to this particular proxy action.
6 1 Dominic Cleal
7 2 Dominic Cleal
h2. Foreman 1.5.1: Removing a Proxy::DHCP Record which doesn't exist
8 2 Dominic Cleal
9 2 Dominic Cleal
Seen on Foreman 1.5.1, this is bug #6412.
10 2 Dominic Cleal
11 2 Dominic Cleal
<pre>
12 2 Dominic Cleal
E, [2014-06-20T15:14:54.521280 #1384] ERROR -- : Removing a Proxy::DHCP Record which doesn't exist
13 2 Dominic Cleal
D, [2014-06-20T15:14:54.521353 #1384] DEBUG -- : /usr/share/foreman-proxy/bin/../lib/proxy/dhcp/subnet.rb:184:in `delete'
14 2 Dominic Cleal
/usr/share/foreman-proxy/bin/../lib/proxy/dhcp/server/isc.rb:64:in `loadSubnetData'
15 2 Dominic Cleal
</pre>
16 2 Dominic Cleal
17 2 Dominic Cleal
Note that stack trace contains @loadSubnetData@ on line 64.
18 2 Dominic Cleal
19 5 Dominic Cleal
Workaround: @service dhcpd restart@
20 5 Dominic Cleal
21 3 Dominic Cleal
h2. [RestClient::RequestTimeout]: Request Timeout
22 3 Dominic Cleal
23 3 Dominic Cleal
If the DHCP reservation isn't added, see [[Proxy_communication_errors]].
24 3 Dominic Cleal
25 3 Dominic Cleal
If it is added, the proxy is taking too long to add it, so Foreman is timing out.  If you have many subnets configured but only need to manage a few, try setting dhcp_subnets in the proxy configuration to restrict those it loads (available from Foreman 1.5.1):
26 3 Dominic Cleal
27 3 Dominic Cleal
<pre>
28 3 Dominic Cleal
:dhcp_subnets: [192.168.205.0/255.255.255.128, 192.168.205.128/255.255.255.128]
29 3 Dominic Cleal
</pre>
30 3 Dominic Cleal
31 3 Dominic Cleal
Issue #5847 tracks this problem.
32 3 Dominic Cleal
33 1 Dominic Cleal
h2. Using AD DHCP and Windows 2008
34 1 Dominic Cleal
35 1 Dominic Cleal
Seen on Windows 2008 R2.  In proxy.log, it logs:
36 1 Dominic Cleal
37 1 Dominic Cleal
<pre>
38 1 Dominic Cleal
I, [2014-05-30T09:06:23.096367 #2620]  INFO -- : Vendor class not found
39 1 Dominic Cleal
E, [2014-05-30T09:06:23.096367 #2620] ERROR -- : Netsh failed:
40 1 Dominic Cleal
41 1 Dominic Cleal
Changed the current scope context to 172.28.4.0 scope.
42 1 Dominic Cleal
43 1 Dominic Cleal
The specified option does not exist.
44 1 Dominic Cleal
</pre>
45 1 Dominic Cleal
46 6 Dominic Cleal
This is bug #13575, which has been fixed in version 1.12.1.  On older versions, to workaround it, remove the option 60 added here: https://github.com/theforeman/smart-proxy/commit/296617a