Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 602688

Summary: system-config-network removes GATEWAYDEV from /etc/sysconfig/network
Product: Red Hat Enterprise Linux 5 Reporter: Olivier Fourdan <ofourdan>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5CC: azelinka, jmarko, jpopelka, kem, pknirsch, psklenar, spoyarek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: system-config-network-1.3.99.20-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:09:49 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
Possible patch none

Description Olivier Fourdan 2010-06-10 13:37:17 UTC
Created attachment 422907 [details]
Possible patch

Description of problem:

If GATEWAYDEV is set in /etc/sysconfig/network, running system-config-network will remove the option without notice.

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

system-config-network-1.3.99.18-1.el5

How reproducible:

Always

Steps to Reproduce:

1. Add GATEWAYDEV=eth0 in /etc/sysconfig/network
2. Start system-config-network
3. Select File > Save
4. Check contents of /etc/sysconfig/network
  
Actual results:

GATEWAYDEV has been removed

Expected results:

GATEWAYDEV is left unchanged in /etc/sysconfig/network

Additional info:

This is from the fix for bug #78043, in netconfpkg/NCDeviceList.py:

  B<------B<------B<------B<------B<------B<------B<------B<------B<------
       [...]
       # bug #78043
       # we should have device specific gateways
       # fixed this way, until we have a way to mark the
       # default GATEWAY/GATEWAYDEV
       cfg = Conf.ConfShellVar(netconfpkg.ROOT + SYSCONFNETWORK)
       if cfg.has_key('GATEWAY'):
           del cfg['GATEWAY']
       if cfg.has_key('GATEWAYDEV'):
           del cfg['GATEWAYDEV']
       cfg.write()
  B<------B<------B<------B<------B<------B<------B<------B<------B<------

Removing the part that deletes gatewaydev fixes the issue.

Comment 2 RHEL Program Management 2010-08-09 19:43:12 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2011-05-31 15:26:07 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 8 errata-xmlrpc 2012-02-21 06:09:49 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-2012-0231.html