]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
suites/fs: add client recovery
authorJohn Spray <jspray@redhat.com>
Wed, 20 Aug 2014 11:57:23 +0000 (12:57 +0100)
committerJohn Spray <jspray@redhat.com>
Thu, 21 Aug 2014 22:09:00 +0000 (23:09 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
suites/fs/recovery/% [new file with mode: 0644]
suites/fs/recovery/clusters/2-remote-clients.yaml [new file with mode: 0644]
suites/fs/recovery/mounts/ceph-fuse.yaml [new file with mode: 0644]
suites/fs/recovery/tasks/client-recovery.yaml [new file with mode: 0644]
tasks/mds_client_recovery.py

diff --git a/suites/fs/recovery/% b/suites/fs/recovery/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/fs/recovery/clusters/2-remote-clients.yaml b/suites/fs/recovery/clusters/2-remote-clients.yaml
new file mode 100644 (file)
index 0000000..d8af6b6
--- /dev/null
@@ -0,0 +1,3 @@
+roles:
+- [mon.a, osd.0, mds.a]
+- [client.0, client.1, osd.1, osd.2]
diff --git a/suites/fs/recovery/mounts/ceph-fuse.yaml b/suites/fs/recovery/mounts/ceph-fuse.yaml
new file mode 100644 (file)
index 0000000..8092598
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- install:
+- ceph:
+- ceph-fuse:
+    client.0:
+        mounted: false
+    client.1:
+        mounted: false
diff --git a/suites/fs/recovery/tasks/client-recovery.yaml b/suites/fs/recovery/tasks/client-recovery.yaml
new file mode 100644 (file)
index 0000000..2cd3951
--- /dev/null
@@ -0,0 +1,11 @@
+
+# The task interferes with the network, so we need
+# to permit OSDs to complain about that.
+overrides:
+  ceph:
+      log-whitelist:
+      - wrongly marked me down
+      - slow request
+
+tasks:
+- mds_client_recovery:
index aebc979fb67a63f59cdd3a802ae8f26165c1d051..31872d566ec36685b619fd498c1063d2ece7326b 100644 (file)
@@ -385,7 +385,7 @@ def task(ctx, config):
 
     # Execute test suite
     # ==================
-    if 'test_name' in config:
+    if config and 'test_name' in config:
         suite = unittest.TestLoader().loadTestsFromName(
             "teuthology.task.mds_client_recovery.{0}".format(config['test_name']))
     else: