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 1907032 - failed to reapply current state of a bond interface
Summary: failed to reapply current state of a bond interface
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nmstate
Version: 8.4
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.4
Assignee: Gris Ge
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-12 13:15 UTC by Mingyu Shi
Modified: 2021-11-09 20:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 17:42:57 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error log (17.25 KB, text/plain)
2020-12-12 13:15 UTC, Mingyu Shi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4157 0 None None None 2021-11-09 17:43:13 UTC

Description Mingyu Shi 2020-12-12 13:15:40 UTC
Created attachment 1738574 [details]
error log

Description of problem:
Failed to reapply current bond state. Or in a typical scenario, user gets full running state of a bond, modifies some values (e.g change mtu), then commit it. It will also fail.
This works well with nmstate-1.0.0-0.1 and before.

Version-Release number of selected component (if applicable):
nmstate-1.0.0-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.3.el8.x86_64
DISTRO=RHEL-8.4.0-20201212.n.0
Linux hp-dl388g8-08.rhts.eng.pek2.redhat.com 4.18.0-260.el8.x86_64 #1 SMP Wed Dec 9 04:38:29 EST 2020 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:
Nearly 100%

Steps to Reproduce:
ip link add veth1 type veth
echo "---
interfaces:
- name: bond_test
  type: bond
  state: up
  link-aggregation:
    mode: balance-rr
    slaves:
    - veth0
    - veth1" | nmstatectl set
nmstatectl show bond_test > run.yaml
nmstatectl set run.yaml

Actual results:
Failed

Expected results:
No failure

Additional info:

Comment 1 Mingyu Shi 2020-12-12 14:25:52 UTC
It seems that it happens not only on bond, but also on those interfaces with 'port' property, like bridge, vrf, etc.

Comment 2 Fernando F. Mancera 2021-02-20 09:28:50 UTC
(In reply to Mingyu Shi from comment #1)
> It seems that it happens not only on bond, but also on those interfaces with
> 'port' property, like bridge, vrf, etc.

Hi Mingyu, this is an expected behaviour. For controller interfaces (bridges, bond, vrf..) we are enabling the NetworkManager property "autoconnect-slaves". If this property is enabled, NetworkManager cannot reapply. I would not consider this a bug.

Comment 3 Fernando F. Mancera 2021-05-06 10:57:50 UTC
(In reply to Fernando F. Mancera from comment #2)
> (In reply to Mingyu Shi from comment #1)
> > It seems that it happens not only on bond, but also on those interfaces with
> > 'port' property, like bridge, vrf, etc.
> 
> Hi Mingyu, this is an expected behaviour. For controller interfaces
> (bridges, bond, vrf..) we are enabling the NetworkManager property
> "autoconnect-slaves". If this property is enabled, NetworkManager cannot
> reapply. I would not consider this a bug.

I don't know why I commented this but it is incorrect. The current bug does not refer to "reapply" operation but to apply the same state twice. I am investigating this and will work on it. Thanks!

Comment 4 Fernando F. Mancera 2021-06-16 21:04:22 UTC
This has been fixed by some changes done recently for bonding/bridges. This need to be covered by tests.

Comment 8 Mingyu Shi 2021-06-29 06:40:02 UTC
Verified with versions:
nmstate-1.1.0-0.5.alpha4.el8.noarch
nispor-1.1.1-1.el8.x86_64
NetworkManager-1.32.0-1.el8.x86_64

Comment 10 errata-xmlrpc 2021-11-09 17:42:57 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 (nmstate 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-2021:4157


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