From: Xiubo Li Date: Tue, 27 Jul 2021 01:53:58 +0000 (+0800) Subject: qa: wait pgs to be clean before using the pools X-Git-Tag: v16.2.6~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42923%2Fhead;p=ceph.git qa: wait pgs to be clean before using the pools Or in some use cases, like the mds-full tests, we will hit the "PG_AVAILABILITY" warning. Signed-off-by: Xiubo Li (cherry picked from commit a448d1c3ee161dc1910ff9fd71a82f7eb0020526) --- diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index f48ff146ede4a..e66185c42753f 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -727,6 +727,9 @@ class Filesystem(MDSCluster): self.getinfo(refresh = True) + # wait pgs to be clean + self.mon_manager.wait_for_clean() + def run_client_payload(self, cmd): # avoid circular dep by importing here: from tasks.cephfs.fuse_mount import FuseMount