"Error generating IP: Not Found " - When creating new host

Hi All,

There is some issue I can't find solution for, once trying to create new
host it gives me an error:

<https://lh3.googleusercontent.com/-1KnhX2H5WJM/VZOpsEjr01I/AAAAAAAAeW8/9S2Zs7Hdy00/s1600/Capture.GIF>

*These are the logs: *
Started POST "/hosts/domain_selected" for 10.2.152.30 at 2015-07-01
11:43:43 +0300

2015-07-01 11:43:43 [I] Processing by HostsController#domain_selected as
JSON

2015-07-01 11:43:43 [I] Parameters: {"domain_id"=>"1", "interface"=>"true"}

2015-07-01 11:43:43 [I] Completed 200 OK in 23ms (Views: 9.2ms |
ActiveRecord: 2.8ms)

2015-07-01 11:43:45 [I]

Started POST "/subnets/freeip" for 10.2.152.30 at 2015-07-01 11:43:45 +0300

2015-07-01 11:43:45 [I] Processing by SubnetsController#freeip as JSON

2015-07-01 11:43:45 [I] Parameters: {"subnet_id"=>"3", "host_mac"=>"",
"taken_ips"=>["", ""]}

2015-07-01 11:43:45 [I] Rendered common/404.html.erb within
layouts/application (1.7ms)

2015-07-01 11:43:45 [I] Rendered home/_user_dropdown.html.erb (2.1ms)

2015-07-01 11:43:45 [I] Read fragment views/tabs_and_title_records-3
(0.2ms)

2015-07-01 11:43:45 [I] Rendered home/_topbar.html.erb (3.7ms)

2015-07-01 11:43:45 [I] Rendered layouts/base.html.erb (6.4ms)

2015-07-01 11:43:45 [I] Completed 404 Not Found in 20ms (Views: 10.8ms |
ActiveRecord: 1.4ms)

Please assist as I'm tring to fix it for a long time without any luck.

*Thanks, Eddie Mashayev *

Hi,

I have met this error before, it&#39;s due to the DHCP is not well 

configured, Please Check your DHCP setup, may it is the question.

Good Luck!

Xudong

在 2015年7月1日星期三 UTC+8下午4:52:58,Eddie Mashayev写道:

··· > > Hi All, > > There is some issue I can't find solution for, once trying to create new > host it gives me an error: > > > > > > > *These are the logs: * > Started POST "/hosts/domain_selected" for 10.2.152.30 at 2015-07-01 > 11:43:43 +0300 > > 2015-07-01 11:43:43 [I] Processing by HostsController#domain_selected as > JSON > > 2015-07-01 11:43:43 [I] Parameters: {"domain_id"=>"1", > "interface"=>"true"} > > 2015-07-01 11:43:43 [I] Completed 200 OK in 23ms (Views: 9.2ms | > ActiveRecord: 2.8ms) > > 2015-07-01 11:43:45 [I] > > > Started POST "/subnets/freeip" for 10.2.152.30 at 2015-07-01 11:43:45 > +0300 > > 2015-07-01 11:43:45 [I] Processing by SubnetsController#freeip as JSON > > 2015-07-01 11:43:45 [I] Parameters: {"subnet_id"=>"3", "host_mac"=>"", > "taken_ips"=>["", ""]} > > 2015-07-01 11:43:45 [I] Rendered common/404.html.erb within > layouts/application (1.7ms) > > 2015-07-01 11:43:45 [I] Rendered home/_user_dropdown.html.erb (2.1ms) > > 2015-07-01 11:43:45 [I] Read fragment views/tabs_and_title_records-3 > (0.2ms) > > 2015-07-01 11:43:45 [I] Rendered home/_topbar.html.erb (3.7ms) > > 2015-07-01 11:43:45 [I] Rendered layouts/base.html.erb (6.4ms) > > 2015-07-01 11:43:45 [I] Completed 404 Not Found in 20ms (Views: 10.8ms | > ActiveRecord: 1.4ms) > > > > *Please assist as I'm tring to fix it for a long time without any luck.* > > > > *Thanks, Eddie Mashayev * > > > >

