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:
@@ -53,7 +53,6 @@ MarkupSafe==1.0
|
|||||||
mccabe==0.6.0
|
mccabe==0.6.0
|
||||||
microversion-parse==0.2.1
|
microversion-parse==0.2.1
|
||||||
mock==3.0.0
|
mock==3.0.0
|
||||||
monotonic==1.4
|
|
||||||
msgpack==0.5.6
|
msgpack==0.5.6
|
||||||
msgpack-python==0.5.6
|
msgpack-python==0.5.6
|
||||||
munch==2.2.0
|
munch==2.2.0
|
||||||
|
|||||||
@@ -92,17 +92,6 @@ def setup_profiler(binary, host):
|
|||||||
LOG.info(_LI("OSProfiler is enabled."))
|
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):
|
class Service(service.Service):
|
||||||
"""Service object for binaries running on hosts.
|
"""Service object for binaries running on hosts.
|
||||||
|
|
||||||
@@ -163,8 +152,6 @@ class Service(service.Service):
|
|||||||
# outside of oslo.db.
|
# outside of oslo.db.
|
||||||
context.CELL_CACHE = {}
|
context.CELL_CACHE = {}
|
||||||
|
|
||||||
assert_eventlet_uses_monotonic_clock()
|
|
||||||
|
|
||||||
verstr = version.version_string_with_package()
|
verstr = version.version_string_with_package()
|
||||||
LOG.info(_LI('Starting %(topic)s node (version %(version)s)'),
|
LOG.info(_LI('Starting %(topic)s node (version %(version)s)'),
|
||||||
{'topic': self.topic, 'version': verstr})
|
{'topic': self.topic, 'version': verstr})
|
||||||
|
|||||||
Reference in New Issue
Block a user