Evening,
I'v been going at this all day without getting any closer to a resolution.
According to the
Wiki: Solaris Unattended installation - Foreman
the definition of the media must be:
Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release
Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release
Config Path: server:/jumpstart
Image Path: server:/Solaris/images
this however breaks down if I use a hostname instead of an IP:
<https://lh5.googleusercontent.com/-DUxznAL9T2s/UHcVsXA4p5I/AAAAAAAAAcQ/TqG9qiPgs5g/s1600/Screen+Shot+2012-10-11+at+2.52.40+PM.png>
notice that I've used every possible combination I could think of with and
without nfs:// with and without the server name. All this however works if
instead of hostnames I use the IP.
but for some reason Foreman is unable to resolve the IP back to its name
and it fails the provisioning of the host:
<https://lh3.googleusercontent.com/-gw7ZIhRTQ7o/UHcWjLaf3UI/AAAAAAAAAcg/12OJD8lLEtY/s1600/Screen+Shot+2012-10-11+at+2.56.47+PM.png>
even though the IP resolves back to its FQDN without issues in the foreman
servers. I have tried tracing the code that makes the call and I've got
nowhere in app/models/domain.rb I can see that the call to nameservers is
being made but the call to lookup never gets made. I've put logger
statements in app/models/solaris.rb but I don't see the calls to those
either.
this is an extract of the logfile
Started POST "/hosts" for 10.25.241.229 at 2012-10-11 14:38:36 -0400
Processing by HostsController#create as
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"j5RISU3kZpvHmDGH+Vwar3OVZQ7UAPy/FaytXCpgN/c=",
"host"=>{"name"=>"solar", "compute_resource_id"=>"", "hostgroup_id"=>"1",
"environment_id"=>"1", "puppet_proxy_id"=>"6", "puppetclass_ids"=>[""],
"managed"=>"true", "progress_report_id"=>"[FILTERED]",
"mac"=>"00:03:ba:7e:90:11", "domain_id"=>"4", "subnet_id"=>"9",
"ip"=>"10.253.35.35", "sp_name"=>"", "sp_ip"=>"", "sp_mac"=>"",
"sp_subnet_id"=>"", "architecture_id"=>"2", "operatingsystem_id"=>"6",
"provision_method"=>"build", "build"=>"1", "medium_id"=>"8",
"ptable_id"=>"6", "use_image"=>"0", "disk"=>"", "root_pass"=>"[FILTERED]",
"enabled"=>"1", "model_id"=>"5", "comment"=>"", "overwrite"=>"false"}}
Setting current user thread-local variable to admin
Scheduling new DHCP reservations
NS are [FILTERED"] <- from app/models/domain.rb nameservers method
Create DHCP Settings for solar.ula.comcast.net task failed with the
following error: DNS result has no information for 10.253.35.29
Rolling back due to a problem: [Create DHCP Settings for solar.test.net 10
failed [#<Host id: nil, name: "solar.test.net", ip: "10.253.35.35",
environment: nil, last_compile: nil, last_freshcheck: nil, last_report:
nil, updated_at: nil, source_file_id: nil, created_at: nil, mac:
"00:03:ba:7e:90:11", sp_mac: "", sp_ip: "", sp_name: "", root_pass: nil,
serial: nil, puppet_status: 0, domain_id: 4, architecture_id: 2,
operatingsystem_id: 6, environment_id: 1, subnet_id: 9, sp_subnet_id: nil,
ptable_id: 6, medium_id: 8, build: true, comment: "", disk: "",
installed_at: nil, model_id: 5, hostgroup_id: 1, owner_id: 1, owner_type:
"User", enabled: true, puppet_ca_proxy_id: nil, managed: true, use_image:
false, image_file: nil, uuid: nil, compute_resource_id: nil,
puppet_proxy_id: 6, certname: nil, image_id: nil>, :set_dhcp]]
Failed to save: Create DHCP Settings for solar.test.net task failed with
the following error: DNS result has no information for 10.253.35.29
Rendered hosts/_progress.erb (0.5ms)
If anyone can point me in the right direction I would appreciate it. I
would really like to use FQDNs instead of IPs and if I am forced to use IPs
I'de like to know why foreman can't resolve them back to their FQDN
Telmo