Hi,
I've the following message when I'm trying to add a new host in
foreman :
Unable to save
failed to detect boot server: undefined method `dns_lookup' for
nil:NilClass
Failed to perform rollback on DHCP Settings for temp.test.net -
undefined method `destroy' for nil:NilClass
In the foreman log :
Processing HostsController#create (for 10.0.0.1 at 2012-01-11
14:04:37) [POST]
Parameters: {"commit"=>"Submit", "action"=>"create",
"authenticity_token"=>"WYXkhLsQDui7BdOIW4SZTRnYPkwT58QxABsbstJ5+TY=",
"controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
"subnet_id"=>"4", "managed"=>"true", "puppetproxy_id"=>"",
"name"=>"temp", "sp_mac"=>"", "puppetmaster_name"=>"puppet",
"sp_name"=>"", "mac"=>"52:54:00:08:f0:31", "domain_id"=>"4",
"enabled"=>"1", "root_pass"=>"[FILTERED]", "build"=>"1",
"medium_id"=>"6", "hostgroup_id"=>"1", "ptable_id"=>"2",
"sp_subnet_id"=>"", "ip"=>"10.0.0.3", "environment_id"=>"1",
"model_id"=>"", "disk"=>"", "sp_ip"=>"", "puppetclass_ids"=>[""],
"operatingsystem_id"=>"1"}}
failed to detect boot server: undefined method dns_lookup' for nil:NilClass Create DHCP reservation for temp.test.net-52:54:00:08:f0:31/10.0.0.3 Add the TFTP configuration for temp.test.net Fetching required TFTP boot files for temp.test.net Rolling back due to a problem: Delete the TFTP configuration for temp.test.net Failed to perform rollback on DHCP Settings for temp.test.net - undefined method
destroy' for nil:NilClass
Failed to save: failed to detect boot server: undefined method
dns_lookup' for nil:NilClass, Failed to perform rollback on DHCP Settings for temp.test.net - undefined method
destroy' for
nil:NilClass
Rendering template within layouts/application
Rendering hosts/new
Completed in 329ms (View: 196, DB: 8) | 200 OK [http://
foreman.test.net/hosts]
I also tried to patch foreman with Bug #1420: bootserver ip lookup fails if not managing dns - Foreman,
but same message again.
I've this features in the foreman proxy :
- dhcp
- tftp
All components are installed in the same host, foreman 0.4.1-1