1
0
mirror of https://github.com/ceph/ceph synced 2025-03-23 10:48:12 +00:00

tasks: fix non-existent sleep function

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>
This commit is contained in:
Josh Durgin 2016-06-02 15:24:56 -07:00
parent bd14a8e13b
commit cfc48e36da
7 changed files with 9 additions and 7 deletions

View File

@ -3,6 +3,7 @@ Test Object locations going down
"""
import logging
import ceph_manager
import time
from teuthology import misc as teuthology
from util.rados import rados
@ -26,7 +27,7 @@ def task(ctx, config):
)
while len(manager.get_osd_status()['up']) < 3:
manager.sleep(10)
time.sleep(10)
manager.wait_for_clean()
# something that is always there

View File

@ -51,7 +51,7 @@ def task(ctx, config):
)
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')

View File

@ -51,7 +51,7 @@ def task(ctx, config):
)
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')

View File

@ -3,6 +3,7 @@ Peer test (Single test, not much configurable here)
"""
import logging
import json
import time
import ceph_manager
from teuthology import misc as teuthology
@ -28,7 +29,7 @@ def task(ctx, config):
)
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')

View File

@ -58,7 +58,7 @@ def task(ctx, config):
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,

View File

@ -31,7 +31,7 @@ def task(ctx, config):
)
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')

View File

@ -49,7 +49,7 @@ def task(ctx, config):
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,