Skip to content

Commit cb3229b

Browse files
committed
qa: avoid unnecessary mds restart
The MDS are already sitting in standby because the fs is damaged. Signed-off-by: Patrick Donnelly <[email protected]>
1 parent b7d3d39 commit cb3229b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qa/tasks/cephfs/test_data_scan.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ def _rebuild_metadata(self, workload, workers=1, unmount=True):
416416

417417
# After recovery, we need the MDS to not be strict about stats (in production these options
418418
# are off by default, but in QA we need to explicitly disable them)
419-
self.fs.set_ceph_conf('mds', 'mds verify scatter', False)
420-
self.fs.set_ceph_conf('mds', 'mds debug scatterstat', False)
419+
self.config_set('mds', 'mds verify scatter', False)
420+
self.config_set('mds', 'mds debug scatterstat', False)
421421

422422
# Apply any data damage the workload wants
423423
workload.damage()
@@ -461,7 +461,6 @@ def get_state(mds_id):
461461
self.run_ceph_cmd('mds', 'repaired', '0')
462462

463463
# Start the MDS
464-
self.fs.mds_restart()
465464
self.fs.wait_for_daemons()
466465
log.info(str(self.mds_cluster.status()))
467466

0 commit comments

Comments
 (0)