Hello
Whenever I try to provision a host with foerman I get the following error:
Unable to save
> Create DHCP Settings for test.foo.net task failed with the following
> error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry
> ([RestClient::BadRequest]: 400 Bad Request) for proxy
> http://dns.foo.net:8443/dhcp
on my smart-proxy (dhcp, dns, tftp) I get this:
D, [2014-05-18T09:09:24.731197 #1769] DEBUG – : Reading config file
> /etc/dhcp/dhcpd.conf
> D, [2014-05-18T09:09:24.731762 #1769] DEBUG – : Loading subnets for
> 127.0.0.1
> D, [2014-05-18T09:09:24.731849 #1769] DEBUG – : Added
> 10.1.1.0/255.255.255.0 to 127.0.0.1
> D, [2014-05-18T09:09:24.732223 #1769] DEBUG – : Loading subnet data for
> 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.739682 #1769] DEBUG – : Added 10.1.1.133 /
> bc:5f:f4:b8:fd:66 to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.740112 #1769] DEBUG – : Added 10.1.1.107 /
> a4:ee:57:13:20:fb to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.740352 #1769] DEBUG – : Added 10.1.1.102 /
> a6:b1:e9:af:08:4e to 10.1.1.0/255.255.255.0
> W, [2014-05-18T09:09:24.740541 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.740735 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.740929 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.741132 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> I, [2014-05-18T09:09:24.741170 #1769] INFO – : Enumerated hosts on
> 10.1.1.0
> D, [2014-05-18T09:09:24.741186 #1769] DEBUG – : Lazy loaded
> 10.1.1.0/255.255.255.0 records
> E, [2014-05-18T09:09:24.741254 #1769] ERROR – : Record
> 10.1.1.0/cb:74:6c:9a:03:8f not found
> D, [2014-05-18T09:09:24.744713 #1769] DEBUG – : Reading config file
> /etc/dhcp/dhcpd.conf
> D, [2014-05-18T09:09:24.744869 #1769] DEBUG – : Loading subnets for
> 127.0.0.1
> D, [2014-05-18T09:09:24.744931 #1769] DEBUG – : Added
> 10.1.1.0/255.255.255.0 to 127.0.0.1
> D, [2014-05-18T09:09:24.745069 #1769] DEBUG – : Loading subnet data for
> 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.746827 #1769] DEBUG – : Added 10.1.1.133 /
> bc:5f:f4:b8:fd:66 to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.747028 #1769] DEBUG – : Added 10.1.1.107 /
> a4:ee:57:13:20:fb to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.747252 #1769] DEBUG – : Added 10.1.1.102 /
> a6:b1:e9:af:08:4e to 10.1.1.0/255.255.255.0
> W, [2014-05-18T09:09:24.747432 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.747596 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.747770 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.747936 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> I, [2014-05-18T09:09:24.747965 #1769] INFO – : Enumerated hosts on
> 10.1.1.0
> D, [2014-05-18T09:09:24.747989 #1769] DEBUG – : Lazy loaded
> 10.1.1.0/255.255.255.0 records
> E, [2014-05-18T09:09:24.748118 #1769] ERROR – : Record
> 10.1.1.0/10.1.1.198 not found
> D, [2014-05-18T09:09:24.770754 #1769] DEBUG – : Reading config file
> /etc/dhcp/dhcpd.conf
> D, [2014-05-18T09:09:24.770916 #1769] DEBUG – : Loading subnets for
> 127.0.0.1
> D, [2014-05-18T09:09:24.770963 #1769] DEBUG – : Added
> 10.1.1.0/255.255.255.0 to 127.0.0.1
> D, [2014-05-18T09:09:24.771126 #1769] DEBUG – : Loading subnet data for
> 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.772869 #1769] DEBUG – : Added 10.1.1.133 /
> bc:5f:f4:b8:fd:66 to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.773065 #1769] DEBUG – : Added 10.1.1.107 /
> a4:ee:57:13:20:fb to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.773262 #1769] DEBUG – : Added 10.1.1.102 /
> a6:b1:e9:af:08:4e to 10.1.1.0/255.255.255.0
> W, [2014-05-18T09:09:24.773425 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.773584 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.773742 #1769] WARN – : Record 10.1.1.133 /
> bc:5f:f4:b8:fd:66 already exists in 10.1.1.0/255.255.255.0 - can't add again
> W, [2014-05-18T09:09:24.773917 #1769] WARN – : Record 10.1.1.107 /
> a4:ee:57:13:20:fb already exists in 10.1.1.0/255.255.255.0 - can't add again
> I, [2014-05-18T09:09:24.773948 #1769] INFO – : Enumerated hosts on
> 10.1.1.0
> D, [2014-05-18T09:09:24.773963 #1769] DEBUG – : Lazy loaded
> 10.1.1.0/255.255.255.0 records
> D, [2014-05-18T09:09:24.774009 #1769] DEBUG – : Added test.foo.net
> (10.1.1.198 / cb:74:6c:9a:03:8f) to 10.1.1.0/255.255.255.0
> D, [2014-05-18T09:09:24.774753 #1769] DEBUG – : omshell: executed - set
> name = "test.foo.net"
> D, [2014-05-18T09:09:24.774783 #1769] DEBUG – : true
> D, [2014-05-18T09:09:24.774817 #1769] DEBUG – : omshell: executed - set
> ip-address = 10.1.1.198
> D, [2014-05-18T09:09:24.774831 #1769] DEBUG – : true
> D, [2014-05-18T09:09:24.774871 #1769] DEBUG – : omshell: executed - set
> hardware-address = cb:74:6c:9a:03:8f
> D, [2014-05-18T09:09:24.774883 #1769] DEBUG – : true
> D, [2014-05-18T09:09:24.774898 #1769] DEBUG – : omshell: executed - set
> hardware-type = 1
> D, [2014-05-18T09:09:24.774909 #1769] DEBUG – : true
> D, [2014-05-18T09:09:24.774992 #1769] DEBUG – : omshell: executed - set
> statements = "filename = "pxelinux.0"; next-server = 0a:01:01:0b; option
> host-name = "test.foo.net";"
> D, [2014-05-18T09:09:24.775010 #1769] DEBUG – : true
> D, [2014-05-18T09:09:24.775035 #1769] DEBUG – : omshell: executed - create
> D, [2014-05-18T09:09:24.775056 #1769] DEBUG – : true
> E, [2014-05-18T09:09:24.777451 #1769] ERROR – : Omshell failed:
> > > dhcpctl_connect: no more
> , > not connected.
> , > no open object.
> , > no open object.
> , > no open object.
> , > no open object.
> , > no open object.
> , > not connected.
> , >
> E, [2014-05-18T09:09:24.777637 #1769] ERROR – : Failed to add DHCP
> reservation for test.foo.net (10.1.1.198 / cb:74:6c:9a:03:8f): No response
> from DHCP server
> D, [2014-05-18T09:09:24.777668 #1769] DEBUG – :
> /usr/share/foreman-proxy/lib/proxy/dhcp/server/isc.rb:180:in `report'
Dhcp and smart-proxy settings:
Dhcp:
> ddns-update-style interim;
> ignore client-updates;
> authoritative;
> allow booting;
> allow bootp;
> omapi-port 7911;
> option domain-name "foo.net";
> option domain-name-servers ns.foo.net, 8.8.4.4;
> default-lease-time 600;
> max-lease-time 7200;
> authoritative;
> log-facility local7;
> subnet 10.1.1.0 netmask 255.255.255.0 {
> range 10.1.1.100 10.1.1.200;
> option routers 10.1.1.1;
> option domain-name-servers 10.1.1.11, 8.8.4.4;
> option domain-name "foo.net";
> }
SmartProxy:
:daemon: true