neutron/neutron/tests/functional/agent/linux
Rodolfo Alonso Hernandez 56f2bf37d1 Import "oslo_config.cfg" before "eventlet"
Eventlet will patch the "os" library and how it works.

If "oslo_config.cfg" is called after "eventlet":
- "oslo_config.cfg" imports "stevedore"
- "stevedore" imports "importlib_metadata"
- this library will try to use "os.open" library, but patched
- "eventlet" imports "oslo_service"
- "oslo_service" imports "oslo_logging"
- "oslo_logging" imports "oslo_config.cfg", but at this point,
  the instance cfg.CONF does not exist yet

If "oslo_config.cfg" is imported before calling eventlet,
"oslo_logging" is not called and there is no circular import.

Closes-Bug: #1888213

[1]I8b08f289d446f4775eac1e1a91997fa96f25f641

Change-Id: Idcc04f46b2a01e24dfd56cef8121694439e0339e
(cherry picked from commit bc99e56515)
2020-11-10 07:57:19 +00:00
..
bin Import "oslo_config.cfg" before "eventlet" 2020-11-10 07:57:19 +00:00
openvswitch_firewall use EGRESS_DIRECTION and INGRESS_DIRECTION from neutron-lib 2018-02-23 10:36:36 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py functional-tests: Make addresses for tunneling unique 2017-06-20 20:17:35 +00:00
helpers.py Refactor and fix dummy process fixture 2016-03-30 13:12:31 +02:00
simple_daemon.py Remove translation of help messages from tests 2017-09-25 09:49:38 +00:00
test_async_process.py Move wait_until_true to neutron.common.utils 2016-06-27 11:40:11 +00:00
test_bridge_lib.py LinuxBridge: Use ifindex for logical 'timestamp' 2016-09-14 17:02:46 +00:00
test_dhcp.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
test_interface.py Refactoring agent linux&ovsdb config 2017-08-25 10:41:39 -04:00
test_ip_lib.py Check the namespace is ready in test_mtu_update tests 2019-09-16 09:30:43 +00:00
test_ip_monitor.py Change linux/ip_lib code to better handle address families 2015-03-10 00:17:24 -04:00
test_ipset.py Forbid importing neutron.tests.* from outside tests subtree 2016-09-15 18:42:45 +00:00
test_iptables.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_keepalived.py Add 'keepalived_use_no_track' config option 2020-08-25 10:27:05 +02:00
test_l3_tc_lib.py [L3][QoS] Adding L3 rate limit TC lib 2017-11-15 09:44:05 +00:00
test_linuxbridge_arp_protect.py use neutron_lib's get_random_mac 2017-03-07 09:13:47 -06:00
test_netlink_lib.py [Functional tests] Change way how conntrack entries are checked 2019-04-06 07:31:23 +00:00
test_ovsdb_monitor.py Use rootwrap for fullstack test runner 2017-06-08 18:42:47 +00:00
test_process_monitor.py Stabilizing process monitor function test case 2017-03-23 11:18:11 +00:00
test_tc_lib.py Revert "Linux Bridge: driver support for QoS egress minimum bandwidth" 2017-02-09 19:11:00 +00:00
test_utils.py functional: Check for processes only if there are any 2017-01-31 07:34:13 -05:00