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 <sean.mcginnis@gmail.com>
This commit is contained in:
parent
fdcb1e306e
commit
5af9ad4e54
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue