Bug 528068

Summary: ifcfg-eth0 file with BOOTPROTO=static not recognized
Product: [Fedora] Fedora Reporter: Jason Tibbitts <j>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dcbw
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: 2009-10-22 18:16:55 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:

Description Jason Tibbitts 2009-10-08 19:57:22 UTC
I have a rawhide VM set up with a static IP but running NetworkManager (just to test the combination).  The ifcfg-eth0 file is:

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
DNS1=129.7.128.1
GATEWAY=129.7.128.254
HWADDR=54:52:00:22:42:c6
IPADDR=129.7.128.122
MTU=1500
NETMASK=255.255.255.0
ONBOOT=yes
MTU=1500
SEARCH="math.uh.edu"

Prior to a yum update today I was running NetworkManager-0.7.996-1.git20090826.fc12.x86_64 and this configuration worked fine.  Today I updated to NetworkManager-0.7.996-3.git20090928.fc12.x86_64 and the machine decides to DHCP at boot.  The following interesting bit appears in the log:

Oct  8 12:49:01 v02 NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
Oct  8 12:49:01 v02 NetworkManager:    ifcfg-rh:     error: Unknown BOOTPROTO 'static'

Previous boots had:

Sep 17 17:07:16 v02 NetworkManager:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
Sep 17 17:07:16 v02 NetworkManager:    ifcfg-rh:     read connection 'System eth0'

Somewhat surprised by this, I checked a many other hosts here and all have BOOTPROTO=static.  The ifcfg files are all generated by kickstart, with a network line starting with "network --bootproto static".  It was mentioned on IRC that the documentation doesn't permit static, but if that's the case then something has been doing it wrong for many, many years now.

Comment 1 Jason Tibbitts 2009-10-08 20:18:52 UTC
I should add that simply removing "static" and using "BOOTPROTO=" gets things working.

Comment 2 Dan Williams 2009-10-08 23:19:41 UTC
Upstream commits:

c31b3e455414a5a7bf57d9fed1442367e9e4c917 (master)
0940c03a7c070cdd37f050072c055d3845d4754a (0.7.x)

Comment 3 Dan Williams 2009-10-22 18:16:55 UTC
Fixed in:

http://koji.fedoraproject.org/koji/buildinfo?buildID=137758