]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: added rbd-nbd fsx test case
authorJason Dillaman <dillaman@redhat.com>
Fri, 10 Jun 2016 14:56:32 +0000 (10:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 10 Jun 2016 14:56:45 +0000 (10:56 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
suites/rbd/thrash/workloads/rbd_fsx_nbd.yaml [new file with mode: 0644]
tasks/rbd_fsx.py

diff --git a/suites/rbd/thrash/workloads/rbd_fsx_nbd.yaml b/suites/rbd/thrash/workloads/rbd_fsx_nbd.yaml
new file mode 100644 (file)
index 0000000..b6e9d5b
--- /dev/null
@@ -0,0 +1,15 @@
+os_type: ubuntu
+overrides:
+  install:
+    ceph:
+      extra_packages: [rbd-nbd]
+tasks:
+- rbd_fsx:
+    clients: [client.0]
+    ops: 6000
+    nbd: True
+    holebdy: 512
+    punch_holes: true
+    readbdy: 512
+    truncbdy: 512
+    writebdy: 512
index 56a409e4b69d1ecb6f9939075475798cfd0a6d24..ab1a47f093cba4ecb9c818846828a012e1962a4f 100644 (file)
@@ -44,12 +44,13 @@ def task(ctx, config):
 def _run_one_client(ctx, config, role):
     """Spawned task that runs the client"""
     krbd = config.get('krbd', False)
+    nbd = config.get('nbd', False)
     testdir = teuthology.get_testdir(ctx)
     (remote,) = ctx.cluster.only(role).remotes.iterkeys()
 
     args = []
-    if krbd:
-        args.append('sudo') # rbd map/unmap need privileges
+    if krbd or nbd:
+        args.append('sudo') # rbd(-nbd) map/unmap need privileges
     args.extend([
         'adjust-ulimits',
         'ceph-coverage',
@@ -83,6 +84,8 @@ def _run_one_client(ctx, config, role):
     ])
     if krbd:
         args.append('-K') # -K enables krbd mode
+    if nbd:
+        args.append('-M') # -M enables nbd mode
     if config.get('direct_io', False):
         args.append('-Z') # -Z use direct IO
     if not config.get('randomized_striping', True):