Bug 1144614 - Adding static route makes interface disappear from NetworkManager list of interfaces
Summary: Adding static route makes interface disappear from NetworkManager list of int...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: NetworkManager
Version: 6.5
Hardware: i686
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lubomir Rintel
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-19 22:05 UTC by Tuan Hoang
Modified: 2015-07-22 05:58 UTC (History)
9 users (show)

Fixed In Version: NetworkManager-0.8.1-77.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-22 05:58:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
eth0 configuration (344 bytes, text/plain)
2014-09-23 20:28 UTC, Tuan Hoang
no flags Details
eth0 static route (55 bytes, text/plain)
2014-09-23 20:28 UTC, Tuan Hoang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
CentOS 0007618 0 None None None Never
Red Hat Product Errata RHBA-2015:1257 0 normal SHIPPED_LIVE NetworkManager bug fix and enhancement update 2015-07-20 17:49:57 UTC

Description Tuan Hoang 2014-09-19 22:05:22 UTC
Description of problem:
Adding static route(s) to an interface cause the interface to get removed from the list of interfaces managed by NetworkManager.

Version-Release number of selected component (if applicable):
NetworkManager-0.8.1-66.el6.i686

How reproducible:
Always

Steps to Reproduce:
1. Configure static IP for eth0.
2. Add static route for eth0.
   Ex: ADDRESS0=224.0.0.0
       NETMASK0=240.0.0.0
       GATEWAY0=0.0.0.0
3. Save settings and exit.


Actual results:
1. NetworkManager no longer displays eth0 in list of interfaces.
2. Also the network service cannot start eth0 because it is still NM_CONTROLLED=yes and has a UUID entry.  So if you reboot, the box is not configuring eth0 anymore and offline.


Workaround:
1. Don't use static routes (i.e. remove route-eth0 file).
    OR
2. Use network service (edit ifcfg-eth0 and set NM_CONTROLLED=no and comment-out UUID).


Expected results:
1. NetworkManager still manages eth0 and static routes work.


Additional info:
I am using kernel param "biosdevname=0" to preserve the eth0 network interface naming because I have software licenses tied to "eth0" MAC address.

Comment 2 Dan Winship 2014-09-20 14:12:07 UTC
Can you attach the exact ifcfg/route files that you're using? And what does NM log to /var/log/messages when this happens? Presumably it's disappearing because NM can't parse the config now.

Comment 3 Jirka Klimes 2014-09-22 13:37:06 UTC
I think it may be a duplicate of bug 1111672.

Comment 4 Tuan Hoang 2014-09-23 20:28:34 UTC
Created attachment 940604 [details]
eth0 configuration

Comment 5 Tuan Hoang 2014-09-23 20:28:59 UTC
Created attachment 940605 [details]
eth0 static route

Comment 6 Tuan Hoang 2014-09-23 20:30:51 UTC
I attached my ifcfg-eth0 and route-eth0 files.  If you simply drop the route-eth0 file into /etc/sysconfig/network-scripts folder, the interface disappears from NetworkManager.

Also if I remove the file, NetworkManager doesn't reload the interface unless I "touch ifcfg-eth0".

Comment 7 Tuan Hoang 2014-09-24 12:59:54 UTC
(In reply to Jirka Klimes from comment #3)
> I think it may be a duplicate of bug 1111672.

I can't see that bug#...not authorized.

Comment 8 Dan Winship 2014-09-24 13:16:15 UTC
It is the same bug, and we have a patch for it. I'll update this bug when we have a test package available.

Comment 9 Tuan Hoang 2014-09-25 21:23:23 UTC
(In reply to Dan Winship from comment #8)
> It is the same bug, and we have a patch for it. I'll update this bug when we
> have a test package available.

Thanks.  Look forward to testing it.

Comment 10 Tuan Hoang 2014-10-06 14:21:04 UTC
Any progress on this?  If there is a patched version in Fedora, can you direct me to it?

Comment 12 Lubomir Rintel 2014-10-31 09:46:28 UTC
(In reply to Tuan Hoang from comment #10)
> Any progress on this?  If there is a patched version in Fedora, can you
> direct me to it?

The package with the patch applied is here.
http://people.freedesktop.org/~lkundrak/rh1144614-NetworkManager-0.8.1-76.el6/

Comment 13 Tuan Hoang 2014-10-31 17:56:51 UTC
Thank you.  I'm currently on out of the office, but will try to get this tested by Nov 11th.

Comment 14 Tuan Hoang 2014-11-11 22:21:57 UTC
The patch works great.  Please push this out to production.

Comment 15 Dan Williams 2014-12-02 19:19:36 UTC
POST because we have a patch, though this bug is really a duplicate of bug 1111672.

Comment 19 errata-xmlrpc 2015-07-22 05:58:14 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.

https://rhn.redhat.com/errata/RHBA-2015-1257.html


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