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 1142864 - nmtui cannot change bond mode from active-backup to round-robin
Summary: nmtui cannot change bond mode from active-backup to round-robin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: NetworkManager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Dan Winship
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-17 14:22 UTC by Dan Williams
Modified: 2015-03-05 13:53 UTC (History)
7 users (show)

Fixed In Version: NetworkManager-0.9.9.1-46.git20140326.4dba720.el7
Doc Type: Bug Fix
Doc Text:
* Switching a network bond connection from "active-backup" mode to a different mode using the nmtui client failed to remove the interface option, creating an erroneous configuration that would be refused by the NetworkManager daemon. This update fixes the issue. (BZ#1142864)
Clone Of:
Environment:
Last Closed: 2015-03-05 13:53:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Suggested fix (el7) (884 bytes, text/plain)
2014-09-19 10:29 UTC, Lubomir Rintel
no flags Details
[PATCH] tui: additional fix for 'primary' option (1.22 KB, patch)
2014-09-22 17:16 UTC, Jirka Klimes
no flags Details | Diff
Revert (1.09 KB, application/mbox)
2014-10-10 09:15 UTC, Lubomir Rintel
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0311 0 normal SHIPPED_LIVE NetworkManager bug fix and enhancement update 2015-03-05 17:35:10 UTC

Description Dan Williams 2014-09-17 14:22:54 UTC
When you change a bond from active-backup (with a primary specified) and then change to round-robin, and attempt to save, you get the error:

Unable to save connection: bond.options: 'primary' option is only valid for 'mode=active-backup'

likely because the tui isn't clearing the bond options when the mode changes, or something like that.

Comment 2 Lubomir Rintel 2014-09-19 10:29:34 UTC
Created attachment 939195 [details]
Suggested fix (el7)

Please review.

el7: (attached)
master: https://github.com/lkundrak/NetworkManager/commit/d75103375af79e71125fa312fd461358662d5fe2

Comment 3 Dan Winship 2014-09-19 13:31:39 UTC
> Just drop is as we disable the widget in UI.

typo ("drop is")

I think you need to add the option back in the TRUE case as well; otherwise if you fill in a primary value, then change the mode and then change it back, the entry would still show the old value, but it wouldn't be set in the NMSettingBond.

Comment 5 Dan Winship 2014-09-19 19:44:16 UTC
yes, that looks right

Comment 6 Dan Williams 2014-09-19 21:34:06 UTC
Looks right to me too.  We may need to do this with other options too, but this fixes the immediate bug.

Comment 7 Jirka Klimes 2014-09-22 07:29:04 UTC
The patch looks good to me.

Comment 8 Jirka Klimes 2014-09-22 09:03:17 UTC
Committed upstream:
a36a3a9 tui/bond: remove primary option if mode is not active-backup (rh #1142864)

Comment 9 Jirka Klimes 2014-09-22 10:48:01 UTC
We probably want to include these commits too:
2f36955 tui: fix displaying bond ARP IP targets
b0b51ec tui: don't call g_strv_length() on NULL

Comment 11 Jirka Klimes 2014-09-22 17:16:17 UTC
Created attachment 940084 [details]
[PATCH] tui: additional fix for 'primary' option

Additional fix for primary option.

Note:
Commits form comment #9 are already contained in NetworkManager-0.9.9.1-40.git20140326.4dba720.el7

Comment 12 Dan Williams 2014-09-22 18:36:14 UTC
(In reply to Jirka Klimes from comment #11)
> Created attachment 940084 [details]
> [PATCH] tui: additional fix for 'primary' option
> 
> Additional fix for primary option.
> 
> Note:
> Commits form comment #9 are already contained in
> NetworkManager-0.9.9.1-40.git20140326.4dba720.el7

Yeah, good catch.

Comment 13 Jirka Klimes 2014-09-23 08:41:24 UTC
(In reply to Dan Williams from comment #12)
> (In reply to Jirka Klimes from comment #11)
> > Created attachment 940084 [details]
> > [PATCH] tui: additional fix for 'primary' option
> > 
> > Additional fix for primary option.
> > 
> > Note:
> > Commits form comment #9 are already contained in
> > NetworkManager-0.9.9.1-40.git20140326.4dba720.el7
> 
> Yeah, good catch.

Upstream:
37f1208 tui: additional fix for 'primary' option

Pushed to RHEL 7.1 too: NetworkManager-0.9.9.1-41.git20140326.4dba720.el7

Comment 14 Vitezslav Humpa 2014-09-23 10:40:02 UTC
Looks like the 'Primary' option is mandatory for the whole form not depending just on Active Backup mode where it's visible. So it currently blocks the 'OK' trying to create a connection with any other mode. (NetworkManager-0.9.9.1-41)

Comment 16 Lubomir Rintel 2014-10-10 09:15:11 UTC
Created attachment 945535 [details]
Revert

I've pushed incomplete fix to el7. This needs to be removed and replaced with a complete fix.

Comment 19 errata-xmlrpc 2015-03-05 13:53:17 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://rhn.redhat.com/errata/RHBA-2015-0311.html


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