]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_manager: wait_for_all_up -> wait_for_all_osds_up
authorSage Weil <sage@redhat.com>
Sat, 22 Jul 2017 19:18:26 +0000 (15:18 -0400)
committerSage Weil <sage@redhat.com>
Thu, 27 Jul 2017 16:10:26 +0000 (12:10 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/ceph_manager.py
qa/tasks/repair_test.py
qa/tasks/thrashosds.py
qa/tasks/vstart_runner.py

index 9e2363dfac451b43a1ddced1ca737762e567887e..757a7faf23af9fd257f281be6525a7e9b476aa88 100644 (file)
@@ -806,7 +806,7 @@ class Thrasher:
         while len(self.in_osds) < (self.minin + 1):
             self.in_osd()
         self.log("Waiting for recovery")
-        self.ceph_manager.wait_for_all_up(
+        self.ceph_manager.wait_for_all_osds_up(
             timeout=self.config.get('timeout')
             )
         # now we wait 20s for the pg status to change, if it takes longer,
@@ -2147,7 +2147,7 @@ class CephManager:
         x = self.get_osd_dump()
         return (len(x) == sum([(y['up'] > 0) for y in x]))
 
-    def wait_for_all_up(self, timeout=None):
+    def wait_for_all_osds_up(self, timeout=None):
         """
         When this exits, either the timeout has expired, or all
         osds are up.
@@ -2157,7 +2157,7 @@ class CephManager:
         while not self.are_all_osds_up():
             if timeout is not None:
                 assert time.time() - start < timeout, \
-                    'timeout expired in wait_for_all_up'
+                    'timeout expired in wait_for_all_osds_up'
             time.sleep(3)
         self.log("all up!")
 
index 26851e25e3de80d4b578ab7be0c80fe5d3162326..ba51ea3485a71af78f8013aed40a96598c81efb4 100644 (file)
@@ -288,7 +288,7 @@ def task(ctx, config):
         'repair_test task only accepts a dict for config'
 
     manager = ctx.managers['ceph']
-    manager.wait_for_all_up()
+    manager.wait_for_all_osds_up()
 
     manager.raw_cluster_cmd('osd', 'set', 'noscrub')
     manager.raw_cluster_cmd('osd', 'set', 'nodeep-scrub')
index 8e09dd6a20b852899a547aa306799bc53f622392..dbca056a08609c6060377ac61d78d08929858e04 100644 (file)
@@ -199,6 +199,6 @@ def task(ctx, config):
     finally:
         log.info('joining thrashosds')
         thrash_proc.do_join()
-        cluster_manager.wait_for_all_up()
+        cluster_manager.wait_for_all_osds_up()
         cluster_manager.flush_all_pg_stats()
         cluster_manager.wait_for_recovery(config.get('timeout', 360))
index 3f1825122e0422ee5a807f9e3132e77f5e905442..ce729c96b0894d05863d76175c13d5ce1465fc62 100644 (file)
@@ -910,7 +910,7 @@ def exec_test():
 
         # Wait for OSD to come up so that subsequent injectargs etc will
         # definitely succeed
-        LocalCephCluster(LocalContext()).mon_manager.wait_for_all_up(timeout=30)
+        LocalCephCluster(LocalContext()).mon_manager.wait_for_all_osds_up(timeout=30)
 
     # List of client mounts, sufficient to run the selected tests
     clients = [i.__str__() for i in range(0, max_required_clients)]