Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 605443

Summary: pre_install_network_config does not place nameservers in network line
Product: Red Hat Satellite 5 Reporter: Charlie Wyse <cwyse>
Component: APIAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: cperry, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-11 22:08:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
nameservers patch none

Description Charlie Wyse 2010-06-17 23:11:48 UTC
Description of problem:
When using koan to install a system and profile from satellite with a static IP address the nameserver is not added by the pre_install_network_config line.  This leads you to download the stage2.img file like everything is working, but then not be able to find the kickstart file by hostname.

Version-Release number of selected component (if applicable):
5.3.0

How reproducible:
Everytime.

Steps to Reproduce:
1. Create a profile in Satellite
2. Use cobbler to make it a static address since Satellite doesn't have this option
3. Use koan on the client to install the system with the "-S <interface>" option as koan doesn't understand cobbler's "is static" option.
4. Watch it not find the kickstart until you change the hostname to the ip address.
  
Actual results:
No DNS no kickstart to satellite via hostnames

Expected results:
a --nameserver=<nameserver listed in system> and working DNS.

Additional info:

Comment 1 Charlie Wyse 2010-06-17 23:27:14 UTC
Created attachment 424978 [details]
nameservers patch

Here is a patch to fix the nameserver situation.

Comment 2 Clifford Perry 2010-07-12 15:25:35 UTC
The attached diff does not state what file this is a patch too. Can you provide that information? 

Further, while I appreciate the patch and bug report, I will let you know that command line usage of cobbler outside of Satellite and outside of our Sat docs is not supported. So we will (once) we get confirmation on where to apply the proposed patch, look at it to see if we can bugfix this, but please have expectations set that in the end we may determine fixing this is not the best thing to do as it breaks something else (which is unlikely, but I don't want to give you the wrong impression). 

Cliff.

Comment 8 Clifford Perry 2011-03-11 22:08:51 UTC
[root@rlx-1-18 ~]# locate pre_install_network_config
/var/lib/cobbler/snippets/pre_install_network_config
[root@rlx-1-18 ~]# rpm -Vf /var/lib/cobbler/snippets/pre_install_network_config
S.5....T  c /etc/cobbler/modules.conf
SM5....T  c /etc/cobbler/settings
[root@rlx-1-18 ~]# rpm -qf /var/lib/cobbler/snippets/pre_install_network_config
cobbler-2.0.7-5.el5sat
[root@rlx-1-18 ~]# grep -C5 nameserver /var/lib/cobbler/snippets/pre_install_network_config
                #set $netinfo = "--bootproto=static --ip=%s --netmask=%s" % ($ip, $netmask)
                #if $gateway != ""
                    #set $netinfo = "%s --gateway=%s" % ($netinfo, $gateway)
                #end if
                #if $len($name_servers) > 0
                    #set $netinfo = "%s --nameserver=%s" % ($netinfo, $name_servers[0])
                #end if
            #else if not $static
                #set $netinfo = "--bootproto=dhcp"
            #else
                ## Skip this interface, it's set as static, but without
[root@rlx-1-18 ~]#