[OVN] BW limit QoS rules assigned to SR-IOV ports are created on NBDB

Bug #1918702 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Rodolfo Alonso

Bug Description

Description of problem:
When a QoS policy with an egress BW limit rule is assigned to a SR-IOV port (type direct or macvtap), the corresponding rule should be managed by the SR-IOV 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 rule is also applied to the dataplane traffic shaper, which is correct.

Steps to Reproduce:
1) Create qos policy with an egress bw limit rule and assing it to an SRIOV port:
   # openstack network qos policy create p0
   # openstack network qos rule create p0 --type bandwidth-limit --max-kbps 500000000 \
     --max-burst-kbits 40000000
   # openstack port set --qos-policy p0 0917ed75-6362-4522-a468-c3a8c89712fd

2) Check qos ovn nbdb table
   # ovn-nbctl --db=tcp:10.20.1.73:6641 list qos | grep -C5 $qos_uuid

_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

This kind of testing is not available in the Opendev CI because there are not SR-IOV environments.

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1936527

Tags: ovn
Changed in neutron:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
description: updated
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Hongbin Lu (hongbin.lu)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
tags: added: ovn
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.0.0.0rc2

This issue was fixed in the openstack/neutron 18.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.3.2

This issue was fixed in the openstack/neutron 16.3.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 17.1.2

This issue was fixed in the openstack/neutron 17.1.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 19.0.0.0rc1

This issue was fixed in the openstack/neutron 19.0.0.0rc1 release candidate.

Changed in neutron:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.