From 5af9ad4e54138e9dfcba50a30601c9df1d98c62b Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Mon, 4 May 2020 17:34:00 -0500 Subject: [PATCH] Remove monotonic usage The monotonic package was needed for monotonic time operations when running under Python runtimes older than 3.3. Since we now only support versions higher than this, this third party package requirement can now be removed. Change-Id: I955117b838cdd8a1858cfccbc3caa33ba6ad59f7 Signed-off-by: Sean McGinnis --- lower-constraints.txt | 1 - nova/service.py | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index 45fb9b9d5cf0..e879001f493e 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -53,7 +53,6 @@ MarkupSafe==1.0 mccabe==0.6.0 microversion-parse==0.2.1 mock==3.0.0 -monotonic==1.4 msgpack==0.5.6 msgpack-python==0.5.6 munch==2.2.0 diff --git a/nova/service.py b/nova/service.py index 16703a945006..f392c96d847a 100644 --- a/nova/service.py +++ b/nova/service.py @@ -92,17 +92,6 @@ def setup_profiler(binary, host): LOG.info(_LI("OSProfiler is enabled.")) -def assert_eventlet_uses_monotonic_clock(): - from eventlet import hubs - import monotonic - - hub = hubs.get_hub() - if hub.clock is not monotonic.monotonic: - raise RuntimeError( - 'eventlet hub is not using a monotonic clock - ' - 'periodic tasks will be affected by drifts of system time.') - - class Service(service.Service): """Service object for binaries running on hosts. @@ -163,8 +152,6 @@ class Service(service.Service): # outside of oslo.db. context.CELL_CACHE = {} - assert_eventlet_uses_monotonic_clock() - verstr = version.version_string_with_package() LOG.info(_LI('Starting %(topic)s node (version %(version)s)'), {'topic': self.topic, 'version': verstr})