]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add a test for `fs set down` on online cluster 59704/head
authorchungfengz <chungfengz@synology.com>
Thu, 25 Jul 2024 13:41:35 +0000 (21:41 +0800)
committerVenky Shankar <vshankar@redhat.com>
Tue, 10 Sep 2024 11:56:05 +0000 (17:26 +0530)
Fixes: https://tracker.ceph.com/issues/66960
Signed-off-by: chungfengz <chungfengz@synology.com>
(cherry picked from commit f8becaaedb206e7b683698aac296b48e646e44b9)

qa/workunits/cephtool/test.sh

index d00e9b04b0a7fa2a283a4afe8b3ba07fd8f29d23..ed652b9f74bf28323b05224d30dec435a60032ec 100755 (executable)
@@ -913,6 +913,11 @@ function test_mon_mds()
   ceph fs set $FS_NAME cluster_down true
   ceph fs set $FS_NAME cluster_down false
 
+  ceph fs set $FS_NAME max_mds 2
+  ceph fs get $FS_NAME | expect_true grep -P -q 'max_mds\t2'
+  ceph fs set $FS_NAME down false
+  ceph fs get $FS_NAME | expect_true grep -P -q 'max_mds\t2'
+
   ceph mds compat rm_incompat 4
   ceph mds compat rm_incompat 4