Bug 1951170 - [OVN] BW limit QoS rules assigned to networks with SRIOV ports are created on NBDB
Summary: [OVN] BW limit QoS rules assigned to networks with SRIOV ports are created on...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-networking-ovn
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z9
: 16.1 (Train on RHEL 8.2)
Assignee: Rodolfo Alonso
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On: 2025957
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-19 17:40 UTC by Eduardo Olivares
Modified: 2022-12-07 20:25 UTC (History)
6 users (show)

Fixed In Version: python-networking-ovn-7.3.1-1.20220422083617.4e24f4c.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2025957 (view as bug list)
Environment:
Last Closed: 2022-12-07 20:24:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1925218 0 None None None 2021-04-20 14:46:25 UTC
OpenStack gerrit 787351 0 None MERGED [OVN] External network ports (SR-IOV) QoS is handled by SR-IOV agent 2022-04-22 08:59:07 UTC
Red Hat Issue Tracker OSP-3182 0 None None None 2021-11-17 09:37:02 UTC
Red Hat Product Errata RHBA-2022:8795 0 None None None 2022-12-07 20:25:09 UTC

Description Eduardo Olivares 2021-04-19 17:40:28 UTC
Description of problem:
This bug is similar to BZ1936527. The issue was resolved for qos policies associated to sriov ports, but it fails when the policy is associated to a network instead.

When a QoS policy with an egress BW limit rule is assigned to a network, if an SRIOV port has been created for that network (type direct or macvtap), the corresponding rule should be managed by the sriov agent and should not be added to the OVN NBDB's QoS table.

However, the entry on the QoS table is created for that port, which is wrong.

The bw limit rule is also assigned by the sriov agent, which is correct. The bw limit is correctly applied to the traffic.






Version-Release number of selected component (if applicable):
RHOS-16.1-RHEL-8-20210415.n.0

How reproducible:
100%


Steps to Reproduce:
1) create qos policy with an egress bw limit rule and assing it to an network:
openstack network qos policy create p0
openstack network qos rule create p0 --type bandwidth-limit --max-kbps 500000000 --max-burst-kbits 40000000
openstack network set --qos-policy p0 public
2) check qos ovn nbdb table
podman exec ovn_controller ovn-nbctl --db=tcp:10.20.1.73:6641 list qos | grep -C5 0917ed75-6362-4522-a468-c3a8c89712fd
_uuid               : c2758e23-195e-4efa-8f9f-c057955ba6c3
action              : {}
bandwidth           : {burst=40000000, rate=540000}
direction           : from-lport
external_ids        : {}
match               : "inport == \"0917ed75-6362-4522-a468-c3a8c89712fd\""
priority            : 2002

Comment 9 errata-xmlrpc 2022-12-07 20:24:45 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 (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement advisory), 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-2022:8795


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