Bug 2217501 - [17.1][HWOFFLOAD][ML2-OVS] Max qos not working then the port is used as parent port in vlan trunk
Summary: [17.1][HWOFFLOAD][ML2-OVS] Max qos not working then the port is used as paren...
Keywords:
Status: NEW
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Greg Rakauskas
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-26 13:11 UTC by Miguel Angel Nieto
Modified: 2023-07-04 10:05 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-26056 0 None None None 2023-06-26 13:13:03 UTC

Description Miguel Angel Nieto 2023-06-26 13:11:09 UTC
Description of problem:

Max QOS not working if the port in which max qos is configured is used for vlan trunk. 
Scenario used is HWOFFLOAD Connect X5 nics and ML2-OVS.

If I remove vlan trunk from configuration, then max qos is working fine.

servers
(overcloud) [stack@undercloud-0 ~]$ openstack server list --all-projects --long
+--------------------------------------+---------------------------------------------+--------+------------+-------------+-----------------------------------------------------+----------------------------------------------+--------------------------------------+--------------------+-------------------+-----------------------------------+------------+
| ID                                   | Name                                        | Status | Task State | Power State | Networks                                            | Image Name                                   | Image ID                             | Flavor             | Availability Zone | Host                              | Properties |
+--------------------------------------+---------------------------------------------+--------+------------+-------------+-----------------------------------------------------+----------------------------------------------+--------------------------------------+--------------------+-------------------+-----------------------------------+------------+
| 2f076995-547b-4313-86c9-8493553c45b4 | tempest-TestSriovScenarios-server-748143694 | ACTIVE | None       | Running     | mellanox-vxlan-provider=10.46.228.40, 20.20.220.163 | rhel-guest-image-nfv-2-8.7-1660.x86_64.qcow2 | 62330a8a-6890-4206-91c3-b797b7424305 | nfv_qe_base_flavor | nova              | computehwoffload-r730.localdomain |            |
| 9c8121c0-febd-46c9-b4ef-dcebfbb3bfb3 | tempest-TestSriovScenarios-server-753745858 | ACTIVE | None       | Running     | mellanox-vxlan-provider=10.46.228.36, 20.20.220.115 | rhel-guest-image-nfv-2-8.7-1660.x86_64.qcow2 | 62330a8a-6890-4206-91c3-b797b7424305 | nfv_qe_base_flavor | nova              | computehwoffload-r740.localdomain |            |
| fb30de95-f8ad-46fa-a25f-920e84982783 | tempest-TestSriovScenarios-server-22101129  | ACTIVE | None       | Running     | mellanox-vxlan-provider=10.46.228.41, 20.20.220.124 | rhel-guest-image-nfv-2-8.7-1660.x86_64.qcow2 | 62330a8a-6890-4206-91c3-b797b7424305 | nfv_qe_base_flavor | nova              | computehwoffload-r730.localdomain |            |
+--------------------------------------+---------------------------------------------+--------+------------+-------------+-----------------------------------------------------+----------------------------------------------+--------------------------------------+--------------------+-------------------+-----------------------------------+------------+

