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 2144783 - [NMSTATE] bond_updelay setting in ovs bond is failing
Summary: [NMSTATE] bond_updelay setting in ovs bond is failing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: nmstate
Version: 9.1
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: rc
: ---
Assignee: Fernando F. Mancera
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks: 2148208 2148395 2148396
TreeView+ depends on / blocked
 
Reported: 2022-11-22 10:02 UTC by Karthik Sundaravel
Modified: 2023-05-09 08:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2148208 2148395 2148396 (view as bug list)
Environment:
Last Closed: 2023-05-09 07:31:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate nmstate pull 2118 0 None open [nmstate-2.0] fix ovs lag port options 2022-11-24 14:15:55 UTC
Red Hat Issue Tracker RHELPLAN-140146 0 None None None 2022-11-22 10:30:35 UTC
Red Hat Product Errata RHBA-2023:2190 0 None None None 2023-05-09 07:32:04 UTC

Description Karthik Sundaravel 2022-11-22 10:02:49 UTC
Apply the below json with nmstatectl results in error.
if bond-updelay is removed then the ovs bridge/bonds are created.

json
-----
{                                                                    
    "interfaces": [                                                                                                                            
        {                                                                                                                                      
            "bridge": {                                                                                                                        
                "options": {                                                                                                                  
                    "fail-mode": "standalone",                                                                                                
                    "mcast-snooping-enable": false,                                                                                            
                    "rstp": false,                                                                                                            
                    "stp": false                                                                                                              
                },                                                                                                                            
                "port": [                                                                                                                      
                    {                                                                                                                          
                        "link-aggregation": {                                                                                                  
                            "mode": "active-backup",                                                                                          
                            "bond-updelay": 1000,
                            "port": [                                                                                                          
                                {                                                                                                              
                                    "name": "eno3"                                                                                            
                                },                                                                                                            
                                {                                                                                                              
                                    "name": "eno4"                                                                                            
                                }                                                                                                              
                            ]                                                                                                                  
                        },                                                                                                                    
                        "name": "bond_ov1"                                                                                                    
                    }                                                                                                                          
                ]                                                                                                                              
            },
            "name": "br-ctll",
            "state": "up",
            "type": "ovs-bridge"
        },
        {
            "ethernet": {},
            "ipv4": {
                "dhcp": false,
                "enabled": false
            },
            "ipv6": {
                "autoconf": false,
                "dhcp": false,
                "enabled": false
            },
            "name": "eno3",
            "state": "up",
            "type": "ethernet"
        },
        {
            "ethernet": {},
            "ipv4": {
                "dhcp": false,
                "enabled": false
            },
            "ipv6": {
                "autoconf": false,
                "dhcp": false,
                "enabled": false
            },
            "name": "eno4",
            "state": "up",
            "type": "ethernet"
        }
    ]
}

Error
-------

Traceback (most recent call last):                                                                                                            
  File "/usr/bin/nmstatectl", line 33, in <module>                                                                                            
    sys.exit(load_entry_point('nmstate==2.0.0', 'console_scripts', 'nmstatectl')())                                                            
  File "/usr/lib/python3.9/site-packages/nmstatectl/nmstatectl.py", line 72, in main                          
    return args.func(args)                                                                                                                    
  File "/usr/lib/python3.9/site-packages/nmstatectl/nmstatectl.py", line 338, in apply                                
    ret = _apply_state(                                                                                                                        
  File "/usr/lib/python3.9/site-packages/nmstatectl/nmstatectl.py", line 395, in _apply_state            
    checkpoint = libnmstate.apply(                                                                                                            
  File "/usr/lib/python3.9/site-packages/libnmstate/netapplier.py", line 88, in apply                    
    _apply_ifaces_state(plugins, net_state, verify_change, save_to_disk)                                      
  File "/usr/lib/python3.9/site-packages/libnmstate/netapplier.py", line 139, in _apply_ifaces_state          
    _verify_change(plugins, net_state)                                                                                                        
  File "/usr/lib/python3.9/site-packages/libnmstate/netapplier.py", line 154, in _verify_change            
    net_state.verify(current_state)                                                                                                            
  File "/usr/lib/python3.9/site-packages/libnmstate/net_state.py", line 86, in verify                          
    self._ifaces.verify(current_state.get(Interface.KEY))                                                                                      
  File "/usr/lib/python3.9/site-packages/libnmstate/ifaces/ifaces.py", line 653, in verify                    
    raise NmstateVerificationError(                                                                                                            
libnmstate.error.NmstateVerificationError:                                                                                                    
desired                                                                                                                                        
=======
---                                                                                                                                   [46/1980]
name: br-ctll                                                                                                                                  
type: ovs-bridge
state: up
bridge:
  options:
    fail-mode: standalone
    mcast-snooping-enable: false
    rstp: false
    stp: false
  port:
  - name: bond_ov1
    link-aggregation:
      bond-updelay: 1000
      mode: active-backup
      port:
      - name: eno3
      - name: eno4
 
current
=======
---
---
name: br-ctll
type: ovs-bridge
state: up
bridge:
  options:
    datapath: null
    fail-mode: standalone
    mcast-snooping-enable: false
    rstp: false
    stp: false
  port:
  - name: bond_ov1
    link-aggregation:
      mode: active-backup
      port:
      - name: eno3
      - name: eno4
ipv4:
  enabled: false
ipv6:
  enabled: false
lldp:
  enabled: false
ovs-db:
  external_ids: {}
 
difference
==========
--- desired
+++ current
@@ -4,6 +4,7 @@
 state: up
 bridge:
   options:
+    datapath: null
     fail-mode: standalone
     mcast-snooping-enable: false
     rstp: false
@@ -11,8 +12,15 @@
   port:
   - name: bond_ov1
     link-aggregation:
-      bond-updelay: 1000
       mode: active-backup
       port:
       - name: eno3
       - name: eno4
+ipv4:
+  enabled: false
+ipv6:
+  enabled: false
+lldp:
+  enabled: false
+ovs-db:
+  external_ids: {}


Version-Release number of selected component (if applicable):

[root@dell-r640-oss-14 ~]# nmstatectl --version
2.0.0
[root@dell-r640-oss-14 ~]# nmcli -v
nmcli tool, version 1.39.10-1.el9

Comment 8 Mingyu Shi 2022-12-15 05:01:45 UTC
Verified with:
nmstate-2.2.2-0.alpha.20221201.el9.x86_64
NetworkManager-1.41.5-1.el9.x86_64
openvswitch2.15-2.15.0-76.el9fdp.x86_64
Linux dell-per740-80.rhts.eng.pek2.redhat.com 5.14.0-202.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Nov 28 08:49:47 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
DISTRO=RHEL-9.2.0-20221129.2

Comment 10 errata-xmlrpc 2023-05-09 07:31:50 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-2023:2190


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