Hi,

The thing is that DHCP work perfectly on my VLAN, it gives FHCP IPs to new
servers and etc…
Can you send me more info how DHCP should be configured property?

Thanks,
EddieM

··· On Thursday, July 2, 2015 at 11:02:44 AM UTC+3, Xudong Li wrote: > > Hi, > > I have met this error before, it's due to the DHCP is not well > configured, Please Check your DHCP setup, may it is the question. > > Good Luck! > > Xudong > > 在 2015年7月1日星期三 UTC+8下午4:52:58,Eddie Mashayev写道: >> >> Hi All, >> >> There is some issue I can't find solution for, once trying to create new >> host it gives me an error: >> >> >> >> >> >> >> *These are the logs: * >> Started POST "/hosts/domain_selected" for 10.2.152.30 at 2015-07-01 >> 11:43:43 +0300 >> >> 2015-07-01 11:43:43 [I] Processing by HostsController#domain_selected as >> JSON >> >> 2015-07-01 11:43:43 [I] Parameters: {"domain_id"=>"1", >> "interface"=>"true"} >> >> 2015-07-01 11:43:43 [I] Completed 200 OK in 23ms (Views: 9.2ms | >> ActiveRecord: 2.8ms) >> >> 2015-07-01 11:43:45 [I] >> >> >> Started POST "/subnets/freeip" for 10.2.152.30 at 2015-07-01 11:43:45 >> +0300 >> >> 2015-07-01 11:43:45 [I] Processing by SubnetsController#freeip as JSON >> >> 2015-07-01 11:43:45 [I] Parameters: {"subnet_id"=>"3", "host_mac"=>"", >> "taken_ips"=>["", ""]} >> >> 2015-07-01 11:43:45 [I] Rendered common/404.html.erb within >> layouts/application (1.7ms) >> >> 2015-07-01 11:43:45 [I] Rendered home/_user_dropdown.html.erb (2.1ms) >> >> 2015-07-01 11:43:45 [I] Read fragment views/tabs_and_title_records-3 >> (0.2ms) >> >> 2015-07-01 11:43:45 [I] Rendered home/_topbar.html.erb (3.7ms) >> >> 2015-07-01 11:43:45 [I] Rendered layouts/base.html.erb (6.4ms) >> >> 2015-07-01 11:43:45 [I] Completed 404 Not Found in 20ms (Views: 10.8ms | >> ActiveRecord: 1.4ms) >> >> >> >> *Please assist as I'm tring to fix it for a long time without any luck.* >> >> >> >> *Thanks, Eddie Mashayev * >> >> >> >>

Can the foreman user read /etc/dhcpd.conf and the leases file?

Joop

··· On 2-7-2015 10:27, Eddie Mashayev wrote: > Hi, > > The thing is that DHCP work perfectly on my VLAN, it gives FHCP IPs to > new servers and etc.. > Can you send me more info how DHCP should be configured property?

Hi,

My Foreman server doesn’t managing DHCP, I have separate Windows server
that does it.
This is what I have on my Foreman server:

[root@foreman ~]# ls -ld /etc/dhcp/dhclient.d/
drwxr-xr-x. 2 root root 4096 Jan 26 21:16 /etc/dhcp/dhclient.d
[root@foreman ~]# ll -ld /var/lib/dhclient/dhclient-eth0.leases
-rw-r–r--. 1 root root 1034 May 25 16:08
/var/lib/dhclient/dhclient-eth0.leases

Thanks,

EddieM

··· On Thursday, July 2, 2015 at 12:15:53 PM UTC+3, jvandewege wrote: > > On 2-7-2015 10:27, Eddie Mashayev wrote: > > Hi, > > > > The thing is that DHCP work perfectly on my VLAN, it gives FHCP IPs to > > new servers and etc.. > > Can you send me more info how DHCP should be configured property? > Can the foreman user read /etc/dhcpd.conf and the leases file? > > Joop > >