Second and Third vms have qos enabled
(overcloud) [stack@undercloud-0 ~]$ openstack port show 6c962a7d-2b51-445e-9390-e95051e174cf --fit-width
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                 |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                    |
| allowed_address_pairs   |                                                                                                                                                                                       |
| binding_host_id         | computehwoffload-r740.localdomain                                                                                                                                                     |
| binding_profile         | capabilities='['switchdev']', pci_slot='0000:18:01.1', pci_vendor_info='15b3:1018', physical_network=                                                                                 |
| binding_vif_details     | bridge_name='tbr-3022e867-5', connectivity='l2', datapath_type='system', ovs_hybrid_plug='False', port_filter='True'                                                                  |
| binding_vif_type        | ovs                                                                                                                                                                                   |
| binding_vnic_type       | direct                                                                                                                                                                                |
| created_at              | 2023-06-26T12:46:46Z                                                                                                                                                                  |
| data_plane_status       | None                                                                                                                                                                                  |
| description             |                                                                                                                                                                                       |
| device_id               | 9c8121c0-febd-46c9-b4ef-dcebfbb3bfb3                                                                                                                                                  |
| device_owner            | compute:nova                                                                                                                                                                          |
| device_profile          | None                                                                                                                                                                                  |
| dns_assignment          | None                                                                                                                                                                                  |
| dns_domain              | None                                                                                                                                                                                  |
| dns_name                | None                                                                                                                                                                                  |
| extra_dhcp_opts         |                                                                                                                                                                                       |
| fixed_ips               | ip_address='20.20.220.115', subnet_id='49e52da0-6a61-4c78-b4aa-e171b6bf2383'                                                                                                          |
| id                      | 6c962a7d-2b51-445e-9390-e95051e174cf                                                                                                                                                  |
| ip_allocation           | None                                                                                                                                                                                  |
| mac_address             | fa:16:3e:8a:70:81                                                                                                                                                                     |
| name                    | tempest-port-smoke-1884617834                                                                                                                                                         |
| network_id              | 786c866b-6fbf-43e3-939d-0e091531a97d                                                                                                                                                  |
| numa_affinity_policy    | None                                                                                                                                                                                  |
| port_security_enabled   | False                                                                                                                                                                                 |
| project_id              | 7d96b2a3baa6480791dbe112a4c83365                                                                                                                                                      |
| propagate_uplink_status | None                                                                                                                                                                                  |
| qos_network_policy_id   | None                                                                                                                                                                                  |
| qos_policy_id           | 06b28fb5-a583-4294-bd6e-3679b1b03a5a                                                                                                                                                  |
| resource_request        | None                                                                                                                                                                                  |
| revision_number         | 5                                                                                                                                                                                     |
| security_group_ids      |                                                                                                                                                                                       |
| status                  | ACTIVE                                                                                                                                                                                |
| tags                    |                                                                                                                                                                                       |
| trunk_details           | {'trunk_id': '3022e867-5608-47e1-8864-46e33dc153f0', 'sub_ports': [{'segmentation_id': 146, 'segmentation_type': 'vlan', 'port_id': '37407e1c-a338-45fc-9ef5-c8b3c28c9f4a',           |
|                         | 'mac_address': 'fa:16:3e:df:60:20'}]}                                                                                                                                                 |
| updated_at              | 2023-06-26T12:48:28Z                                                                                                                                                                  |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

