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 2073462

Summary: Changing rate on meter does not take effect unless ovn-controller is restarted
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Mark Michelson <mmichels>
Component: ovn22.03Assignee: OVN Team <ovnteam>
Status: CLOSED UPSTREAM QA Contact: Jianlin Shi <jishi>
Severity: high Docs Contact:
Priority: high    
Version: FDP 22.CCC: akaris, ctrautma, eelahi, jiji, jishi, lorenzo.bianconi, mblue, mmichels, pparasur, ralongi
Target Milestone: ---   
Target Release: FDP 22.C   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn22.03-22.03.0-9.el9fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1939524 Environment:
Last Closed: 2025-02-10 04:01:10 UTC Type: ---
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: 1939524    
Bug Blocks: 1619266, 2051954    

Comment 3 Jianlin Shi 2022-04-14 08:33:42 UTC
with reproducer in https://bugzilla.redhat.com/show_bug.cgi?id=1939524#c8. verified on ovn22.03-22.03.0-9.el8:

+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=50
++ ovn-nbctl list meter_band
++ awk '/_uuid/{print $3}'
+ band_id=b5b7133d-d5b5-489a-94f5-e355b06281b0
+ for meter in 30 20 10 -1 5
+ ovn-nbctl set meter_band b5b7133d-d5b5-489a-94f5-e355b06281b0 rate=30
+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=30
+ for meter in 30 20 10 -1 5
+ ovn-nbctl set meter_band b5b7133d-d5b5-489a-94f5-e355b06281b0 rate=20
+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=20
+ for meter in 30 20 10 -1 5
+ ovn-nbctl set meter_band b5b7133d-d5b5-489a-94f5-e355b06281b0 rate=10
+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=10
+ for meter in 30 20 10 -1 5
+ ovn-nbctl set meter_band b5b7133d-d5b5-489a-94f5-e355b06281b0 rate=-1
ovn-nbctl: constraint violation: -1 is not in the valid range 1 to 4294967295 (inclusive)
+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=10
+ for meter in 30 20 10 -1 5
+ ovn-nbctl set meter_band b5b7133d-d5b5-489a-94f5-e355b06281b0 rate=5
+ ovn-nbctl --wait=hv sync
+ ovs-ofctl -O OpenFlow15 dump-meters br-int
OFPST_METER_CONFIG reply (OF1.5) (xid=0x2):
meter=1 pktps stats bands=
type=drop rate=5

<=== rate changed

+ exit 0
[root@wsfd-advnetlab16 bz1939524]# rpm -qa | grep -E "openvswitch2.15|ovn22.03"
ovn22.03-22.03.0-9.el8fdp.x86_64
ovn22.03-host-22.03.0-9.el8fdp.x86_64
ovn22.03-central-22.03.0-9.el8fdp.x86_64

Comment 4 Ehsan Elahi 2022-04-18 15:51:47 UTC
Also verified on 
# rpm -qa |grep -E "openvswitch2.16|ovn22.03"
ovn22.03-22.03.0-9.el9fdp.x86_64
ovn22.03-central-22.03.0-9.el9fdp.x86_64
ovn22.03-host-22.03.0-9.el9fdp.x86_64
openvswitch2.16-2.16.0-52.el9fdp.x86_64

Comment 11 Red Hat Bugzilla 2025-02-10 04:01:10 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.