]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: wait pgs to be clean before using the pools
authorXiubo Li <xiubli@redhat.com>
Tue, 27 Jul 2021 01:53:58 +0000 (09:53 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 27 Jul 2021 01:54:03 +0000 (09:54 +0800)
Or in some use cases, like the mds-full tests, we will hit the
"PG_AVAILABILITY" warning.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/filesystem.py

index 805b7548dc60fc36bd0ceb2821204d699400b43b..51ca0a450629fa6d5491cb1277992872c5ba1a3e 100644 (file)
@@ -676,6 +676,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