neutron/neutron/tests/fullstack
Rodolfo Alonso Hernandez 92f1281b69 Add a more robust method to check OVSDB values in BaseOVSTestCase
Sometimes, when the OVSDB is too loaded (that could happen during the
functional tests), there is a delay between the OVSDB post transaction
end and when the register (new or updated) can be read. Although this is
something that should not happen (considering the OVSDB is transactional),
tests should deal with this inconvenience and provide a robust method to
retrieve a value and at the same time check the value. This new method
should provide a retrieving mechanism to read again the value in case of
discordance.

In order to solve the gate problem ASAP, another bug is fixed in this
patch: to skip the QoS removal when OVS agent is initialized during
funtional tests

When executing functional tests, several OVS QoS policies specific for
minimum bandwidth rules [1]. Because during the functional tests
execution several threads can create more than one minimum bandwidth
QoS policy (something in a production environment cannot happen), the
OVS QoS driver must skip the execution of [2] to avoid removing other
QoS created in parellel in other tests.

This patch is marking as unstable "test_min_bw_qos_policy_rule_lifecycle"
and "test_bw_limit_qos_port_removed". Those tests will be investigated
once the CI gates are stable.

[1] Those QoS policies are created only to hold minimum bandwidth rules.
    Those policies are marked with:
       external_ids: {'_type'='minimum_bandwidth'}
[2] d6fba30781/neutron/plugins/ml2/drivers/openvswitch/agent/extension_drivers/qos_driver.py (L43)

Closes-Bug: #1818613
Closes-Bug: #1818859
Related-Bug: #1819125

Change-Id: Ia725cc1b36bc3630d2891f86f76b13c16f6cc37c
2019-03-09 15:46:59 +00:00
..
agents Change "cmd" folder in fullstack tests 2018-12-01 22:58:37 +00:00
resources Add QoS minimum egress bandwidth rule into ovs-agent 2019-02-26 11:05:04 +00:00
README Moved fullstack test doc content to TESTING.rst 2015-12-03 17:02:54 -05:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Revert "Restart all L3 agents in test that check no packet loss in HA routers" 2019-03-03 13:31:18 +00:00
test_agent_bandwidth_report.py sriov-agent: fullstack test resource info report 2018-10-26 08:14:46 +00:00
test_connectivity.py Disable IPv6 forwarding by default on HA routers 2018-05-31 20:19:21 +00:00
test_dhcp_agent.py Change "cmd" folder in fullstack tests 2018-12-01 22:58:37 +00:00
test_firewall.py fullstack: Migration from iptables_hybrid to openvswitch 2018-04-26 16:44:24 +00:00
test_l3_agent.py Revert "Restart all L3 agents in test that check no packet loss in HA routers" 2019-03-03 13:31:18 +00:00
test_logging.py Follow-up: add fullstack test for logging 2018-09-06 14:59:10 +07:00
test_mtu.py Skip MTU check during deletion of Networks 2018-06-21 14:25:22 +00:00
test_port_shut_down.py [OVS] Shut down the port on changing the admin-state to false 2018-01-04 01:44:01 -05:00
test_ports_rebind.py Make port binding attempt after agent is revived 2018-10-22 18:43:33 +02:00
test_qos.py Add a more robust method to check OVSDB values in BaseOVSTestCase 2019-03-09 15:46:59 +00:00
test_securitygroup.py [Fullstack] Mark securitygroups tests as unstable 2018-08-29 10:33:53 +02:00
test_trunk.py Fullstack: init trunk agent's driver only when necessary 2017-11-03 16:49:12 +00:00
utils.py fullstack: Remove ovsdb_interface config opt 2017-09-27 07:03:17 +00:00

README

Please see neutron/TESTING.rst.