]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
suites/fs: add ceph-fuse disable override
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 9 Nov 2016 01:34:04 +0000 (20:34 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 21 Nov 2016 19:08:07 +0000 (14:08 -0500)
Some tests require fuse mounts to not be unmounted. This avoids the need
to manually specify clients as unmounted.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
tasks/ceph_fuse.py

index 9c308ae36cababd45be6d8e4fd63d26dc484f620..c9d83549668208147e1f99ad67b87fd26b9d8a78 100644 (file)
@@ -98,7 +98,7 @@ def task(ctx, config):
     config = get_client_configs(ctx, config)
 
     # List clients we will configure mounts for, default is all clients
-    clients = list(teuthology.get_clients(ctx=ctx, roles=config.keys()))
+    clients = list(teuthology.get_clients(ctx=ctx, roles=filter(lambda x: 'client.' in x, config.keys())))
 
     all_mounts = getattr(ctx, 'mounts', {})
     mounted_by_me = {}
@@ -116,7 +116,7 @@ def task(ctx, config):
             # Catch bad configs where someone has e.g. tried to use ceph-fuse and kcephfs for the same client
             assert isinstance(all_mounts[id_], FuseMount)
 
-        if client_config.get('mounted', True):
+        if not config.get("disabled", False) and client_config.get('mounted', True):
             mounted_by_me[id_] = all_mounts[id_]
 
     ctx.mounts = all_mounts