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 1781253 - [RFE] improve handling of connection.timestamp
Summary: [RFE] improve handling of connection.timestamp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: NetworkManager
Version: 8.2
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 8.0
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1807630
TreeView+ depends on / blocked
 
Reported: 2019-12-09 16:06 UTC by Thomas Haller
Modified: 2020-11-04 01:49 UTC (History)
9 users (show)

Fixed In Version: NetworkManager-1.26.0-0.1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:49:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


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:49:28 UTC

Description Thomas Haller 2019-12-09 16:06:45 UTC
The connection.timestamp indicates when the profile as successfully activate the last time.

This is relatively important for Wi-Fi profiles, because they won't autoconnect unless they were activated previously.

That means, when you want to pre-deploy a Wi-Fi profile, you would also need to set the timestamp, otherwise the profile cannot autoconnect.

There are multiple issues:

- ifcfg-rh plugin does not persist/read the timestamp

- keyfile reads it, but it gets ignored in favor of /var/lib/NetworkManager/timestamps, see https://gitlab.freedesktop.org/NetworkManager/NetworkManager/blob/e0569ee575a40f401b2cca1acbd9cddd5fa567cd/src/settings/nm-settings-connection.c#L2186

- when setting the timestamp via D-Bus, we actually write it to keyfile. However, it's still ignored and not properly set in NMSettingsConnection. We either should ignore the timestamp from D-Bus entirely, or properly handling setting.

- as it is, the timestamp cannot be actually set, neither via D-Bus nor via file based API. That means, you cannot create a profile that can autoconnect right away.

Comment 8 Thomas Haller 2020-07-02 10:40:18 UTC
for testing:


- there are 3 cases for a profile:

  a) when a profile never was attempted to autoconnect, it has no timestamp (at all), and is not mentioned in `/var/lib/NetworkManager/timestamps`.
  b) if a profile successfully activates, the positive timestamp gets written to /var/lib/NetworkManager/timestamps.
  c) if a profile tries to activate but fails, *and* if it had no timestamp previously (case a)), then NetworkManager would write timestamp 0 to /var/lib/NetworkManager/timestamps


What now happened before:

 - for (only!) Wi-Fi profiles, autoconnect was blocked if the profile has an explicit timestamp set to zero (case c)).


the effect is, that when you add a new profile (either intentionally or by accident when clicking in nm-applet on the wrong network), then initially it would autoconnect (case a). If that fails, autoconnect was blocked (case c), until a manual activate succeeded.


The change here is that autoconnect is now no longer blocked, regardless of whether it succeeded in the past.

Comment 12 errata-xmlrpc 2020-11-04 01:49:00 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.