Bug 680871 - initscripts adds duplicate routing rules
Summary: initscripts adds duplicate routing rules
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 14
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-28 09:30 UTC by Tobias Oed
Modified: 2014-03-17 03:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-28 16:24:43 UTC
Type: ---


Attachments (Terms of Use)

Description Tobias Oed 2011-02-28 09:30:53 UTC
Description of problem:
If I put ip rules in /etc/sysconfig/network-scripts/rule-lo and use the network scripts to hangle network then these show up twice in the output of ip rule show after a reboot.

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

How reproducible:
100%

Steps to Reproduce:
1. echo 'ip rule add prio 500 table 20' > /etc/sysconfig/network-scripts/rule-lo
2. reboot
3. ip rule show
  
Actual results:
0:	from all lookup local 
500:	from all lookup 20 
500:	from all lookup 20 
32766:	from all lookup main 
32767:	from all lookup default 

Expected results:
0:	from all lookup local 
500:	from all lookup 20 
32766:	from all lookup main 
32767:	from all lookup default 

Additional info:
The duplicates are due to udev doing an 'ifup lo' because of this line 

ACTION=="add", SUBSYSTEM=="net", DEVPATH=="/devices/virtual/net/lo", RUN+="/sbin/ifup $env{INTERFACE}"

of /lib/udev/rules.d/60-net.rules and then /etc/init.d/network doing a second one.

Tobias Oed

Comment 1 Bill Nottingham 2011-02-28 16:24:43 UTC
The udev rule is gone in rawhide, so this should be fixed there.


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