Bug #2036
closederror when trying to overlay a second domain in an existing subnet
Description
I have an existing domain named tuc.noao.edu which is working fine in several subnets. I'm attempting to add a new domain named sdm.noao.edu into one subnet. I am not using smart-proxy DNS management, all DNS setup is manual. In this particular case, I'm only using forward records on no reverse. The name of the foreman/smart-proxy/puppet host is ctrl.tuc.noao.edu. When ever I tried to create a host (bare metal or vm) in this new subnet, it fails with this error message "failed to detect boot server: DNS result has no information for ctrl.tuc.noao.edu". Changing the domain to tuc.noao.edu allows the creation to succeed even without DNS for the domain being configured. It feels like the error message being returned here is a little misleading.
This issue is present in 1.0.1 and the 1.1RC RPMs.
Started POST "/hosts" for 140.252.7.41 at Tue Dec 11 16:06:52 -0700 2012 Processing by HostsController#create as Parameters: {"capabilities"=>"build", "utf8"=>"✓", "host"=>{"sp_ip"=>"", "environment_id"=>"1", "sp_subnet_id"=>"", "domain_id"=>"6", "subnet_id"=>"2", "operatingsystem_id"=>"8", "medium_id"=>"1", "managed"=>"true", "name"=>"dtstest5", "puppetclass_ids"=>[""], "sp_mac"=>"", "build"=>"1", "is_owned_by"=>"1-Users", "compute_resource_id"=>"1", "hostgroup_id"=>"5", "disk"=>"", "comment"=>"", "puppet_proxy_id"=>"2", "mac"=>"52:54:00:b4:8b:bb", "sp_name"=>"", "enabled"=>"1", "architecture_id"=>"2", "provision_method"=>"build", "root_pass"=>"[FILTERED]", "overwrite"=>"false", "progress_report_id"=>"[FILTERED]", "ptable_id"=>"13", "ip"=>"140.252.26.2"}, "authenticity_token"=>"ZUk3Gjz6EahefngtHwRzdw8axydWVTn0P8WkWCh4fx8="} failed to detect boot server: DNS result has no information for ctrl.tuc.noao.edu Create DHCP reservation for dtstest5.sdm.noao.edu-52:54:00:b4:8b:bb/140.252.26.2 Add the TFTP configuration for dtstest5.sdm.noao.edu Fetching required TFTP boot files for dtstest5.sdm.noao.edu Rolling back due to a problem: Delete the TFTP configuration for dtstest5.sdm.noao.edu Delete DHCP reservation for dtstest5.sdm.noao.edu-52:54:00:b4:8b:bb/140.252.26.2 Failed to save: failed to detect boot server: DNS result has no information for ctrl.tuc.noao.edu Rendered hosts/_progress.erb (0.2ms) Rendered puppetclasses/_selectedClasses.html.erb (0.0ms) Rendered puppetclasses/_classes.html.erb (1044.9ms) Rendered puppetclasses/_class_selection.html.erb (1056.8ms) Rendered hosts/_compute.html.erb (0.8ms) Rendered common/_domain.html.erb (14.9ms) Rendered hosts/_sp_subnet.html.erb (2.6ms) Rendered common/os_selection/_architecture.html.erb (4.4ms) Rendered common/os_selection/_operatingsystem.html.erb (148.9ms) Rendered hosts/_operating_system.erb (161.1ms) Rendered hosts/_unattended.html.erb (190.4ms) Rendered puppetclasses/_class_parameters.html.erb (0.0ms) Rendered puppetclasses/_classes_parameters.html.erb (10.9ms) Rendered common_parameters/_inherited_parameters.erb (0.2ms) Rendered common_parameters/_puppetclass_parameter.erb (3.7ms) Rendered common_parameters/_puppetclasses_parameters.erb (5.9ms) Rendered common_parameters/_parameter.erb (2.1ms) Rendered common_parameters/_parameters.erb (4.6ms) Rendered hosts/_form.html.erb (1569.3ms) Read fragment views/tabs_and_title_records-1 (0.4ms) Rendered home/_topbar.rhtml (2.3ms) Rendered hosts/new.html.erb within layouts/application (1578.2ms) Completed 200 OK in 2768ms (Views: 1566.1ms | ActiveRecord: 22.3ms)
D, [2012-12-11T16:06:52.901320 #21607] DEBUG -- : Added dtstest5.sdm.noao.edu (140.252.26.2 / 52:54:00:b4:8b:bb) to 140.252.26.0/255.255.255.0 D, [2012-12-11T16:06:52.903409 #21607] DEBUG -- : omshell: executed - set name = "dtstest5.sdm.noao.edu" D, [2012-12-11T16:06:52.903647 #21607] DEBUG -- : true D, [2012-12-11T16:06:52.903881 #21607] DEBUG -- : omshell: executed - set ip-address = 140.252.26.2 D, [2012-12-11T16:06:52.904076 #21607] DEBUG -- : true D, [2012-12-11T16:06:52.904280 #21607] DEBUG -- : omshell: executed - set hardware-address = 52:54:00:b4:8b:bb D, [2012-12-11T16:06:52.904420 #21607] DEBUG -- : true D, [2012-12-11T16:06:52.904590 #21607] DEBUG -- : omshell: executed - set hardware-type = 1 D, [2012-12-11T16:06:52.904711 #21607] DEBUG -- : true W, [2012-12-11T16:06:52.905525 #21607] WARN -- : Failed to resolve IP address for false D, [2012-12-11T16:06:52.905706 #21607] DEBUG -- : omshell: executed - set statements = "filename = \"pxelinux.0\"; next-server = \"false\"; option host-name = \"dtstest5.sdm.noao.edu\";" D, [2012-12-11T16:06:52.905858 #21607] DEBUG -- : true D, [2012-12-11T16:06:52.906081 #21607] DEBUG -- : omshell: executed - create D, [2012-12-11T16:06:52.906212 #21607] DEBUG -- : true I, [2012-12-11T16:06:52.973705 #21607] INFO -- : Added DHCP reservation for dtstest5.sdm.noao.edu (140.252.26.2 / 52:54:00:b4:8b:bb) I, [2012-12-11T16:06:53.017283 #21607] INFO -- : TFTP: entry for 52:54:00:b4:8b:bb created successfully D, [2012-12-11T16:06:53.050885 #21607] DEBUG -- : Starting task (total: 0): wget --timeout=10 --tries=3 --no-check-certificate -nv -c http://centos.tuc.noao.edu/centos/5.8/os/i386//images/pxeboot/initrd.img -O "/var/lib/tftpboot/boot/Centos-5.8-i386-initrd.img" D, [2012-12-11T16:06:53.073428 #21607] DEBUG -- : Starting task (total: 0): wget --timeout=10 --tries=3 --no-check-certificate -nv -c http://centos.tuc.noao.edu/centos/5.8/os/i386//images/pxeboot/vmlinuz -O "/var/lib/tftpboot/boot/Centos-5.8-i386-vmlinuz" D, [2012-12-11T16:06:53.310839 #21607] DEBUG -- : TFTP: entry for 52:54:00:b4:8b:bb removed successfully D, [2012-12-11T16:06:53.337091 #21607] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf ... D, [2012-12-11T16:06:53.413924 #21607] DEBUG -- : Lazy loaded 140.252.26.0/255.255.255.0 records D, [2012-12-11T16:06:53.416927 #21607] DEBUG -- : omshell: executed - set hardware-address = 52:54:00:b4:8b:bb D, [2012-12-11T16:06:53.417234 #21607] DEBUG -- : true D, [2012-12-11T16:06:53.417413 #21607] DEBUG -- : omshell: executed - open D, [2012-12-11T16:06:53.417509 #21607] DEBUG -- : true D, [2012-12-11T16:06:53.417656 #21607] DEBUG -- : omshell: executed - remove D, [2012-12-11T16:06:53.417775 #21607] DEBUG -- : true I, [2012-12-11T16:06:53.485224 #21607] INFO -- : Removed DHCP reservation for dtstest5.sdm.noao.edu => dtstest5.sdm.noao.edu (140.252.26.2 / 52:54:00:b4:8b:bb)