(overcloud) [stack@undercloud-0 ~]$ openstack port show 3053f3b0-d3fb-437c-9a44-b9eca24171cd --fit-width
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                   | Value                                                                                                                                                                                 |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up          | UP                                                                                                                                                                                    |
| allowed_address_pairs   |                                                                                                                                                                                       |
| binding_host_id         | computehwoffload-r730.localdomain                                                                                                                                                     |
| binding_profile         | capabilities='['switchdev']', pci_slot='0000:04:00.3', pci_vendor_info='15b3:1018', physical_network=                                                                                 |
| binding_vif_details     | bridge_name='tbr-c169f06a-6', connectivity='l2', datapath_type='system', ovs_hybrid_plug='False', port_filter='True'                                                                  |
| binding_vif_type        | ovs                                                                                                                                                                                   |
| binding_vnic_type       | direct                                                                                                                                                                                |
| created_at              | 2023-06-26T12:46:45Z                                                                                                                                                                  |
| data_plane_status       | None                                                                                                                                                                                  |
| description             |                                                                                                                                                                                       |
| device_id               | fb30de95-f8ad-46fa-a25f-920e84982783                                                                                                                                                  |
| device_owner            | compute:nova                                                                                                                                                                          |
| device_profile          | None                                                                                                                                                                                  |
| dns_assignment          | None                                                                                                                                                                                  |
| dns_domain              | None                                                                                                                                                                                  |
| dns_name                | None                                                                                                                                                                                  |
| extra_dhcp_opts         |                                                                                                                                                                                       |
| fixed_ips               | ip_address='20.20.220.124', subnet_id='49e52da0-6a61-4c78-b4aa-e171b6bf2383'                                                                                                          |
| id                      | 3053f3b0-d3fb-437c-9a44-b9eca24171cd                                                                                                                                                  |
| ip_allocation           | None                                                                                                                                                                                  |
| mac_address             | fa:16:3e:c0:6d:00                                                                                                                                                                     |
| name                    | tempest-port-smoke-49390198                                                                                                                                                           |
| network_id              | 786c866b-6fbf-43e3-939d-0e091531a97d                                                                                                                                                  |
| numa_affinity_policy    | None                                                                                                                                                                                  |
| port_security_enabled   | False                                                                                                                                                                                 |
| project_id              | 7d96b2a3baa6480791dbe112a4c83365                                                                                                                                                      |
| propagate_uplink_status | None                                                                                                                                                                                  |
| qos_network_policy_id   | None                                                                                                                                                                                  |
| qos_policy_id           | 45d83f85-9999-496d-bb69-e92a77340e94                                                                                                                                                  |
| resource_request        | None                                                                                                                                                                                  |
| revision_number         | 5                                                                                                                                                                                     |
| security_group_ids      |                                                                                                                                                                                       |
| status                  | ACTIVE                                                                                                                                                                                |
| tags                    |                                                                                                                                                                                       |
| trunk_details           | {'trunk_id': 'c169f06a-63f8-4e71-8156-624b36dcbecb', 'sub_ports': [{'segmentation_id': 146, 'segmentation_type': 'vlan', 'port_id': '85c1753c-701b-48ca-b5ff-5cbcfe28f732',           |
|                         | 'mac_address': 'fa:16:3e:3c:db:cb'}]}                                                                                                                                                 |
| updated_at              | 2023-06-26T12:48:27Z                                                                                                                                                                  |
+-------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

networks
(overcloud) [stack@undercloud-0 ~]$ openstack network show mellanox-vxlan-provider
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2023-06-26T12:46:44Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 786c866b-6fbf-43e3-939d-0e091531a97d |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | None                                 |
| is_vlan_transparent       | None                                 |
| mtu                       | 8950                                 |
| name                      | mellanox-vxlan-provider              |
| port_security_enabled     | False                                |
| project_id                | 7d96b2a3baa6480791dbe112a4c83365     |
| provider:network_type     | vxlan                                |
| provider:physical_network | None                                 |
| provider:segmentation_id  | 59104                                |
| qos_policy_id             | None                                 |
| revision_number           | 2                                    |
| router:external           | Internal                             |
| segments                  | None                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 49e52da0-6a61-4c78-b4aa-e171b6bf2383 |
| tags                      |                                      |
| updated_at                | 2023-06-26T12:46:44Z                 |
+---------------------------+--------------------------------------+

(overcloud) [stack@undercloud-0 ~]$ openstack network show trunk_network_2
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | UP                                   |
| availability_zone_hints   |                                      |
| availability_zones        | nova                                 |
| created_at                | 2023-06-26T12:46:44Z                 |
| description               |                                      |
| dns_domain                | None                                 |
| id                        | 1aa3179f-5d64-4eeb-a9df-d6189daae3f1 |
| ipv4_address_scope        | None                                 |
| ipv6_address_scope        | None                                 |
| is_default                | None                                 |
| is_vlan_transparent       | None                                 |
| mtu                       | 8492                                 |
| name                      | trunk_network_2                      |
| port_security_enabled     | False                                |
| project_id                | 7d96b2a3baa6480791dbe112a4c83365     |
| provider:network_type     | vlan                                 |
| provider:physical_network | mx-network                           |
| provider:segmentation_id  | 146                                  |
| qos_policy_id             | None                                 |
| revision_number           | 2                                    |
| router:external           | Internal                             |
| segments                  | None                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | d7dbed03-7098-4e92-a8a2-53f185716957 |
| tags                      |                                      |
| updated_at                | 2023-06-26T12:46:45Z                 |
+---------------------------+--------------------------------------+

