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 2039734 - autoconnect-retries doesn't work as expected with multiconnect profiles
Summary: autoconnect-retries doesn't work as expected with multiconnect profiles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: NetworkManager
Version: 9.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Fernando F. Mancera
QA Contact: Filip Pokryvka
URL:
Whiteboard:
Depends On:
Blocks: 2183217
TreeView+ depends on / blocked
 
Reported: 2022-01-12 10:24 UTC by Beniamino Galvani
Modified: 2023-11-07 10:10 UTC (History)
14 users (show)

Fixed In Version: NetworkManager-1.43.3-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:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker NMT-275 0 None None None 2023-02-09 12:25:17 UTC
Red Hat Issue Tracker RHELPLAN-107553 0 None None None 2022-01-12 10:38:20 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 1282 0 None opened connection: add connection_multiconnect_autoconnect_retries test 2023-01-09 17:48:39 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1387 0 None opened policy: track the autoconnect retries in devices for multiconnect 2022-09-21 16:46:59 UTC
freedesktop.org Gitlab NetworkManager NetworkManager merge_requests 1530 0 None opened Autoconnect retries tracked on Device x Connection 2023-02-09 20:15:47 UTC

Description Beniamino Galvani 2022-01-12 10:24:25 UTC
Description of problem:

If a connection profile has connection.multi-connect=multiple, then the number of autoconnect retries is global across all connection attempts for the profile; instead it should be per-device.

Version-Release number of selected component (if applicable):
1.35.3, and any previous NM version since connection.multi-connect was introduced

Steps to Reproduce:

1. Prepare a machine with two interfaces eth0 and eth1 connected to a network without DHCP server
2. Create a connection profile with connection.multi-connect=multiple, connection.autoconnect-retries=2 and without interface name
3. Check that at boot the connection starts on both devices

Actual results:

4. After the connection fails on eth0, it is retried one time
5. After the connection fails on eth1, it is not retried because eth0 already decreased the autoconnect counter for the profile

Expected result:

4. After the connection fails on eth0, it is retried one time
5. After the connection fails on eth1, it is retried one time

Additional info:

In NM 1.26, nm-initrd-generator used to create profiles with 4 autoconnect retries and a DHCP timeout of 45 seconds. That means that for profiles bound to a single device NM would wait in the initramfs for 45*4=180 seconds. However, due to this bug, if the profile had multiconnect enabled (as for `ip=dhcp`) then some devices could wait 45s, some more, depending on the number of devices and activation order.

Since NM 1.30, nm-initrd-generator creates profiles with autoconnect-retries=1 and a DHCP timeout of 90 seconds, so this issue is no longer visible because each devices tries exactly one time.

However, the issue is still present for non-initramfs activations.

Comment 5 Filip Pokryvka 2022-11-18 15:15:46 UTC
Current patch makes connection never fail and retrying inifinitely, hence FailedQA.

Comment 9 Beniamino Galvani 2022-12-05 13:30:17 UTC
The change also affect some initrd use cases, see bug 2150000.

Comment 13 Thomas Haller 2022-12-20 15:14:17 UTC
*** Bug 2143978 has been marked as a duplicate of this bug. ***

Comment 14 Thomas Haller 2022-12-20 17:25:35 UTC
(In reply to Filip Pokryvka from comment #5)
> Current patch makes connection never fail and retrying inifinitely, hence
> FailedQA.

patch has been reverted upstream:
`main`: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/aec7ae8279cc9b3de7e75140b75fe997f43700fc
`nm-1-40`: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/ba663123669ae1a5670e4a85ce2cf520fea875f6

that should fix regressions like bug 2143978 (one it reaches rhel8/rhel9).

The bug goes back to NEW/ASSIGNED.

Comment 15 Filip Pokryvka 2023-01-09 17:51:11 UTC
Note for QE: the test already is prepared, just add commented-out steps and adjust version in connection_multiconnect_autoconnect_retries test.

Comment 24 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.