yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81586
[Bug 1863021] [NEW] eventlet monkey patch results in assert len(_active) == 1 AssertionError
Public bug reported:
This appears to be the same issue documented here:
https://github.com/eventlet/eventlet/issues/592
However I seem to only hit this with python3.8. Basically nova services
fail with:
Exception ignored in: <function _after_fork at 0x7f1100d075e0>
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 1454, in _after_fork
assert len(_active) == 1
AssertionError:
Exception ignored in: <function _after_fork at 0x7f1100d075e0>
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 1454, in _after_fork
assert len(_active) == 1
AssertionError:
Patching nova/monkey_patch.py with the following appears to fix this:
diff --git a/nova/monkey_patch.py b/nova/monkey_patch.py
index a07ff91dac..bb7252c643 100644
--- a/nova/monkey_patch.py
+++ b/nova/monkey_patch.py
@@ -59,6 +59,9 @@ def _monkey_patch():
else:
eventlet.monkey_patch()
+ import __original_module_threading
+ import threading
+ __original_module_threading.current_thread.__globals__['_active'] = threading._active
# NOTE(rpodolyaka): import oslo_service first, so that it makes eventlet
# hub use a monotonic clock to avoid issues with drifts of system time (see
** Affects: nova
Importance: Undecided
Status: New
** Affects: nova (Ubuntu)
Importance: High
Status: Triaged
** Tags: py38
** Tags added: py38
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1863021
Title:
eventlet monkey patch results in assert len(_active) == 1
AssertionError
Status in OpenStack Compute (nova):
New
Status in nova package in Ubuntu:
Triaged
Bug description:
This appears to be the same issue documented here:
https://github.com/eventlet/eventlet/issues/592
However I seem to only hit this with python3.8. Basically nova
services fail with:
Exception ignored in: <function _after_fork at 0x7f1100d075e0>
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 1454, in _after_fork
assert len(_active) == 1
AssertionError:
Exception ignored in: <function _after_fork at 0x7f1100d075e0>
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 1454, in _after_fork
assert len(_active) == 1
AssertionError:
Patching nova/monkey_patch.py with the following appears to fix this:
diff --git a/nova/monkey_patch.py b/nova/monkey_patch.py
index a07ff91dac..bb7252c643 100644
--- a/nova/monkey_patch.py
+++ b/nova/monkey_patch.py
@@ -59,6 +59,9 @@ def _monkey_patch():
else:
eventlet.monkey_patch()
+ import __original_module_threading
+ import threading
+ __original_module_threading.current_thread.__globals__['_active'] = threading._active
# NOTE(rpodolyaka): import oslo_service first, so that it makes eventlet
# hub use a monotonic clock to avoid issues with drifts of system time (see
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1863021/+subscriptions
Follow ups
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Brian Murray, 2024-07-26
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2021-07-21
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-09-22
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-07-18
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-06-03
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-06-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-28
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-28
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-19
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-15
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-14
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-13
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-13
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-08
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-07
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-07
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-07
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-07
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Chris MacNaughton, 2020-05-06
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Chris MacNaughton, 2020-05-06
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-05
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-05
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-05
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-05
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-05-05
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-04
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-05-02
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-01
-
[Bug 1863021] Re: [SRU] eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-01
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-05-01
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-04-30
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-04-30
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-03-31
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-03-31
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-03-30
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: OpenStack Infra, 2020-03-03
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Launchpad Bug Tracker, 2020-02-21
-
[Bug 1863021] Re: eventlet monkey patch results in assert len(_active) == 1 AssertionError
From: Corey Bryant, 2020-02-12