summaryrefslogtreecommitdiff
path: root/nova/monkey_patch.py
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2019-03-15 18:20:26 +0000
committerStephen Finucane <stephenfin@redhat.com>2020-05-22 16:46:37 +0100
commitbcfa24a09b3971d3942004cb21a7eb0921fd60d5 (patch)
treec361469af5a87624eec1f0cd01da686719050aa1 /nova/monkey_patch.py
parent86674279b022e02b04b9efd191713ea11ecd21ab (diff)
downloadnova-bcfa24a09b3971d3942004cb21a7eb0921fd60d5.tar.gz
Remove eventlet hub workaround for monotonic clock
The fix landed in eventlet in 0.21.0 Change-Id: Icf7d671bc5d3f32831e6867c297e838f984d81b6
Diffstat (limited to 'nova/monkey_patch.py')
-rw-r--r--nova/monkey_patch.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/nova/monkey_patch.py b/nova/monkey_patch.py
index 1a610248ad..6999c7ebe7 100644
--- a/nova/monkey_patch.py
+++ b/nova/monkey_patch.py
@@ -66,14 +66,6 @@ def _monkey_patch():
import threading
orig_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
- # LP 1510234 for details)
- # NOTE(mdbooth): This was fixed in eventlet 0.21.0. Remove when bumping
- # eventlet version.
- import oslo_service # noqa
- eventlet.hubs.use_hub("oslo_service:service_hub")
-
# NOTE(mdbooth): Log here instead of earlier to avoid loading oslo logging
# before monkey patching.
# NOTE(mdbooth): Ideally we would raise an exception here, as this is