Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1704272

Summary: [ovn-ci] test_qos_basic_and_update failed with timeout error
Product: Red Hat OpenStack Reporter: Eran Kuris <ekuris>
Component: python-networking-ovnAssignee: Slawek Kaplonski <skaplons>
Status: CLOSED DUPLICATE QA Contact: Eran Kuris <ekuris>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: abregman, apevec, jlibosva, lhh, lmartins, majopela, scohen, twilson
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-18 13:30:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1546996, 1580542, 1761407, 1851493    
Bug Blocks:    

Description Eran Kuris 2019-04-29 13:10:22 UTC
Description of problem:
test_qos_basic_and_update failed with timeout error


Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/common/utils.py", line 69, in wait_until_true
    eventlet.sleep(sleep)
  File "/usr/lib/python3.6/site-packages/eventlet/greenthread.py", line 36, in sleep
    hub.switch()
  File "/usr/lib/python3.6/site-packages/eventlet/hubs/hub.py", line 297, in switch
    return self.greenlet.switch()
eventlet.timeout.Timeout: 120 seconds

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/scenario/test_qos.py", line 216, in test_qos_basic_and_update
    sleep=1)
  File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/common/utils.py", line 74, in wait_until_true
    raise WaitTimeout("Timed out after %d seconds" % timeout)
neutron_tempest_plugin.common.utils.WaitTimeout: Timed out after 120 

version-Release number of selected component (if applicable):
OSP15: core_puddle: RHOS_TRUNK-15.0-RHEL-8-20190426.n.1

How reproducible:

https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/DFG-network-networking-ovn-15_director-rhel-virthost-3cont_2comp-ipv4-geneve/10/testReport/neutron_tempest_plugin.scenario.test_qos/QoSTest/test_qos_basic_and_update_id_00682a0c_b72e_11e8_b81e_8c16450ea513_/
Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Slawek Kaplonski 2019-05-10 14:34:50 UTC
So I reproduced this issue on devstack (I hope). When I created vm and added qos policy to it, bandwidth limit wasn't at all configured on tap interface:

[16:32:35] vagrant@devstack-ovn-centos-controller ~ $ neutron port-show e529a885-bd70-48f9-b01a-4f1ddf877c8d
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+-----------------------+------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                      |
+-----------------------+------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                       |
| allowed_address_pairs |                                                                                                            |
| binding:host_id       | devstack-ovn-centos-controller                                                                             |
| binding:profile       | {}                                                                                                         |
| binding:vif_details   | {"port_filter": true}                                                                                      |
| binding:vif_type      | ovs                                                                                                        |
| binding:vnic_type     | normal                                                                                                     |
| created_at            | 2019-05-10T14:31:53Z                                                                                       |
| description           |                                                                                                            |
| device_id             | 6d7bc142-c500-4cb6-8072-ae1b774d9650                                                                       |
| device_owner          | compute:nova                                                                                               |
| extra_dhcp_opts       |                                                                                                            |
| fixed_ips             | {"subnet_id": "3260b14a-691c-483c-b842-7e3df757ad34", "ip_address": "10.0.0.30"}                           |
|                       | {"subnet_id": "a186e264-bc16-449d-8de6-dad822e82421", "ip_address": "fdd1:bcf:a6d1:0:f816:3eff:fec4:a793"} |
| id                    | e529a885-bd70-48f9-b01a-4f1ddf877c8d                                                                       |
| mac_address           | fa:16:3e:c4:a7:93                                                                                          |
| name                  |                                                                                                            |
| network_id            | f8f207e9-8272-4f17-9bf4-ef31b9f59888                                                                       |
| port_security_enabled | True                                                                                                       |
| project_id            | 3759a7842ca64fc5b5ab5ff535748d0a                                                                           |
| qos_policy_id         | e86bd7d3-e378-42f0-8ff6-f58c47c6e826                                                                       |
| resource_request      |                                                                                                            |
| revision_number       | 7                                                                                                          |
| security_groups       | 98631c1d-0d13-4195-998b-b41a79611574                                                                       |
| status                | ACTIVE                                                                                                     |
| tags                  |                                                                                                            |
| tenant_id             | 3759a7842ca64fc5b5ab5ff535748d0a                                                                           |
| updated_at            | 2019-05-10T14:32:29Z                                                                                       |
+-----------------------+------------------------------------------------------------------------------------------------------------+


[16:32:55] vagrant@devstack-ovn-centos-controller ~ $ ovs-vsctl list interface tape529a885-bd
_uuid               : 174c00e0-d36f-439c-acbb-e3f8746cf6b0
admin_state         : up
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : full
error               : []
external_ids        : {attached-mac="fa:16:3e:c4:a7:93", iface-id="e529a885-bd70-48f9-b01a-4f1ddf877c8d", iface-status=active, vm-id="6d7bc142-c500-4cb6-8072-ae1b774d9650"}
ifindex             : 12
ingress_policing_burst: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 1
link_speed          : 10000000
link_state          : up
lldp                : {}
mac                 : []
mac_in_use          : "fe:16:3e:c4:a7:93"
mtu                 : 1442
mtu_request         : []
name                : "tape529a885-bd"
ofport              : 2
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {collisions=0, rx_bytes=2308, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=24, tx_bytes=1504, tx_dropped=0, tx_errors=0, tx_packets=12}
status              : {driver_name=tun, driver_version="1.6", firmware_version=""}
type                : ""

Comment 4 Slawek Kaplonski 2019-05-10 17:14:43 UTC
Ok, so it looks that in case of own it is done a bit differently. It is configured in Logical Switch Port:

[19:13:08] vagrant@devstack-ovn-centos-controller ~ $ ovn-nbctl list Logical_Switch_Port 7bbc1e06-4362-46d6-82a8-e562706e7f98
_uuid               : 7bbc1e06-4362-46d6-82a8-e562706e7f98
addresses           : ["fa:16:3e:c4:a7:93 10.0.0.30 fdd1:bcf:a6d1:0:f816:3eff:fec4:a793"]
dhcpv4_options      : 4af62cb5-b2ef-41c0-b092-25e9d418260c
dhcpv6_options      : []
dynamic_addresses   : []
enabled             : true
external_ids        : {"neutron:cidrs"="10.0.0.30/26 fdd1:bcf:a6d1:0:f816:3eff:fec4:a793/64", "neutron:device_id"="6d7bc142-c500-4cb6-8072-ae1b774d9650", "neutron:device_owner"="compute:nova", "neutron:network_name"="neutron-f8f207e9-8272-4f17-9bf4-ef31b9f59888", "neutron:port_name"="", "neutron:project_id"="3759a7842ca64fc5b5ab5ff535748d0a", "neutron:revision_number"="18", "neutron:security_group_ids"="98631c1d-0d13-4195-998b-b41a79611574"}
ha_chassis_group    : []
name                : "e529a885-bd70-48f9-b01a-4f1ddf877c8d"
options             : {qos_burst="150000", qos_max_rate="300000", requested-chassis=devstack-ovn-centos-controller}
parent_name         : []
port_security       : ["fa:16:3e:c4:a7:93 10.0.0.30 fdd1:bcf:a6d1:0:f816:3eff:fec4:a793"]
tag                 : []
tag_request         : []
type                : ""
up                  : true

But even if this is configured, it's not working from VM point of view.

Maybe it is related to bug https://github.com/openvswitch/ovs-issues/issues/150 ?

Comment 9 Terry Wilson 2019-06-18 13:30:33 UTC

*** This bug has been marked as a duplicate of bug 1546996 ***