Bug 1005416 - NM should treat routes differently depending on their origin
Summary: NM should treat routes differently depending on their origin
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 7.0
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 20:43 UTC by Thomas Haller
Modified: 2014-06-18 02:48 UTC (History)
5 users (show)

Fixed In Version: NetworkManager-0.9.9.0-37.git20140131.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:23:29 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 722843 0 None None None Never

Description Thomas Haller 2013-09-06 20:43:58 UTC
This is a bug for tracking the implementation of a new functionality in NetworkManager.


Currently, NM treads all routes the same, regardless how they were configured.
Routes should be tagged internally in NM depending on their origin (e.g. DHCP, RA, static, ...).


One use of this is for example in bug #999544. Currently NM considers the activation of a connection as failed, when a route cannot be set. This makes mostly sense for manually configured routes, because a partial failure of setting a route cannot be displayed to clients. This behaviour might be undesired for routes from DHCP because a wrong configured route on the DHCP server could make the connection unusable.

Comment 2 Dan Williams 2014-01-20 17:52:52 UTC
Over to you thomas; I'll try to merge dcbw/vpn-no-iface this week to provide the basis for your work here.  Thanks!

Comment 3 Thomas Haller 2014-01-21 20:09:58 UTC
A related discussion to this topic took place at https://bugzilla.gnome.org/show_bug.cgi?id=721771#c20 and following

Comment 4 Thomas Haller 2014-01-23 16:49:38 UTC
Created upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=722843

Comment 5 Dan Williams 2014-01-24 17:59:07 UTC
vpn-no-iface was merged along with your fix for better handling of externally-sourced routes.

Comment 6 Dan Williams 2014-01-24 17:59:21 UTC
vpn-no-iface was merged along with your fix for better handling of externally-sourced routes.

Comment 9 Vladimir Benes 2014-04-28 10:52:04 UTC
reproducer:
setting 192.169.0.128/24 192.168.0.1 with routes to 192.168.0.22 fails localy, 

but after starting dnsmasq with:
interface=enp0s25
dhcp-range=enp0s25,192.169.0.222,192.169.0.229,4h
dhcp-option=121,10.0.0.0/24,192.168.0.22

and connecting from other box I was able co get address and activate connection correctly.

there was a message about failing routes:
Apr 28 12:45:29 dhcp131-232 NetworkManager[941]: <error> [1398681929.384658] [platform/nm-linux-platform.c:1366] add_object(): Netlink error adding 10.0.0.0/24 via 192.168.0.22 dev enp0s25 metric 1 mss 0 src unknown: Unspecific failure

Comment 10 Ludek Smid 2014-06-13 12:23:29 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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