]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/tasks/mon_clock_skew_check.py
import 15.2.0 Octopus source
[ceph.git] / ceph / qa / tasks / mon_clock_skew_check.py
index 547339f79a11be690af3be9881decfd504c65050..f7862cb1354d7b9f9f176d1caf81ca796b9cacd1 100644 (file)
@@ -2,11 +2,8 @@
 Handle clock skews in monitors.
 """
 import logging
-import contextlib
 import ceph_manager
 import time
-import gevent
-from StringIO import StringIO
 from teuthology import misc as teuthology
 
 log = logging.getLogger(__name__)
@@ -50,7 +47,7 @@ def task(ctx, config):
 
     log.info('Beginning mon_clock_skew_check...')
     first_mon = teuthology.get_first_mon(ctx, config)
-    (mon,) = ctx.cluster.only(first_mon).remotes.iterkeys()
+    (mon,) = ctx.cluster.only(first_mon).remotes.keys()
     manager = ceph_manager.CephManager(
         mon,
         ctx=ctx,