RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2046293 - Configuring pref-src (src) of route not working with dad/ACD
Summary: Configuring pref-src (src) of route not working with dad/ACD
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.2
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Matej Berezny
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-26 14:23 UTC by Thomas Haller
Modified: 2023-11-07 10:11 UTC (History)
8 users (show)

Fixed In Version: NetworkManager-1.43.4-1.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-07 08:37:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-44 0 None None None 2023-01-22 10:50:13 UTC
Red Hat Issue Tracker RHELPLAN-109838 0 None None None 2022-01-26 14:26:16 UTC
Red Hat Product Errata RHBA-2023:6585 0 None None None 2023-11-07 08:38:18 UTC
freedesktop.org Gitlab NetworkManager NetworkManager-ci merge_requests 1368 0 None merged [th/route-prefsrc] test adding routes with prefsrc/src attribute (@ipv4_prefsrc_route_acd) 2023-04-04 12:09:43 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1550 0 None opened [th/platform-rt-prefsrc] better handle routes with prefsrc 2023-03-15 08:35:13 UTC

Description Thomas Haller 2022-01-26 14:23:43 UTC
Kernel is very picky about accepting a route with "src" parameter.
The src address must have a corresponding local route, which it usually has when the IP address is added. Otherwise configuring it fails.

Say, you configure this profile:

  nmcli connection add \
      type ethernet \ 
      con-name x \
      autoconnect no \
      ipv6.method disabled \
      ipv4.method manual \
      ipv4.addresses 10.0.0.1/24 \
      ipv4.routes "10.0.0.0/24 src=10.0.0.1 table=5000"
      ipv4.dad-timeout 500


this seems a sensible thing to do, because you want to use policy routing and add the device route to another table. Something similar might happen with

  nmcli connection add \
      type ethernet \ 
      con-name x \
      autoconnect no \
      ipv6.method disabled \
      ipv4.method manual \
      ipv4.addresses 10.0.0.1/24 \
      ipv4.route-table 5000 \
      ipv4.routes "10.0.0.0/24 src=10.0.0.1"
      ipv4.dad-timeout 500

(check both approaches, because they are not exactly the same!)




Anyway. With this, DAD/ACD is delaying the addition of the IPv4 address, and the IPv4 local route does not exist. At this point, the pref-src route cannot be added yet. What must happen, is that NM notices this, and retries later when the circumstances are right.

I guess, something similar could also happen with IPv6. Test that too!!


The underlying problem is because kernel tries to be overly helpful, and requiring that non-trivial relations between addresses/routes are honored. When it should just accept the configuration that the user wants to make. It's not that you couldn't configure wrong routing in kernel, this only captures a very very narrow case.

Comment 1 Thomas Haller 2022-01-26 14:27:36 UTC
NML3Cfg has a mechanism for that, grep for "routes_temporary_not_available". Apparently, it doesn't work properly for the prefsrc case.

Comment 2 Thomas Haller 2022-01-26 15:23:34 UTC
note that the pref-src could also be on *another* device/profile!! And that might be activated later (or never). It would seem, we need to keep such a route around, until we can configure it.

Comment 13 errata-xmlrpc 2023-11-07 08:37:53 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 (NetworkManager bug fix and enhancement update), 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://access.redhat.com/errata/RHBA-2023:6585


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