Bug 2151455

Summary: [RFE] Support modifying `other_config` for OVS bridge and bond
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: NetworkManagerAssignee: Thomas Haller <thaller>
Status: CLOSED ERRATA QA Contact: Vladimir Benes <vbenes>
Severity: medium Docs Contact:
Priority: high    
Version: 9.1CC: bgalvani, lrintel, rkhan, sfaye, sukulkar, till, vbenes
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 9.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-1.41.8-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:17:33 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:    
Bug Blocks: 2145183    

Description Gris Ge 2022-12-07 07:51:29 UTC
Description of problem:

The ovs-bond has certain parameters that needs to be configured via other-config [1].

The expected output for ovs-bond would be

[root@dell-r640-oss-14 ~]# sudo ovs-vsctl list port
_uuid               : b23fcf87-b175-4532-a42c-7f8c22811496
bond_active_slave   : "e4:43:4b:5c:96:82"
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : balance-slb
bond_updelay        : 0
cvlans              : []
external_ids        : {NM.connection.uuid="98b3bcbf-7be6-4eae-ac31-9738fe309b2a"}
fake_bridge         : false
interfaces          : [4f598dfb-acb1-4a3d-a7fb-196e59ed40f1, 7c501de1-eb59-4f2c-b21d-0dd212d32fef]
lacp                : off
mac                 : []
name                : ovs-bond1
other_config        : {bond-miimon-interval="100"}
protected           : false
qos                 : []
rstp_statistics     : {}
rstp_status         : {}
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []


Also its required for Bridges Table, as we have a need to set the "other_config : mac-table-size" for the bridge.
So IMHO the ovs-db object shall be present at global level, bridge level and port level. The BZ description needs this refinement.

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html/director_installation_and_usage/assembly_configuring-overcloud-networking_installing-director-on-the-undercloud#ref_open-vswitch-ovs-bonding-options_network-interface-bonding


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Gris Ge 2022-12-07 07:55:04 UTC
The manpage of `ovs-vswitchd.conf.db` indicate the `other_config` is `map of string-string pairs`, hence I would like to suggest NetworkManager support arbitrary `other_config` and let OVS daemon validate it.

Comment 7 errata-xmlrpc 2023-05-09 08:17:33 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 (NetworkManager 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:2485