trunk
(overcloud) [stack@undercloud-0 ~]$ openstack network trunk show 3022e867-5608-47e1-8864-46e33dc153f0
+-----------------+-------------------------------------------------------------------------------------------------+
| Field           | Value                                                                                           |
+-----------------+-------------------------------------------------------------------------------------------------+
| admin_state_up  | UP                                                                                              |
| created_at      | 2023-06-26T12:46:53Z                                                                            |
| description     |                                                                                                 |
| id              | 3022e867-5608-47e1-8864-46e33dc153f0                                                            |
| name            |                                                                                                 |
| port_id         | 6c962a7d-2b51-445e-9390-e95051e174cf                                                            |
| project_id      | 83a4ac41116348f3875d1e9398f06828                                                                |
| revision_number | 3                                                                                               |
| status          | ACTIVE                                                                                          |
| sub_ports       | port_id='37407e1c-a338-45fc-9ef5-c8b3c28c9f4a', segmentation_id='146', segmentation_type='vlan' |
| tags            | []                                                                                              |
| tenant_id       | 83a4ac41116348f3875d1e9398f06828                                                                |
| updated_at      | 2023-06-26T12:47:31Z                                                                            |
+-----------------+-------------------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack network trunk show 9d588894-1ba2-41cf-8796-ff1e84515fef
+-----------------+-------------------------------------------------------------------------------------------------+
| Field           | Value                                                                                           |
+-----------------+-------------------------------------------------------------------------------------------------+
| admin_state_up  | UP                                                                                              |
| created_at      | 2023-06-26T12:46:54Z                                                                            |
| description     |                                                                                                 |
| id              | 9d588894-1ba2-41cf-8796-ff1e84515fef                                                            |
| name            |                                                                                                 |
| port_id         | 018890e2-cd70-4c56-93e1-665092bcec63                                                            |
| project_id      | 83a4ac41116348f3875d1e9398f06828                                                                |
| revision_number | 3                                                                                               |
| status          | ACTIVE                                                                                          |
| sub_ports       | port_id='99eaebde-db7e-4a67-86b2-da964ad9095b', segmentation_id='146', segmentation_type='vlan' |
| tags            | []                                                                                              |
| tenant_id       | 83a4ac41116348f3875d1e9398f06828                                                                |
| updated_at      | 2023-06-26T12:47:45Z                                                                            |
+-----------------+-------------------------------------------------------------------------------------------------+
(overcloud) [stack@undercloud-0 ~]$ openstack network trunk show c169f06a-63f8-4e71-8156-624b36dcbecb
+-----------------+-------------------------------------------------------------------------------------------------+
| Field           | Value                                                                                           |
+-----------------+-------------------------------------------------------------------------------------------------+
| admin_state_up  | UP                                                                                              |
| created_at      | 2023-06-26T12:46:53Z                                                                            |
| description     |                                                                                                 |
| id              | c169f06a-63f8-4e71-8156-624b36dcbecb                                                            |
| name            |                                                                                                 |
| port_id         | 3053f3b0-d3fb-437c-9a44-b9eca24171cd                                                            |
| project_id      | 83a4ac41116348f3875d1e9398f06828                                                                |
| revision_number | 3                                                                                               |
| status          | ACTIVE                                                                                          |
| sub_ports       | port_id='85c1753c-701b-48ca-b5ff-5cbcfe28f732', segmentation_id='146', segmentation_type='vlan' |
| tags            | []                                                                                              |
| tenant_id       | 83a4ac41116348f3875d1e9398f06828                                                                |
| updated_at      | 2023-06-26T12:47:15Z                                                                            |
+-----------------+-------------------------------------------------------------------------------------------------+

