Bug 2215521 - [ovs-vsctl]ovs is insensitive to other-config or other_config, when configure port table
Summary: [ovs-vsctl]ovs is insensitive to other-config or other_config, when configure...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: openvswitch
Version: RHEL 9.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: Timothy Redaelli
QA Contact: mhou
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-16 10:40 UTC by mhou
Modified: 2023-07-03 16:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-03 16:23:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-2955 0 None None None 2023-06-16 10:42:43 UTC

Description mhou 2023-06-16 10:40:55 UTC
Description of problem:
when configure ovs bond port, Whether you use other-config or other_config, configuration will take effect in bond port.

Version-Release number of selected component (if applicable):
ovs version:openvswitch3.1-3.1.0-24.el9fdp.x86_64

How reproducible: 100%


Steps to Reproduce:
1. configure bond port with other-config
# ovs-vsctl add-bond bondbridge active-backup ens4f1 ens4f0 lacp=active bond_mode=active-backup  -- set Interface ens4f1 mtu_request=9000  -- set Interface ens4f0 mtu_request=9000  -- set Port active-backup  other-config:bond-primary=ens4f0
# ovs-vsctl list port active-backup
_uuid               : 6528b48a-9c49-4104-9789-29d562f65d88
bond_active_slave   : "3c:fd:fe:bd:1c:a4"
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : active-backup
bond_updelay        : 0
cvlans              : []
external_ids        : {}
fake_bridge         : false
interfaces          : [4bc08e27-9a6f-47d6-9f3d-d784a25d54ae, e8b0cfb8-afb4-4356-8351-8d41a90395c1]
lacp                : active
mac                 : []
name                : active-backup
other_config        : {bond-primary=ens4f0}
protected           : false
qos                 : []
rstp_statistics     : {}
rstp_status         : {}
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []

2. configure bond port with other_config
# ovs-vsctl add-bond bondbridge active-backup ens4f1 ens4f0 lacp=active bond_mode=active-backup  -- set Interface ens4f1 mtu_request=9000  -- set Interface ens4f0 mtu_request=9000  -- set Port active-backup  other_config:bond-primary=ens4f0
# ovs-vsctl list port active-backup
_uuid               : d62ad777-2728-4735-b7f1-f907576065b1
bond_active_slave   : "3c:fd:fe:bd:1c:a4"
bond_downdelay      : 0
bond_fake_iface     : false
bond_mode           : active-backup
bond_updelay        : 0
cvlans              : []
external_ids        : {}
fake_bridge         : false
interfaces          : [b802bc19-63cf-4c8b-9911-1cd01248c044, e709e112-1c6f-4223-9527-cdf74efe50f1]
lacp                : active
mac                 : []
name                : active-backup
other_config        : {bond-primary=ens4f0}
protected           : false
qos                 : []
rstp_statistics     : {}
rstp_status         : {}
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []
3.

Actual results:
In some configurations, such as the configuration of ovs bond, the format of other_config does not seem to be unified

Expected results:


Additional info:

Comment 1 Timothy Redaelli 2023-07-03 16:23:41 UTC
By design, OVSDB is insensitive to '-' vs '_' in column/table names, so it will accept either.


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