Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 2203140

Summary: [ovs bonding]bond port allow input negative integer
Product: Red Hat Enterprise Linux Fast Datapath Reporter: mhou <mhou>
Component: openvswitch3.1Assignee: Mike Pattrick <mpattric>
Status: CLOSED DUPLICATE QA Contact: mhou <mhou>
Severity: high Docs Contact:
Priority: unspecified    
Version: RHEL 9.0CC: ctrautma, fbaudin, fleitner, jhsiao, kzhang, mhou, msantana, qding, ralongi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-11 19:10:55 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:

Description mhou 2023-05-11 10:12:26 UTC
Description of problem:
configure bond-downdelay=-1 and bond-updelay=-1 to a bond port. Use ovs-vsctl list port and ovs-appctl bond/show to check the settings of these two parameters.

Version-Release number of selected component (if applicable):
kernel version: 5.14.0-302.el9.x86_64
openvswitch version: openvswitch3.1-3.1.0-14.el9fdp.x86_64

How reproducible: 100%


Steps to Reproduce:
1. configure ovs
ovs-vsctl set Open_vSwitch . other_config={}
ovs-vsctl --if-exists del-br bondbridge
ovs-vsctl --may-exist add-br bondbridge
ovs-vsctl add-bond bondbridge active-backup ens4f0 ens4f1 lacp=active bond_mode=active-backup  -- set Interface ens4f0 mtu_request=9000  -- set Interface ens4f1 mtu_request=9000  -- set Port active-backup  bond-downdelay=-1 bond-updelay=-1

2. check bondport status from ovs-appctl
# ovs-appctl bond/show
---- active-backup ----
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
lb_output action: disabled, bond-id: -1
updelay: 0 ms
downdelay: 0 ms
lacp_status: negotiated
lacp_fallback_ab: false
active-backup primary: <none>
active member mac: 3c:fd:fe:bd:1c:a5(ens4f1)

member ens4f0: enabled
  may_enable: true

member ens4f1: enabled
  active member
  may_enable: true


3. check port status from ovs-vsctl
# ovs-vsctl list port active-backup
_uuid               : 6b827197-8a68-4854-aa62-9d4f7ebb735e
bond_active_slave   : "3c:fd:fe:bd:1c:a5"
bond_downdelay      : -1
bond_fake_iface     : false
bond_mode           : active-backup
bond_updelay        : -1
cvlans              : []
external_ids        : {}
fake_bridge         : false
interfaces          : [10808a5b-5847-4588-8ad8-0fd8cb126c66, e80db716-1ae5-4cfe-8e3f-08036e78a65b]
lacp                : active
mac                 : []
name                : active-backup
other_config        : {}
protected           : false
qos                 : []
rstp_statistics     : {}
rstp_status         : {}
statistics          : {}
status              : {}
tag                 : []
trunks              : []
vlan_mode           : []


Actual results:
1. Bondport can pass negative numbers to bond-downdelay and bond-updelay
2. from ovs-vsctl list port, check the bond-downdelay and bond-updelay is -1.
3. from ovs-appctl, check the downdelay and updelay is 0.

Expected results:
From QE side, the negative int numbers can't assign to bond-downdelay and bond-updelay.

Additional info:

Comment 1 mhou 2023-05-25 07:59:34 UTC
Hello Michael 

Should this bug DUP of https://bugzilla.redhat.com/show_bug.cgi?id=1990130?

Comment 2 Flavio Leitner 2024-03-11 19:10:55 UTC

*** This bug has been marked as a duplicate of bug 1990130 ***

Comment 3 Red Hat Bugzilla 2024-07-10 04:25:08 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days