Bug 2165501 - [OVN] Hardware offloaded QoS implementation (min-bw and max-bw, egress direction)
Summary: [OVN] Hardware offloaded QoS implementation (min-bw and max-bw, egress direct...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ga
: 17.1
Assignee: Rodolfo Alonso
QA Contact: Miguel Angel Nieto
URL:
Whiteboard:
Depends On: 2165497
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-30 09:45 UTC by Rodolfo Alonso
Modified: 2023-08-16 01:14 UTC (History)
8 users (show)

Fixed In Version: openstack-neutron-18.6.1-1.20230403130911.0ce0035.el9ost
Doc Type: Enhancement
Doc Text:
Starting with Red Hat OpenStack Platform (RHOSP) 17.1, in ML2/OVN deployments, you can enable minimum bandwidth and bandwidth limit egress policies for hardware offloaded ports. You cannot enable ingress policies for hardware offloaded ports. For more information, see link:{defaultURL}/networking_with_rhosp/config-qos-policies_rhosp-network#config-network-service-qos-policies_config-qos-policies[Configuring the Networking service for QoS policies].
Clone Of: 2165497
Environment:
Last Closed: 2023-08-16 01:13:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-21873 0 None None None 2023-01-30 09:46:09 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:14:10 UTC

Comment 8 Miguel Angel Nieto 2023-05-18 09:20:52 UTC
Tested max_qos and min_qos sucessfully

1. Modify configuration manually (tripleo patches are not ready yet)
[DEFAULT]
hwol_qos_enabled = True

[ovn]
ovn_nb_connection=tcp:10.10.170.159:6641,tcp:10.10.170.113:6641,tcp:10.10.170.125:6641

2. Run testcases
nfv_tempest_plugin.tests.scenario.test_nfv_sriov_usecases.TestSriovScenarios.test_sriov_min_qos
nfv_tempest_plugin.tests.scenario.test_nfv_sriov_usecases.TestSriovScenarios.test_sriov_max_qos

min_qos
(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy show 503cc350-d248-40bd-8077-b4f7f34ee99a
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                                                                                                                                                                                                                            |
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                                                                                                                                                                                                                  |
| id          | 503cc350-d248-40bd-8077-b4f7f34ee99a                                                                                                                                                                                                                                                                                                                                                             |
| is_default  | False                                                                                                                                                                                                                                                                                                                                                                                            |
| name        | tempest-qos-policy-1980742071                                                                                                                                                                                                                                                                                                                                                                    |
| project_id  | be7155bc1ac34af99d432cfe4c7efb4f                                                                                                                                                                                                                                                                                                                                                                 |
| rules       | [{'max_kbps': 16500000, 'max_burst_kbps': 16500000, 'direction': 'egress', 'id': '5e54213e-0e5d-4f0b-9a3c-d32e3b8ef01b', 'qos_policy_id': '503cc350-d248-40bd-8077-b4f7f34ee99a', 'type': 'bandwidth_limit'}, {'min_kbps': 15000000, 'direction': 'egress', 'id': '5de47960-3986-422a-80e5-ddcaa22abdbf', 'qos_policy_id': '503cc350-d248-40bd-8077-b4f7f34ee99a', 'type': 'minimum_bandwidth'}] |
| shared      | False                                                                                                                                                                                                                                                                                                                                                                                            |
| tags        | []                                                                                                                                                                                                                                                                                                                                                                                               |
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

3: enp4s0f1np1: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether 04:3f:72:b8:be:f6 brd ff:ff:ff:ff:ff:ff permaddr 04:3f:72:b8:be:f7
    vf 0     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 1     link/ether fa:16:3e:a1:05:43 brd ff:ff:ff:ff:ff:ff, tx rate 16500 (Mbps), max_tx_rate 16500Mbps, min_tx_rate 15000Mbps, spoof checking off, link-state disable, trust off, query_rss off

port with min_qos
[  5]   0.00-54.06  sec   104 GBytes  16.5 Gbits/sec                  receiver

port without qos policy
[  5]   0.00-53.11  sec  21.7 GBytes  3.51 Gbits/sec                  receiver


max_qos
(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy show 9e7a0840-da78-4a48-b92d-b909b2000445
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                                       |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                             |
| id          | 9e7a0840-da78-4a48-b92d-b909b2000445                                                                                                                                                                        |
| is_default  | False                                                                                                                                                                                                       |
| name        | tempest-qos-policy-1351705535                                                                                                                                                                               |
| project_id  | f4d2352d4ac54ae9aa10b63e218872e8                                                                                                                                                                            |
| rules       | [{'max_kbps': 4000000, 'max_burst_kbps': 4000000, 'direction': 'egress', 'id': '3c8af818-44cd-4b0d-95cf-17b7e74522e9', 'qos_policy_id': '9e7a0840-da78-4a48-b92d-b909b2000445', 'type': 'bandwidth_limit'}] |
| shared      | False                                                                                                                                                                                                       |
| tags        | []                                                                                                                                                                                                          |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy show b3a0b577-1940-4e3a-a7f8-f3039f70d51e
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                                       |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                             |
| id          | b3a0b577-1940-4e3a-a7f8-f3039f70d51e                                                                                                                                                                        |
| is_default  | False                                                                                                                                                                                                       |
| name        | tempest-qos-policy-1125229595                                                                                                                                                                               |
| project_id  | f4d2352d4ac54ae9aa10b63e218872e8                                                                                                                                                                            |
| rules       | [{'max_kbps': 9000000, 'max_burst_kbps': 4000000, 'direction': 'egress', 'id': 'a578d8ac-05f5-4ff2-af53-aeff1ef199a1', 'qos_policy_id': 'b3a0b577-1940-4e3a-a7f8-f3039f70d51e', 'type': 'bandwidth_limit'}] |
| shared      | False                                                                                                                                                                                                       |
| tags        | []                                                                                                                                                                                                          |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

3: enp4s0f1np1: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether 04:3f:72:b8:be:f6 brd ff:ff:ff:ff:ff:ff permaddr 04:3f:72:b8:be:f7
    vf 0     link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 1     link/ether fa:16:3e:c9:d7:4d brd ff:ff:ff:ff:ff:ff, tx rate 4000 (Mbps), max_tx_rate 4000Mbps, spoof checking off, link-state disable, trust off, query_rss off
    vf 2     link/ether fa:16:3e:b7:d9:7e brd ff:ff:ff:ff:ff:ff, tx rate 9000 (Mbps), max_tx_rate 9000Mbps, spoof checking off, link-state disable, trust off, query_rss off

port with first policy
[  5]   0.00-53.88  sec  25.5 GBytes  4.07 Gbits/sec                  receiver

port with second policy
[  5]   0.00-53.06  sec  55.9 GBytes  9.04 Gbits/sec                  receiver

Comment 9 Miguel Angel Nieto 2023-05-22 07:39:15 UTC
Feature is working and it is verified, the only pending part is tripleo configuration. I opened this bug for that
https://bugzilla.redhat.com/show_bug.cgi?id=2208948

Comment 29 errata-xmlrpc 2023-08-16 01:13:42 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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/RHEA-2023:4577


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