Bug 920470

Summary: [RFE] add support for DHCP networks in addition to static ones
Product: [Retired] Beaker Reporter: Jaroslav Kortus <jkortus>
Component: generalAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.11CC: aigao, asaha, dcallagh, qwan, rmancy, tools-bugs, xma
Target Milestone: 0.17Keywords: EasyFix, FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Kickstart
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-10 23:28:22 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:
Embargoed:

Description Jaroslav Kortus 2013-03-12 07:55:55 UTC
Description of problem:
one can specify static_networks in kickstart metadata to have automatically set up specific networks on defined interfaces.

I was not able to find a way how to set up a DHCP assignment on these networks. So my proposal is to add dhcp_networks to the network snippet like this:

{% if dhcp_networks %}
{% for device in dhcp_networks|split(';') %}
network --bootproto=dhcp --device={{ device }}
{% endfor %}
{% endif %}

That accepts dhcp_networks="MAC1;MAC2;...;MACn" and sets them up as DHCP interfaces.

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

Comment 1 Dan Callaghan 2013-03-12 22:26:51 UTC
(In reply to comment #0)
> network --bootproto=dhcp --device={{ device }}

Hmmm, I don't understand why this is necessary. Isn't DHCP the default? What does anaconda do differently if this line is present vs. absent?

From my reading of:
http://fedoraproject.org/wiki/Anaconda/Kickstart#network
it seems like this should make no difference.

Comment 2 Jaroslav Kortus 2013-03-13 09:19:24 UTC
They are set up as DHCP, but disabled (ONBOOT=no).

Comment 3 Dan Callaghan 2013-03-13 22:16:10 UTC
Okay, I see.

Comment 5 Dan Callaghan 2014-05-27 02:17:19 UTC
On Gerrit: http://gerrit.beaker-project.org/3107

Comment 7 Dan Callaghan 2014-05-29 07:02:19 UTC
The development version of the docs have been updated to include this ksmeta variable:

https://beaker-project.org/docs-develop/user-guide/customizing-installation.html#kickstart-metadata

Comment 9 Dan Callaghan 2014-06-10 23:28:22 UTC
Beaker 0.17.0 has been released.