From 7402d5f1a9bf604da550b47482b2544a40b85c7d Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 3 Mar 2015 16:38:10 -0600 Subject: [PATCH] Fixes #11013, use time.sleep instead of manager.sleep which isn't there. Signed-off-by: Andrew Schoen (cherry picked from commit 811c02e3922c4ae29c09bb5f7b48840d0eced951) --- tasks/lost_unfound.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/lost_unfound.py b/tasks/lost_unfound.py index e9beac7c3764a..af1df4de0cb9c 100644 --- a/tasks/lost_unfound.py +++ b/tasks/lost_unfound.py @@ -2,6 +2,7 @@ Lost_unfound """ import logging +import time import ceph_manager from teuthology import misc as teuthology from util.rados import rados @@ -29,7 +30,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') -- 2.39.5