Bug 79261 - ifup-routes adds each route twice
ifup-routes adds each route twice
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-09 00:29 EST by Brian McMinn
Modified: 2014-03-16 22:32 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-12-09 00:29:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Brian McMinn 2002-12-09 00:29:06 EST
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 12:53:56 EST
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.

Note You need to log in before you can comment on or make changes to this bug.