neutron/neutron/tests/fullstack/cmd
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
..
__init__.py fullstack: Don't let dhcp agents failover 2017-04-20 14:04:50 +00:00
dhcp_agent.py Remove translation of help messages from tests 2017-09-25 09:49:38 +00:00
l3_agent.py Import "oslo_config.cfg" before "eventlet" 2020-11-10 07:57:19 +00:00
ovs_agent.py Fullstack: init trunk agent's driver only when necessary 2017-11-03 16:49:12 +00:00