Hi,
I am trying to create a host via the foreman UI. But i am getting the
following error:
Reverse DNS record for test2.domain.local task failed with the
following error 400 Bad request
- /tmp/proxy.log shows
E, [2011-12-09T15:23:23.433289 #7477] ERROR – : Address family not
supported by protocol - connect(2)
D, [2011-12-09T15:23:23.433547 #7477] DEBUG – : /usr/lib/ruby/1.8/
resolv-replace.rb:32:in original_resolv_connect' /usr/lib/ruby/1.8/resolv-replace.rb:32:in
connect'
/usr/lib/ruby/1.8/resolv.rb:724:in initialize' /usr/lib/ruby/1.8/resolv.rb:508:in
new'
/usr/lib/ruby/1.8/resolv.rb:508:in make_requester' /usr/lib/ruby/1.8/resolv.rb:478:in
each_resource'
/usr/lib/ruby/1.8/resolv.rb:431:in each_name' /usr/lib/ruby/1.8/resolv.rb:397:in
getname'
/usr/share/foreman-proxy/bin/…/lib/proxy/dns/bind.rb:92:in dns_find' /usr/share/foreman-proxy/bin/../lib/proxy/dns/bind.rb:30:in
create'
/usr/share/foreman-proxy/bin/…/lib/dns_api.rb:14:in POST /dns/' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in
route' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
instance_eval'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in
route_eval' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in
route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
catch' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in
route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in
each' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in
route!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in
dispatch!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
call!'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
instance_eval' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
catch' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in
invoke'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in
call!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in
call'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:
24:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb: 24:in
call'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in
call' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
call'
/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in
synchronize' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in
call'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:
13:in call' /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb: 48:in
service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in
run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:162:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in each' /usr/lib/ruby/1.8/webrick/server.rb:92:in
start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in start' /usr/lib/ruby/1.8/webrick/server.rb:82:in
start'
/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:
14:in run' /usr/share/foreman-proxy/bin/../lib/sinatra-patch.rb:32:in
run!'
/usr/share/foreman-proxy/bin/smart-proxy:102
- production.log shows
Processing HostsController#create (for 192.168.122.1 at 2011-12-09
15:25:46) [POST]
Parameters: {"commit"=>"Submit", "action"=>"create",
"authenticity_token"=>"FlPQ1ceE17GU9q7GbTBMBFWoEcRx1tItLpPs5nqjE+k=",
"controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
"subnet_id"=>"1", "managed"=>"true", "puppetproxy_id"=>"",
"name"=>"test2", "sp_mac"=>"", "puppetmaster_name"=>"puppet",
"sp_name"=>"", "mac"=>"00:16:3e:3f:07:9d", "domain_id"=>"1",
"enabled"=>"1", "root_pass"=>"[FILTERED]", "build"=>"1",
"medium_id"=>"1", "hostgroup_id"=>"1", "ptable_id"=>"1",
"sp_subnet_id"=>"", "ip"=>"192.168.122.41", "environment_id"=>"1",
"model_id"=>"", "disk"=>"", "sp_ip"=>"", "puppetclass_ids"=>[""],
"operatingsystem_id"=>"1"}}
Add DNS PTR record for test2.domain.local/192.168.122.41
Reverse DNS record for test2.domain.local task failed with the
following error: 400 Bad Request
Rolling back due to a problem: Reverse DNS record for
test2.domain.local 3 failed test2.domain.localset_dns_ptr_record
Failed to save: Reverse DNS record for test2.domain.local task failed
with the following error: 400 Bad Request
Rendering template within layouts/application
Rendering hosts/new
Completed in 260ms (View: 57, DB: 80) | 200 OK [http://192.168.122.21/
hosts]
- I can update hosts via nsupdate manually from the command line and
it works fine.
> server foreman.domain.local
> key foreman "long key"
> zone domain.local
> update add test.domain.local. 600 IN A 192.168.122.40
> send
> zone 122.168.192.in-addr.arpa
> update add 40.122.168.192.in-addr.arpa 600 IN PTR domain.domain.local.
> send
Could someone let me know if anything is missing ?
Regards,
Kevin