Bug 680871

Summary: initscripts adds duplicate routing rules
Product: [Fedora] Fedora Reporter: Tobias Oed <tobiasoed>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: iarlyy, jonathan, notting, plautrba, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-28 16:24:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.