Bug 689081

Summary: Kickstart network command does not respect --mtu
Product: Red Hat Enterprise Linux 6 Reporter: Ian Ward Comfort <icomfort>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0CC: atodorov, rwilliam
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-13.21.118-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 10:30: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:

Description Ian Ward Comfort 2011-03-19 05:55:09 UTC
Description of problem:
When a network command in a kickstart file includes --mtu, no MTU value is written to the installed system's ifcfg file in /etc/sysconfig/network-scripts.

How reproducible:
100%.

Steps to Reproduce:
1. Create a kickstart file with a line like "network --device=eth1 --mtu=8192".
2. Install a new system using this kickstart file.
3. Examine /etc/sysconfig/network-scripts/ifcfg-eth1 on new system.
  
Actual results:
There is no MTU= line in the file ifcfg-eth1.

Expected results:
The file should contain the line "MTU=8192".

Additional info:
The problem appears to be in kickstart.NetworkData's execute method; the logic there transfers various other settings from the kickstart data object to the Anaconda network device object, but not MTU. I have a patch which I've deployed via an updates.img in my environment (though I'm not certain which branch I should port this patch to for upstream inclusion).

Comment 1 Ian Ward Comfort 2011-03-19 06:11:17 UTC
See also: https://github.com/icomfort/anaconda/tree/rhel6-fix-mtu

Comment 3 RHEL Program Management 2011-05-31 20:49:52 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Alexander Todorov 2011-08-09 10:36:23 UTC
With anaconda-13.21.126 MTU is set to specified value.

Comment 7 errata-xmlrpc 2011-12-06 10:30:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1565.html