]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: don't run TestSnapshots.test_kill_mdstable on kclient
authorYan, Zheng <zyan@redhat.com>
Fri, 16 Mar 2018 10:03:23 +0000 (18:03 +0800)
committerYan, Zheng <zyan@redhat.com>
Sun, 18 Mar 2018 14:24:42 +0000 (22:24 +0800)
this test forcibly kills mount. Killing kernel mount requires reboot,

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
qa/suites/multimds/basic/tasks/cephfs_test_snapshots.yaml
qa/tasks/cephfs/test_snapshots.py

index a24734b21e930cfa94c0787c594615062154f083..3d143585b51b9fa3d300f9311e0705a0d37d20bf 100644 (file)
@@ -7,5 +7,6 @@ overrides:
 
 tasks:
 - cephfs_test_runner:
+    fail_on_skip: false
     modules:
       - tasks.cephfs.test_snapshots
index 511e768a7f750d713fd4cf6dc6badaaa3000081c..db2b8f74302637c4ebbdb0837bc35e1790ad721f 100644 (file)
@@ -4,6 +4,7 @@ from textwrap import dedent
 from tasks.cephfs.fuse_mount import FuseMount
 from tasks.cephfs.cephfs_test_case import CephFSTestCase
 from teuthology.orchestra.run import CommandFailedError, Raw
+from unittest import SkipTest
 
 log = logging.getLogger(__name__)
 
@@ -47,6 +48,9 @@ class TestSnapshots(CephFSTestCase):
         """
         check snaptable transcation
         """
+        if not isinstance(self.mount_a, FuseMount):
+            raise SkipTest("Require FUSE client to forcibly kill mount")
+
         self.fs.set_allow_new_snaps(True);
         self.fs.set_max_mds(2)
         self.fs.wait_for_daemons()