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 1663365 - systemd-networkd ignores UseRoutes=false in [DHCP] of .network file
Summary: systemd-networkd ignores UseRoutes=false in [DHCP] of .network file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.6
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-04 04:19 UTC by Robert Scheck
Modified: 2019-08-06 12:43 UTC (History)
6 users (show)

Fixed In Version: systemd-219-64.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 12:43:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch suggestion (1.52 KB, patch)
2019-01-14 00:26 UTC, Robert Scheck
redhat-bugzilla: review? (jsynacek)
Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd issues 2282 0 None None None 2019-01-04 04:23:01 UTC
Red Hat Product Errata RHSA-2019:2091 0 None None None 2019-08-06 12:43:55 UTC

Description Robert Scheck 2019-01-04 04:19:53 UTC
Description of problem:
systemd-networkd ignores UseRoutes=false in [DHCP] of .network file, this
is upstream bug report https://github.com/systemd/systemd/issues/2282

Version-Release number of selected component (if applicable):
systemd-networkd-219-62.el7.x86_64

How reproducible:
$ cat /etc/systemd/network/wired.network 
[Match]
Name=eth0

[Network]
DHCP=ipv4

[DHCP]
UseRoutes=false
$ 

Even "UseRoutes=false" is set, there is still the default route from DHCP.

Actual results:
systemd-networkd ignores UseRoutes=false in [DHCP] of .network file.

Expected results:
systemd-networkd properly handles UseRoutes=false in [DHCP] of .network file.

Additional info:
Upstream patch is https://github.com/systemd/systemd/pull/3075

Comment 2 Jan Synacek 2019-01-04 07:21:22 UTC
systemd-networkd is shipped in the optional channel and is not supported. However, the fix is trivial and I'd say we could fix this as OtherQA or maybe even SanityOnly.

Comment 3 Robert Scheck 2019-01-14 00:26:29 UTC
Created attachment 1520395 [details]
Patch suggestion

Initially mentioned patch solves the issue (tested), but to make really sense, the following patches should be IMHO included as well:

 - https://github.com/systemd/systemd/commit/223932c786ada7f758a7b7878a6ad2dae0d1e5fb
 - https://github.com/systemd/systemd/pull/6594/commits/e98d8eac0ff3da6ed46d76c80a0f1200833707c7

The result is this patch suggestion.

Comment 4 Robert Scheck 2019-01-14 00:50:50 UTC
Filed case #02290894 at the Red Hat customer portal.

Comment 6 Jan Synacek 2019-01-15 12:37:16 UTC
Testing packages can be found at http://people.redhat.com/~jsynacek/systemd/bz1663365-dhcp-useroutes/.

Comment 7 Jan Synacek 2019-01-15 12:41:12 UTC
https://github.com/lnykryn/systemd-rhel/pull/270

Comment 8 Robert Scheck 2019-01-17 15:21:25 UTC
(In reply to Jan Synacek from comment #7)
> https://github.com/lnykryn/systemd-rhel/pull/270

Most of the packages there have a size of zero bytes, feels like a broken upload.

Comment 9 Apurbita Mukherjee 2019-01-18 06:53:04 UTC
(In reply to Robert Scheck from comment #8)
> (In reply to Jan Synacek from comment #7)
> > https://github.com/lnykryn/systemd-rhel/pull/270
> 
> Most of the packages there have a size of zero bytes, feels like a broken
> upload.

Yes, Robert seems so that's why couldn't able to upload the rest of the files with the case.

Comment 10 Jan Synacek 2019-01-18 08:04:10 UTC
I didn't realize that the quota was so low and in truncated the rest of my upload. I've rebuilt and reuploaded the packages.

Please, try again. The packages are there now.

Comment 11 Robert Scheck 2019-01-18 20:13:00 UTC
(In reply to Jan Synacek from comment #10)
> Please, try again. The packages are there now.

Thanks; systemd-networkd-219-63.el7.bz1663365_dhcp_useroutes.x86_64.rpm works here as expected.

Comment 12 Lukáš Nykrýn 2019-02-07 09:12:09 UTC
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/270 -> post

Comment 15 errata-xmlrpc 2019-08-06 12:43:36 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://access.redhat.com/errata/RHSA-2019:2091


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