Merge "Remove monotonic usage"
This commit is contained in:
commit
f269bb98d8
@ -49,7 +49,6 @@ Mako==1.0.7
|
||||
MarkupSafe==1.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
|
||||
|
@ -92,17 +92,6 @@ def setup_profiler(binary, host):
|
||||
LOG.info("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('Starting %(topic)s node (version %(version)s)',
|
||||
{'topic': self.topic, 'version': verstr})
|
||||
|
Loading…
Reference in New Issue
Block a user