neutron/neutron/tests/unit/agent
Slawek Kaplonski 2af5fd889b Add sleep before checking if ovs port is in the namespace
When network device which is ovs internal port is moved to the namespace
it may happend sometimes that it will have "shy port syndrome" [1].
Even though there is wait for device to be in namespace in the set_netns
method it may happend that device is in namespace during this check but
it dissapears for short time later and that causes failures e.g. in
functional tests like described in [2].
To avoid that, this patch proposed simple (and ugly) sleep for 1 second
before checking if port really exists in the namespace. If it will be
"shy" port it should already flap during that 1 second.

[1] https://bugs.launchpad.net/neutron/+bug/1618987
[2] https://bugs.launchpad.net/neutron/+bug/1961740

Related-Bug: #1961740
Related-Bug: #1998337
Change-Id: I442587e7ef55917f4ea873e190bf8afbc0e911e1
2023-03-01 09:26:42 +01:00
..
common Allow shared resources between physical and tunnelled networks 2023-01-17 10:20:52 +00:00
dhcp dhcp: fix issue when network is already removed 2022-12-15 16:26:15 +00:00
l2 Use ovs constants from neutron-lib 2022-06-17 10:36:44 +05:30
l3 Set proxy_delay to one when using proxy ARP 2023-01-14 11:23:33 -05:00
linux Add sleep before checking if ovs port is in the namespace 2023-03-01 09:26:42 +01:00
metadata Add an env variable "PROCESS_TAG" in ``ProcessManager`` 2022-12-24 10:30:16 +01:00
ovn Merge "Add an env variable "PROCESS_TAG" in ``ProcessManager``" 2023-01-17 13:38:31 +00:00
ovsdb Do not emit ssl warnings in the test_ssl_connection test 2022-11-30 15:04:34 +00:00
windows Remove "six" library 2020-07-28 16:55:52 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Remove the dependency on the "mock" package 2020-04-28 18:05:37 -04:00
test_resource_cache.py Use payload callback for RPC resource_cache 2021-08-31 13:39:06 +00:00
test_rpc.py Remove "live_migration_events" configuration option 2022-04-24 00:45:26 +00:00
test_securitygroups_rpc.py Remove unneeded contexts in ``_create_port_security_group_binding`` 2022-05-20 09:07:02 +00:00