The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 2073462 - Changing rate on meter does not take effect unless ovn-controller is restarted
Summary: Changing rate on meter does not take effect unless ovn-controller is restarted
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn22.03
Version: FDP 22.C
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: FDP 22.C
Assignee: OVN Team
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On: 1939524
Blocks: 1619266 2051954
TreeView+ depends on / blocked
 
Reported: 2022-04-08 14:37 UTC by Mark Michelson
Modified: 2024-01-17 05:22 UTC (History)
10 users (show)

Fixed In Version: ovn22.03-22.03.0-9.el9fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1939524
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-1881 0 None None None 2022-04-08 14:51:07 UTC

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


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