qos
(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy show 06b28fb5-a583-4294-bd6e-3679b1b03a5a --fit-width
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                             |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                   |
| id          | 06b28fb5-a583-4294-bd6e-3679b1b03a5a                                                                                                                                                              |
| is_default  | False                                                                                                                                                                                             |
| name        | tempest-qos-policy-761096903                                                                                                                                                                      |
| project_id  | 83a4ac41116348f3875d1e9398f06828                                                                                                                                                                  |
| rules       | [{'max_kbps': 9000000, 'max_burst_kbps': 4000000, 'direction': 'egress', 'id': 'd9aa4943-fa1c-417d-af05-0aa9271711d5', 'qos_policy_id': '06b28fb5-a583-4294-bd6e-3679b1b03a5a', 'type':           |
|             | 'bandwidth_limit'}]                                                                                                                                                                               |
| shared      | False                                                                                                                                                                                             |
| tags        | []                                                                                                                                                                                                |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

(overcloud) [stack@undercloud-0 ~]$ openstack network qos policy show 45d83f85-9999-496d-bb69-e92a77340e94 --fit-width
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                             |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                   |
| id          | 45d83f85-9999-496d-bb69-e92a77340e94                                                                                                                                                              |
| is_default  | False                                                                                                                                                                                             |
| name        | tempest-qos-policy-1184827083                                                                                                                                                                     |
| project_id  | 83a4ac41116348f3875d1e9398f06828                                                                                                                                                                  |
| rules       | [{'max_kbps': 4000000, 'max_burst_kbps': 4000000, 'direction': 'egress', 'id': '922e4bb0-fabe-465c-8578-db643b03439e', 'qos_policy_id': '45d83f85-9999-496d-bb69-e92a77340e94', 'type':           |
|             | 'bandwidth_limit'}]                                                                                                                                                                               |
| shared      | False                                                                                                                                                                                             |
| tags        | []                                                                                                                                                                                                |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

In the vm without qos ports, it is run iperf in the following way
iperf3 -s -B 20.20.220.163 -p 5101
iperf3 -s -B 20.20.220.163 -p 5102

In the other vms, it is called iperf in the following way (one iperf per vm)
iperf3 -c 20.20.220.163 -T s2 -p 5101 -t  60
iperf3 -c 20.20.220.163 -T s2 -p 5102 -t  60

These are iperf server stats collected:
port 5101: [  5]   0.00-51.87  sec   104 GBytes  17.2 Gbits/sec
port 5102: [  5]   0.00-50.86  sec   106 GBytes  17.8 Gbits/sec

So, throughput for both port were the same and higher than the configured value

compute1
10: enp4s0f0np0: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether ec:0d:9a:7d:7d:2a brd ff:ff:ff:ff:ff:ff
    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:c0:6d:00 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 2     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 3     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 4     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 5     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 6     link/ether 62:ae:50:c7:ce:c4 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 7     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 8     link/ether fa:16:3e:68:b2:2a brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 9     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


compute2
7: ens6f0np0: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether 98:03:9b:9d:73:00 brd ff:ff:ff:ff:ff:ff
    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 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 2     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 3     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 4     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 5     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 6     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 7     link/ether fa:16:3e:8a:70:81 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 8     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 9     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
    altname enp24s0f0np0


Version-Release number of selected component (if applicable):
RHOS-17.1-RHEL-9-20230621.n.1

How reproducible:
Deploy ml2-ovs offload templates
run nfv_tempest_plugin.tests.scenario.test_nfv_sriov_usecases.TestSriovScenarios.test_sriov_max_qos
When configuring networks, configure vlan trunk. Parent network can be either vlan or vxlan (reproduced with both of them)



Actual results:
Max qos not working when configuring vlan trunk


Expected results:
Max qos should work even if I configure vlan trunk

Additional info:

Comment 1 Miguel Angel Nieto 2023-06-26 13:25:38 UTC
If i remove vlan trunk from config:
port 5102: [  5]   0.00-51.02  sec  51.9 GBytes  8.75 Gbits/sec                  receiver
port 5101: [  5]   0.00-52.10  sec  26.4 GBytes  4.35 Gbits/sec                  receiver

However, even when it works, i do not see qos configured on vfs
compute1
10: enp4s0f0np0: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether ec:0d:9a:7d:7d:2a brd ff:ff:ff:ff:ff:ff
    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:2a:fc:6e brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 2     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 3     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 4     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 5     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 6     link/ether 62:ae:50:c7:ce:c4 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 7     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 8     link/ether fa:16:3e:45:79:a6 brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 9     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


compute2
7: ens6f0np0: <BROADCAST,MULTICAST,PROMISC,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master mx-bond state UP mode DEFAULT group default qlen 1000
    link/ether 98:03:9b:9d:73:00 brd ff:ff:ff:ff:ff:ff
    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 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 2     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 3     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 4     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 5     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 6     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 7     link/ether fa:16:3e:16:18:0b brd ff:ff:ff:ff:ff:ff, spoof checking off, link-state disable, trust off, query_rss off
    vf 8     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 9     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
    altname enp24s0f0np0

Comment 2 Miguel Angel Nieto 2023-06-26 13:54:39 UTC
min_qos not working either in any scenario (with or without vlan trunk)
If i try to configure min_qos in vxlan i get this error
Details: {'type': 'QosRuleNotSupported', 'message': 'Rule minimum_bandwidth is not supported by port 5d4f7f88-b306-4e34-93cc-76a0136c02d5', 'detail': ''}

With vlan i am able to configure, but it is not working. I have 3 vms in the same compute (2 for sending traffic and 1 for receive) and configure this in the port of 1 compute of the senders 
(overcloud) [stack@undercloud-0 ~]$ openstack  network qos policy show 5c246c80-3c49-4580-a98b-eac7e894f32e
The option [tenant_id] has been deprecated. Please avoid using it.
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field       | Value                                                                                                                                                                                                                                                                                                                                                                                            |
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| description |                                                                                                                                                                                                                                                                                                                                                                                                  |
| id          | 5c246c80-3c49-4580-a98b-eac7e894f32e                                                                                                                                                                                                                                                                                                                                                             |
| is_default  | False                                                                                                                                                                                                                                                                                                                                                                                            |
| name        | tempest-qos-policy-2003094828                                                                                                                                                                                                                                                                                                                                                                    |
| project_id  | 2bf1ee78f5754ab184348e012c3cdcb0                                                                                                                                                                                                                                                                                                                                                                 |
| rules       | [{'max_kbps': 16500000, 'max_burst_kbps': 16500000, 'direction': 'egress', 'id': '12f3f958-a072-48a4-bd52-34bfee71e900', 'qos_policy_id': '5c246c80-3c49-4580-a98b-eac7e894f32e', 'type': 'bandwidth_limit'}, {'min_kbps': 15000000, 'direction': 'egress', 'id': 'e610aafe-8564-4ee0-9c24-b7dfa2ec7477', 'qos_policy_id': '5c246c80-3c49-4580-a98b-eac7e894f32e', 'type': 'minimum_bandwidth'}] |
| shared      | False                                                                                                                                                                                                                                                                                                                                                                                            |
| tags        | []                                                                                                                                                                                                                                                                                                                                                                                               |
+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

i get this stats from iperf:
port 5101: [  5]   0.00-52.93  sec  77.2 GBytes  12.5 Gbits/sec                  receiver
port 5102: [  5]   0.00-51.92  sec  78.3 GBytes  13.0 Gbits/sec                  receiver

I had configured 15 mpps in one of the ports

Comment 10 Miguel Angel Nieto 2023-07-04 08:25:38 UTC
Updating the bz title

As commented in https://bugzilla.redhat.com/show_bug.cgi?id=2217501#c1  the feature is not working properly with offload, vfs are not configured properly


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