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 1828458 - [RFE] nm-online systemd unit file has hardcoded timeout
Summary: [RFE] nm-online systemd unit file has hardcoded timeout
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.2
Hardware: All
OS: All
high
high
Target Milestone: rc
: 8.2
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard: Telco
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-27 18:15 UTC by Dan Williams
Modified: 2023-10-06 19:47 UTC (History)
10 users (show)

Fixed In Version: NetworkManager-1.25.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:49:42 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 Product Errata RHBA-2020:4499 0 None None None 2020-11-04 01:50:19 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 484 0 None None None 2020-04-29 18:10:17 UTC

Description Dan Williams 2020-04-27 18:15:50 UTC
While debugging an OpenShift cluster, we found it takes 32 seconds for NM startup until a DHCP lease is acquired. This causes nm-online/NetworkManager-wait-online to fail and allow other units to proceed before networking is up.

This in turn causes kubelet to see the wrong hostname (which is then set correctly by NM 2 seconds later) and fails to add the node to the cluster.

We could edit the systemd unit file for NetworkManager-wait-online to adjust the default 30s timeout, but it would be nicer if the unit file sourced an env file somewhere on the machine and used that value instead of the 30 default if present.

eg:

EnvironmentFile=-/etc/sysconfig/nm-online
ExecStart=/usr/bin/nm-online -s -q --timeout=$NM_ONLINE_TIMEOUT

Comment 2 Thomas Haller 2020-04-28 20:22:25 UTC
the rhbz links to case https://access.redhat.com/support/cases/#/case/02639509, but I fail to understand how that is related.

It would be interesting to know why it takes 32 seconds. The timeout is something that should not be reached in regular operation. Maybe we should just increase the timeout to 45 seconds instead? Working systems would should suffer from this increased timeout.


How about https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/484 ?
Would "EnvironmentFile=-/etc/sysconfig/nm-online" be preferable? Why?

Comment 3 Dan Williams 2020-04-28 21:21:38 UTC
(In reply to Thomas Haller from comment #2)
> the rhbz links to case
> https://access.redhat.com/support/cases/#/case/02639509, but I fail to
> understand how that is related.

It's something we found while debugging the cluster for that specific support case, and will fix one of the issues we found there WRT node hostname.

> It would be interesting to know why it takes 32 seconds. The timeout is
> something that should not be reached in regular operation. Maybe we should
> just increase the timeout to 45 seconds instead? Working systems would
> should suffer from this increased timeout.

I think it's just "enterprise stuff takes longer". We'll grab some NM logs to diagnose further.

> How about
> https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/
> merge_requests/484 ?
> Would "EnvironmentFile=-/etc/sysconfig/nm-online" be preferable? Why?

Filename was just a suggestion based off what other services do in RHEL/Fedora. Doesn't matter what the file is as long as it's %config and can be edited locally. Will comment on the MR.

Comment 11 errata-xmlrpc 2020-11-04 01:49:42 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-2020:4499


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