Bug 79261

Summary: ifup-routes adds each route twice
Product: [Retired] Red Hat Linux Reporter: Brian McMinn <nobsod>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: rvokal
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: 2002-12-09 05:29: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:

Description Brian McMinn 2002-12-09 05:29:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Description of problem:
ifup-routes adds routes from both eth0.route and route-eth0 and
ignores the "old format" file /etc/sysconfig/static-routes

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


How reproducible:
Always

Steps to Reproduce:
1.run neat, add a static route
2.run ifup-routes eth0
3.see errors
	

Actual Results:  RTNETLINK answers: File exists


Additional info:

I used "neat" to add some static routes.
Neat created two files of interest:
  /etc/sysconfig/networking/devices/eth0.route
  /etc/sysconfig/network-scripts/route-eth0
Both of these files contain the information about the static routes
that I want to establish, but they are in different formats.

When ifup-routes is run, it first tests to see if
/etc/sysconfig/networking/devices/eth0.route exists.  If it doesn't,
ifup-routes exits.  If it does, ifup-routes then uses this file to
add the desired routes.  It then (according to the comments) uses
the "old style" file in route-eth0 to attempt to add the same routes
again.

There are two problems with this.  First is that it should use one
or the other of these files (or neat should only create one or the
other).  I think ifup-routes should check to see if the "new" format
file exists and use it if it exists.  The second problem with
shows up if the eth0.route file doesn't exist.  In this case, I think
ifup-routes should use the old format that used to be in
/etc/sysconfig/static-routes so that it will be backwards compatible
with RH7.3.

Comment 1 Bill Nottingham 2002-12-09 17:53:56 UTC
static-routes is deprecated, there was massive docs fubarness for this. This is
fixed in CVS. As to neat, it should really only write to one file; that's a
separate bug.