Bug 1402557

Summary: [RFE] Have the default template automatically add the additional nameserver= lines
Product: Red Hat Satellite Reporter: jcastran
Component: Provisioning TemplatesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.2.5CC: bkearney, jcallaha, jcastran, mhulan, riehecky, tstrachota
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 19:03:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1438398    
Bug Blocks:    

Description jcastran 2016-12-07 20:05:25 UTC
1. Proposed title of this feature request  
     [RFE] Have the default template automatically add the additional nameserver= lines
  
2. Who is the customer behind the request?  
Account: 646274 
         Fermilab - Business Systems
  
TAM customer: no  
SRM customer: no
Strategic: yes  
  
3. What is the nature and description of the request?  
  Anaconda supports multiple DNS servers for a given link (https://rhinstaller.github.io/anaconda/boot-options.html#nameserver) can the default template be altered to add all DNS servers for a given subnet to the boot parameters



4. Why does the customer need this? (List the business requirements here)  
      I'm generally using Static addresses rather than DHCP.  Any chance the default template can be updated to automatically add the additional nameserver= lines?
      I can setup the manual template, but I suspect the larger customer base would benefit from this beyond myself.

5. How would the customer like to achieve this? (List the functional requirements here)  
  


6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  
  


7. Is there already an existing RFE upstream or in Red Hat Bugzilla?  
       No
  
8. Does the customer have any specific timeline dependencies and which release would they like to target (i.e. RHEL5, RHEL6)?  
     Satellite 6 z stream
  
9. Is the sales team involved in this request and do they have any additional input?  
         No


10. List any affected packages or components.  

  
11. Would the customer be able to assist in testing this functionality if implemented?  
                Yes

Comment 2 Tomas Strachota 2017-03-29 08:58:12 UTC
Created redmine issue http://projects.theforeman.org/issues/19065 from this bug

Comment 3 Tomas Strachota 2017-03-29 09:02:41 UTC
I'm lowering the severity because the default template doesn't cause any functionality loss. Users can always clone the template and override it with custom modifications.

Comment 4 Marek Hulan 2017-03-29 13:02:08 UTC
Thanks for the report. I believe the default template adds both primary and secondary DNS if they are specified on subnet. At least that's what I see in the template

>     network --bootproto <%= dhcp ? 'dhcp' : "static --ip=#{@host.ip} --netmask=#{subnet.mask} --gateway=#{subnet.gateway} --nameserver=#{[subnet.dns_primary, subnet.dns_secondary].select(&:present?).join(',')}" %> --hostname <%= @host %><%= os_major >= 6 ? " --device=#{@host.mac}" : '' -%>

Could you please explain what nameservers are missing? Or are more than 2 DNS server for subnet needed? Or is there some issue that secondary is not being added?

Comment 5 Pat Riehecky 2017-03-29 13:13:38 UTC
I believe the requested commit id is:  https://github.com/theforeman/community-templates/commit/96c76a54aaa43d8a07e9640e1c3444381d68fa85

I do not see it in Sat 6.2.8

Comment 6 Tomas Strachota 2017-03-29 13:36:40 UTC
According to the information in the case I believe this bug requests adding nameservers to Kickstart default iPXE template where they're missing even in upstream.

Comment 7 Marek Hulan 2017-03-29 15:00:04 UTC
Thanks Tomas, that makes sense. The iPXE template really does not have it.

Pat, the commit you link changes it for PXE based provisioning and iPXE is still not enhanced in community-templates repo. So just to be sure, you'd like to have this for iPXE right?

Comment 8 Pat Riehecky 2017-03-29 15:49:03 UTC
That is correct, with caveat - iPXE itself does not support multiple DNS servers.  The template cannot be enhanced until iPXE supports the enhancement.

Comment 9 Marek Hulan 2017-03-30 08:51:48 UTC
Oh, that is a showstopper I'm afraid. I didn't find even any plan to add such support in iPXE. Does it make sense to keep this BZ open in that case?

Comment 10 Pat Riehecky 2017-03-30 13:25:32 UTC
I've not been able to find an iPXE upstream bug tracker (I may just be blind today).  Any chance we can get a bug open against iPXE to add the feature and add this as dependent on it?

Comment 11 Pat Riehecky 2017-03-31 16:44:11 UTC
Somewhat related https://bugzilla.redhat.com/show_bug.cgi?id=1401126

Comment 12 Marek Hulan 2017-04-03 10:56:53 UTC
Thank you, I opened the request as BZ 1438398, please watch the progress there.

Comment 13 Bryan Kearney 2018-09-04 18:53:55 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.

Comment 14 Bryan Kearney 2018-09-04 19:03:27 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.