Foreman DHCP cant assign IP address to new host

Hi

I have installed foreman 1.11 on centos 7 and its working but cant assigned
IP address to newly created Hosts.

I have attached debug logs.

Foreman production.log log are mentioned below
2016-05-25 20:20:26 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-05-25 20:20:26 [app] [I] Rendered home/_topbar.html.erb (24.1ms)
2016-05-25 20:20:26 [app] [I] Rendered layouts/base.html.erb (28.4ms)
2016-05-25 20:20:26 [app] [D] Setting current location thread-local
variable to none
2016-05-25 20:20:26 [app] [D] Setting current organization thread-local
variable to none
2016-05-25 20:20:26 [app] [I] Completed 404 Not Found in 99ms (Views:
36.3ms | ActiveRecord: 2.9ms)
2016-05-25 20:20:26 [app] [I] Started POST "/subnets/freeip" for
192.168.0.27 at 2016-05-25 20:20:26 +0100
2016-05-25 20:20:26 [app] [I] Processing by SubnetsController#freeip as JSON
2016-05-25 20:20:26 [app] [I] Parameters: {"subnet_id"=>"1",
"host_mac"=>"", "taken_ips"=>["", ""]}
2016-05-25 20:20:26 [app] [D] Setting current user thread-local variable to
admin
2016-05-25 20:20:26 [app] [D] Setting current organization thread-local
variable to none
2016-05-25 20:20:26 [app] [D] Setting current location thread-local
variable to none
2016-05-25 20:20:26 [app] [I] Rendered common/404.html.erb within
layouts/application (1.2ms)
2016-05-25 20:20:26 [app] [I] Rendered
layouts/_application_content.html.erb (0.3ms)
2016-05-25 20:20:26 [app] [I] Rendered home/_user_dropdown.html.erb
(1.4ms)
2016-05-25 20:20:26 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-05-25 20:20:26 [app] [I] Rendered home/_topbar.html.erb (2.5ms)
2016-05-25 20:20:26 [app] [I] Rendered layouts/base.html.erb (4.0ms)

Foreman-proxy logs

I, [2016-05-25T20:18:09.831103 #1541] INFO – : WEBrick::HTTPServer#start
done.
I, [2016-05-25T20:18:40.696877 #857] INFO – : Finished initialization of
module 'pulp'
I, [2016-05-25T20:18:40.699880 #857] INFO – : Finished initialization of
module 'pulpnode'
I, [2016-05-25T20:18:40.700002 #857] INFO – : 'foreman_proxy' settings
were initialized with default values: :enabled: true
I, [2016-05-25T20:18:40.701356 #857] INFO – : Finished initialization of
module 'foreman_proxy'
I, [2016-05-25T20:18:40.702462 #857] INFO – : Finished initialization of
module 'tftp'
I, [2016-05-25T20:18:40.756973 #857] INFO – : Finished initialization of
module 'dhcp_isc'
I, [2016-05-25T20:18:40.757155 #857] INFO – : 'dhcp' settings were
initialized with default values: :server: 127.0.0.1
I, [2016-05-25T20:18:40.767087 #857] INFO – : Finished initialization of
module 'dhcp'

DHCP status
root@foreman foreman-proxy]# systemctl status dhcpd
● dhcpd.service - DHCPv4 Server Daemon
Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; enabled; vendor
preset: disabled)
Active: active (running) since Wed 2016-05-25 20:48:22 BST; 52min ago
Docs: man:dhcpd(8)
man:dhcpd.conf(5)
Main PID: 4266 (dhcpd)
Status: "Dispatching packets…"
CGroup: /system.slice/dhcpd.service
└─4266 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd
-group dhcpd --no-pid

I am getting below error

Error generating IP: not found

Please help me.

Type
Interface BMC Bond Bridge
MAC address
Device identifier
DNS name
Domain
progression.com
Subnet
192168-Built (192.168.0.0/24)
192168-Built (192.168.0.0/24)
IP address
Suggest new <https://foreman.progression.com/hosts/new#>
Error generating IP: Not Found
Managed

Primary

Provision

Virtual NIC

There's no smart proxy log entry when this happens (the last one is
20:18) so I'd check over the Foreman configuration. Particularly ensure
that a DHCP Proxy is set on the Proxies tab of your "192168-Built"
subnet under Infrastructure > Subnets.

http://projects.theforeman.org/projects/foreman/wiki/Troubleshooting#No-DHCP-reservations-are-created-for-new-hosts
may also help as it's a similar list of requirements for the IP
generator to work (obviously requirements like having an IP aren't
relevant).

··· On 25/05/16 21:47, sanjay kumar chahar wrote: > Hi > > I have installed foreman 1.11 on centos 7 and its working but cant > assigned IP address to newly created Hosts. > > I have attached debug logs. > > *Foreman production.log log are mentioned below* > 2016-05-25 20:20:26 [app] [I] Read fragment > views/tabs_and_title_records-3 (0.2ms) > 2016-05-25 20:20:26 [app] [I] Rendered home/_topbar.html.erb (24.1ms) > 2016-05-25 20:20:26 [app] [I] Rendered layouts/base.html.erb (28.4ms) > 2016-05-25 20:20:26 [app] [D] Setting current location thread-local > variable to none > 2016-05-25 20:20:26 [app] [D] Setting current organization thread-local > variable to none > 2016-05-25 20:20:26 [app] [I] Completed 404 Not Found in 99ms (Views: > 36.3ms | ActiveRecord: 2.9ms) > 2016-05-25 20:20:26 [app] [I] Started POST "/subnets/freeip" for > 192.168.0.27 at 2016-05-25 20:20:26 +0100 > 2016-05-25 20:20:26 [app] [I] Processing by SubnetsController#freeip as JSON > 2016-05-25 20:20:26 [app] [I] Parameters: {"subnet_id"=>"1", > "host_mac"=>"", "taken_ips"=>["", ""]} > 2016-05-25 20:20:26 [app] [D] Setting current user thread-local variable > to admin > 2016-05-25 20:20:26 [app] [D] Setting current organization thread-local > variable to none > 2016-05-25 20:20:26 [app] [D] Setting current location thread-local > variable to none > 2016-05-25 20:20:26 [app] [I] Rendered common/404.html.erb within > layouts/application (1.2ms)


Dominic Cleal
dominic@cleal.org