]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: Fix for test_data_scan 15094/head
authorDouglas Fuller <dfuller@redhat.com>
Mon, 15 May 2017 18:57:11 +0000 (14:57 -0400)
committerDouglas Fuller <dfuller@redhat.com>
Mon, 15 May 2017 20:01:02 +0000 (16:01 -0400)
Don't assume that test_data_scan will be run on exactly 2 MDS nodes.

Fixes: http://tracker.ceph.com/issues/19893
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
qa/tasks/cephfs/test_data_scan.py

index 9b92216b9840871283341ebbcc958f397614ecba..c30f5fa53efc6da26e49e8699e72f2ec7fb2a3e1 100644 (file)
@@ -425,20 +425,11 @@ class TestDataScan(CephFSTestCase):
         self.fs.wait_for_daemons()
         if other_pool:
             for mds_id in self.fs.mds_ids:
-                self.wait_until_equal(
-                        lambda: get_state(mds_id),
-                        "up:active",
-                        timeout=60)
-            self.fs.mon_manager.raw_cluster_cmd('tell', 'mds.a',
-                                                'injectargs', '--debug-mds=20')
-            self.fs.mon_manager.raw_cluster_cmd('tell', 'mds.b',
-                                                'injectargs', '--debug-mds=20')
-            self.fs.mon_manager.raw_cluster_cmd('daemon', 'mds.a',
-                                                'scrub_path', '/',
-                                                'recursive', 'repair')
-            self.fs.mon_manager.raw_cluster_cmd('daemon', 'mds.b',
-                                                'scrub_path', '/',
-                                                'recursive', 'repair')
+                self.fs.mon_manager.raw_cluster_cmd('tell', "mds." + mds_id,
+                                                    'injectargs', '--debug-mds=20')
+                self.fs.mon_manager.raw_cluster_cmd('daemon', "mds." + mds_id,
+                                                    'scrub_path', '/',
+                                                    'recursive', 'repair')
         log.info(str(self.mds_cluster.status()))
 
         # Mount a client