diff --git a/oslo_concurrency/processutils.py b/oslo_concurrency/processutils.py index 2fad1db..99f48d1 100644 --- a/oslo_concurrency/processutils.py +++ b/oslo_concurrency/processutils.py @@ -61,13 +61,6 @@ if eventlet_patched: from eventlet.green import subprocess from eventlet import tpool - - # Monkey patch the original current_thread to use the up-to-date _active - # global variable. See https://bugs.launchpad.net/bugs/1863021 and - # https://github.com/eventlet/eventlet/issues/592 - import __original_module_threading as orig_threading - import threading - orig_threading.current_thread.__globals__['_active'] = threading._active else: import subprocess diff --git a/oslo_concurrency/tests/__init__.py b/oslo_concurrency/tests/__init__.py index 73122fb..bd455c4 100644 --- a/oslo_concurrency/tests/__init__.py +++ b/oslo_concurrency/tests/__init__.py @@ -17,9 +17,3 @@ import os if os.environ.get('TEST_EVENTLET'): import eventlet eventlet.monkey_patch() - # Monkey patch the original current_thread to use the up-to-date _active - # global variable. See https://bugs.launchpad.net/bugs/1863021 and - # https://github.com/eventlet/eventlet/issues/592 - import __original_module_threading as orig_threading # noqa - import threading # noqa - orig_threading.current_thread.__globals__['_active'] = threading._active diff --git a/setup.cfg b/setup.cfg index 550d8c0..fcf5510 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,3 +31,7 @@ oslo.config.opts = oslo.concurrency = oslo_concurrency.opts:list_opts console_scripts = lockutils-wrapper = oslo_concurrency.lockutils:main + +[extras] +eventlet = + eventlet>=0.27.0 # MIT diff --git a/test-requirements.txt b/test-requirements.txt index 240590e..53c7c51 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,4 +2,4 @@ oslotest>=3.2.0 # Apache-2.0 coverage>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD stestr>=2.0.0 # Apache-2.0 -eventlet>=0.19.0 # MIT +eventlet>=0.27.0 # MIT