Bug 613801

Summary: NetworkManager does not write subnet mask to /etc/sysconfig/network-scripts/ifcfg-eth0
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dcbw, harald, jklimes, jmoskovc, jpopelka, lsof
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-network-1.6.1-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-02 20:44:15 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
system-config-network-tui read/write PREFIX of ifcfg files none

Description Need Real Name 2010-07-12 20:44:03 UTC
I noticed that NetworkManager does not write subnet mask to /etc/sysconfig/network-scripts/ifcfg-eth0

Comment 1 Dan Williams 2010-07-20 19:55:01 UTC
Does it write:

PREFIX=xx

?  That's the preferred form these days instead of subnet masks, even when NM isn't being used.

Comment 2 Need Real Name 2010-07-20 21:20:56 UTC
Yes, but system-config-network-tui doesn't understand that.

Comment 3 Jirka Klimes 2010-07-21 13:50:36 UTC
Well, NM prefers PREFIX over NETMASK for static IP in ifcfg files.
Initscripts also uses PREFIX with 'ip' command. (except in aliases, where NETMASK is used with ifconfig.)

/usr/share/doc/initscripts-*/sysconfig.txt doesn't mention PREFIX. That'd a deficiency of the documentation and should be updated.

So, this report is an issue of system-config-network-tui, that doesn't read/write PREFIX.

Comment 4 Jirka Klimes 2010-07-21 13:57:40 UTC
Created attachment 433426 [details]
system-config-network-tui read/write PREFIX of ifcfg files


The patch reads and writes PREFIX from/to ifcfg file.
When both PREFIX and NETMASK exists, PREFIX takes precedence as it's done such by initscripts and NM a long time already.

Comment 6 Fedora Update System 2010-08-23 13:47:09 UTC
system-config-network-1.6.1-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc13

Comment 7 Fedora Update System 2010-08-23 13:50:29 UTC
system-config-network-1.6.1-1.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc14

Comment 8 Fedora Update System 2010-08-23 19:02:31 UTC
system-config-network-1.6.1-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update system-config-network'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/system-config-network-1.6.1-1.fc14

Comment 9 Fedora Update System 2010-09-02 20:43:48 UTC
system-config-network-1.6.1-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2010-09-04 05:16:11 UTC
system-config-network-1.6.1-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.