From: Vasu Kulkarni Date: Tue, 10 Apr 2018 00:24:42 +0000 (-0700) Subject: qa/tasks: wait_for_clean is called after ceph task as well after osd's are up, X-Git-Tag: v13.1.0~351^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21313%2Fhead;p=ceph.git qa/tasks: wait_for_clean is called after ceph task as well after osd's are up, the default timeout is none in that case, there are cases where it can hang forever due to error cases, since this dumps quite a lot of info the logs grow in GB's, with default timeout of 1200 we can avoid such huge logs and fail sooner. Any tests needing higher timeout can pass the required value. Signed-off-by: Vasu Kulkarni --- diff --git a/qa/tasks/ceph_manager.py b/qa/tasks/ceph_manager.py index 4042f1cf47be..961a035d8b78 100644 --- a/qa/tasks/ceph_manager.py +++ b/qa/tasks/ceph_manager.py @@ -2091,7 +2091,7 @@ class CephManager: """ return self.get_num_active_down() == self.get_num_pgs() - def wait_for_clean(self, timeout=None): + def wait_for_clean(self, timeout=1200): """ Returns true when all pgs are clean. """