CephManager has no sleep function. Use time.sleep() instead.
Ran into this while testing a branch. Apparently it doesn't happen
much since this hasn't changed in years, but the error was copied
into several tasks.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
"""
import logging
import ceph_manager
+import time
from teuthology import misc as teuthology
from util.rados import rados
)
while len(manager.get_osd_status()['up']) < 3:
- manager.sleep(10)
+ time.sleep(10)
manager.wait_for_clean()
# something that is always there
)
while len(manager.get_osd_status()['up']) < 3:
- manager.sleep(10)
+ time.sleep(10)
manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')
)
while len(manager.get_osd_status()['up']) < 3:
- manager.sleep(10)
+ time.sleep(10)
manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')
"""
import logging
import json
+import time
import ceph_manager
from teuthology import misc as teuthology
)
while len(manager.get_osd_status()['up']) < 3:
- manager.sleep(10)
+ time.sleep(10)
manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')
num_osds = teuthology.num_instances_of_type(ctx.cluster, 'osd')
while len(manager.get_osd_status()['up']) < num_osds:
- manager.sleep(10)
+ time.sleep(10)
bench_proc = RecoveryBencher(
manager,
)
while len(manager.get_osd_status()['up']) < 3:
- manager.sleep(10)
+ time.sleep(10)
manager.raw_cluster_cmd('tell', 'osd.0', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.1', 'flush_pg_stats')
manager.raw_cluster_cmd('tell', 'osd.2', 'flush_pg_stats')
num_osds = teuthology.num_instances_of_type(ctx.cluster, 'osd')
while len(manager.get_osd_status()['up']) < num_osds:
- manager.sleep(10)
+ time.sleep(10)
scrub_proc = Scrubber(
manager,