]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: add filesystem helper for setting transient config
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 15 Sep 2022 13:55:28 +0000 (09:55 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 1 Aug 2023 15:16:02 +0000 (11:16 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/filesystem.py

index d18f699b113ade8b3767fa18ba8dd836b6b6887a..2f0c4ab03caf64eefca7dd328e77cf450aa62d2a 100644 (file)
@@ -595,6 +595,10 @@ class Filesystem(MDSCluster):
         a = map(lambda x: str(x).lower(), args)
         self.run_ceph_cmd("fs", "flag", "set", var, *a)
 
+    def set_config(self, opt, val, rank=0, status=None):
+        command = ["config", "set", opt, val]
+        self.rank_asok(command, rank, status=status)
+
     def set_allow_multifs(self, yes=True):
         self.set_flag("enable_multiple", yes)