Bug 1811605

Summary: Bond: fail to add updelay when miimon is set first
Product: Red Hat Enterprise Linux 8 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.2CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-1.0.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:16:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1847814    
Bug Blocks:    
Attachments:
Description Flags
log none

Description Mingyu Shi 2020-03-09 10:35:01 UTC
Created attachment 1668640 [details]
log

Description of problem:
If miimon is set, cannot add updelay anymore.

Version-Release number of selected component (if applicable):
nmstate-0.2.6-2.7.el8.noarch
NetworkManager-1.22.8-3.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
# cat miimon-only.yml
interfaces:
- name: temp0
  type: bond
  state: up
  ipv4:
    address:
    - ip: 192.168.10.2
      prefix-length: 24
    dhcp: false
    enabled: true
  ipv6:
    enabled: true
  link-aggregation:
    mode: balance-rr
    options:
      miimon: '1000'
    slaves:
    - veth10_ep
    - veth3_ep

# cat miimon-and-updelay.yml
interfaces:
- name: temp0
  type: bond
  state: up
  ipv4:
    address:
    - ip: 192.168.10.2
      prefix-length: 24
    dhcp: false
    enabled: true
  ipv6:
    enabled: true
  link-aggregation:
    mode: balance-rr
    options:
      miimon: '1000'
      updelay: 1000
    slaves:
    - veth10_ep
    - veth3_ep

1. nmstatectl set miimon-only.yml
2. nmstatectl set miimon-and-updelay.yml
3.

Actual results:
Fail

Expected results:
No failure

Additional info:
If specify miimon and updelay when create a new bond interface, it can work then. Means you can make it work well by skipping step 1 and doing step 2 directly.

Comment 1 Gris Ge 2020-03-13 12:08:22 UTC
Move bond options related bugs to RHEL 8.3 as NetworkManager intend to change a lot in bond options related codes there.

Comment 2 Gris Ge 2020-06-17 06:29:53 UTC
It's a NetworkManager Bug 1847814 - Reapply does not update bond options

Comment 10 Mingyu Shi 2020-12-25 07:13:49 UTC
Verified with versions:
nmstate-1.0.0-1.el8.noarch
nispor-1.0.1-2.el8.x86_64
NetworkManager-1.30.0-0.4.el8.x86_64
DISTRO=RHEL-8.4.0-20201218.d.2
Linux dell-per730-20.rhts.eng.pek2.redhat.com 4.18.0-262.el8.dt3.x86_64 #1 SMP Tue Dec 15 04:28:42 EST 2020 x86_64 x86_64 x86_64 GNU/Linux

Comment 12 errata-xmlrpc 2021-05-18 15:16:54 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:1748