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 1715887 - fix nmcli resetting default value for connection
Summary: fix nmcli resetting default value for connection
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Haller
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-31 14:04 UTC by Thomas Haller
Modified: 2020-03-31 20:08 UTC (History)
10 users (show)

Fixed In Version: NetworkManager-1.18.4-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 20:07:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1162 0 None None None 2020-03-31 20:08:37 UTC

Description Thomas Haller 2019-05-31 14:04:22 UTC
Requesting backport for upstream fix https://gitlab.freedesktop.org/NetworkManager/NetworkManager/commit/403f207fe58538f0228ac42918f23d2e6a18e8b6


This bug was introduced in 1.18.0, and affects rhel-7.7.



This affects connection properties that don't have a default value of 0/FALSE/NULL. When trying to reset the value with nmcli, it was wrong.

For example 

  $ nmcli connection modify "$PROFILE" connection.autoconnect ''
  $ nmcli -f connection.autoconnect connection show "$PROFILE" 
  connection.autoconnect:                 no

  ("yes" would be correct).

  $ nmcli connection modify "$PROFILE" connection.autoconnect-retries ''
  $ nmcli -f connection.autoconnect-retries connection show "$PROFILE" 
  connection.autoconnect-retries:         0 (forever)

  (-1 would be correct).


The patch itself is trivial, hence I would fix this in rhel-7.7.

Comment 4 sushil kulkarni 2019-06-19 13:29:45 UTC
Resetting blocker per PM review. Will fix in 7.8.

-Sushil

Comment 8 Vladimir Benes 2019-10-21 13:39:37 UTC
We are checking that all values can be set now.. from 0 to 6. Test added.

Comment 9 Vladimir Benes 2019-10-21 13:41:08 UTC
(In reply to Vladimir Benes from comment #8)
> We are checking that all values can be set now.. from 0 to 6. Test added.

ah, the wrong bug, this one is about adding a test and verification of resetting values with an empty string. This is done and working well.

Comment 11 errata-xmlrpc 2020-03-31 20:07:59 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/RHBA-2020:1162


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