]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
suites/kcephfs: add python tests
authorJohn Spray <john.spray@redhat.com>
Wed, 10 Aug 2016 16:03:36 +0000 (17:03 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 7 Dec 2016 00:45:45 +0000 (00:45 +0000)
Let's see which of these is happy running with a kernel client!

Signed-off-by: John Spray <john.spray@redhat.com>
22 files changed:
suites/kcephfs/recovery/% [new file with mode: 0644]
suites/kcephfs/recovery/clusters/4-remote-clients.yaml [new file with mode: 0644]
suites/kcephfs/recovery/debug/mds_client.yaml [new file with mode: 0644]
suites/kcephfs/recovery/dirfrag/frag_enable.yaml [new file with mode: 0644]
suites/kcephfs/recovery/mounts/kmounts.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/auto-repair.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/backtrace.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/cap-flush.yam [new file with mode: 0644]
suites/kcephfs/recovery/tasks/client-limits.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/client-recovery.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/config-commands.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/damage.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/data-scan.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/forward-scrub.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/journal-repair.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/mds-flush.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/mds-full.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/pool-perm.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/sessionmap.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/strays.yaml [new file with mode: 0644]
suites/kcephfs/recovery/tasks/volume-client.yaml [new file with mode: 0644]
suites/kcephfs/recovery/xfs.yaml [new symlink]

diff --git a/suites/kcephfs/recovery/% b/suites/kcephfs/recovery/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/suites/kcephfs/recovery/clusters/4-remote-clients.yaml b/suites/kcephfs/recovery/clusters/4-remote-clients.yaml
new file mode 100644 (file)
index 0000000..702bb16
--- /dev/null
@@ -0,0 +1,6 @@
+roles:
+- [mon.a, osd.0, mds.a, mds.b, client.1, client.2, client.3]
+- [client.0, osd.1, osd.2]
+log-rotate:
+  ceph-mds: 10G
+  ceph-osd: 10G
diff --git a/suites/kcephfs/recovery/debug/mds_client.yaml b/suites/kcephfs/recovery/debug/mds_client.yaml
new file mode 100644 (file)
index 0000000..76cc4d8
--- /dev/null
@@ -0,0 +1,12 @@
+overrides:
+  ceph:
+    conf:
+      mds:
+        debug ms: 1
+        debug mds: 20
+      client.0:
+        debug ms: 1
+        debug client: 20
+      client.1:
+        debug ms: 1
+        debug client: 20
diff --git a/suites/kcephfs/recovery/dirfrag/frag_enable.yaml b/suites/kcephfs/recovery/dirfrag/frag_enable.yaml
new file mode 100644 (file)
index 0000000..9913fa1
--- /dev/null
@@ -0,0 +1,11 @@
+
+overrides:
+  ceph:
+    conf:
+      mds:
+        mds bal frag: true
+        mds bal fragment size max: 10000
+        mds bal split size: 100
+        mds bal merge size: 5
+        mds bal split bits: 3
+
diff --git a/suites/kcephfs/recovery/mounts/kmounts.yaml b/suites/kcephfs/recovery/mounts/kmounts.yaml
new file mode 100644 (file)
index 0000000..c18db8f
--- /dev/null
@@ -0,0 +1,4 @@
+tasks:
+- install:
+- ceph:
+- kclient:
diff --git a/suites/kcephfs/recovery/tasks/auto-repair.yaml b/suites/kcephfs/recovery/tasks/auto-repair.yaml
new file mode 100644 (file)
index 0000000..e331cdd
--- /dev/null
@@ -0,0 +1,11 @@
+overrides:
+  ceph:
+    log-whitelist:
+      - force file system read-only
+      - bad backtrace
+
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_auto_repair
diff --git a/suites/kcephfs/recovery/tasks/backtrace.yaml b/suites/kcephfs/recovery/tasks/backtrace.yaml
new file mode 100644 (file)
index 0000000..d740a5f
--- /dev/null
@@ -0,0 +1,5 @@
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_backtrace
diff --git a/suites/kcephfs/recovery/tasks/cap-flush.yam b/suites/kcephfs/recovery/tasks/cap-flush.yam
new file mode 100644 (file)
index 0000000..0d26dc9
--- /dev/null
@@ -0,0 +1,5 @@
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_cap_flush
diff --git a/suites/kcephfs/recovery/tasks/client-limits.yaml b/suites/kcephfs/recovery/tasks/client-limits.yaml
new file mode 100644 (file)
index 0000000..288866c
--- /dev/null
@@ -0,0 +1,11 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - responding to mclientcaps\(revoke\)
+      - not advance its oldest_client_tid
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_client_limits
diff --git a/suites/kcephfs/recovery/tasks/client-recovery.yaml b/suites/kcephfs/recovery/tasks/client-recovery.yaml
new file mode 100644 (file)
index 0000000..1433ee1
--- /dev/null
@@ -0,0 +1,13 @@
+
+# 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:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_client_recovery
diff --git a/suites/kcephfs/recovery/tasks/config-commands.yaml b/suites/kcephfs/recovery/tasks/config-commands.yaml
new file mode 100644 (file)
index 0000000..2f51801
--- /dev/null
@@ -0,0 +1,11 @@
+
+overrides:
+  ceph:
+    conf:
+      global:
+        lockdep: true
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_config_commands
diff --git a/suites/kcephfs/recovery/tasks/damage.yaml b/suites/kcephfs/recovery/tasks/damage.yaml
new file mode 100644 (file)
index 0000000..4b84977
--- /dev/null
@@ -0,0 +1,24 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - bad backtrace
+      - object missing on disk
+      - error reading table object
+      - error reading sessionmap
+      - Error loading MDS rank
+      - missing journal object
+      - Error recovering journal
+      - error decoding table object
+      - failed to read JournalPointer
+      - Corrupt directory entry
+      - Corrupt fnode header
+      - corrupt sessionmap header
+      - Corrupt dentry
+      - Scrub error on inode
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_damage
+
diff --git a/suites/kcephfs/recovery/tasks/data-scan.yaml b/suites/kcephfs/recovery/tasks/data-scan.yaml
new file mode 100644 (file)
index 0000000..dd0a85f
--- /dev/null
@@ -0,0 +1,15 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - bad backtrace
+      - object missing on disk
+      - error reading table object
+      - error reading sessionmap
+      - unmatched fragstat
+      - was unreadable, recreating it now
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_data_scan
diff --git a/suites/kcephfs/recovery/tasks/forward-scrub.yaml b/suites/kcephfs/recovery/tasks/forward-scrub.yaml
new file mode 100644 (file)
index 0000000..dbbed4b
--- /dev/null
@@ -0,0 +1,13 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - inode wrongly marked free
+      - bad backtrace on inode
+      - inode table repaired for inode
+      - Scrub error on inode
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_forward_scrub
diff --git a/suites/kcephfs/recovery/tasks/journal-repair.yaml b/suites/kcephfs/recovery/tasks/journal-repair.yaml
new file mode 100644 (file)
index 0000000..c85f46c
--- /dev/null
@@ -0,0 +1,11 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - bad backtrace on dir ino
+      - error reading table object
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_journal_repair
diff --git a/suites/kcephfs/recovery/tasks/mds-flush.yaml b/suites/kcephfs/recovery/tasks/mds-flush.yaml
new file mode 100644 (file)
index 0000000..d59a8ad
--- /dev/null
@@ -0,0 +1,5 @@
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_flush
diff --git a/suites/kcephfs/recovery/tasks/mds-full.yaml b/suites/kcephfs/recovery/tasks/mds-full.yaml
new file mode 100644 (file)
index 0000000..64ece03
--- /dev/null
@@ -0,0 +1,25 @@
+
+overrides:
+  ceph:
+    log-whitelist:
+      - OSD full dropping all updates
+      - OSD near full
+      - is full \(reached quota
+    conf:
+      osd:
+        osd mon report interval max: 5
+        osd objectstore: memstore
+        memstore device bytes: 100000000
+      client.0:
+        debug client: 20
+        debug objecter: 20
+        debug objectcacher: 20
+      client.1:
+        debug client: 20
+        debug objecter: 20
+        debug objectcacher: 20
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_full
diff --git a/suites/kcephfs/recovery/tasks/pool-perm.yaml b/suites/kcephfs/recovery/tasks/pool-perm.yaml
new file mode 100644 (file)
index 0000000..f220626
--- /dev/null
@@ -0,0 +1,5 @@
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_pool_perm
diff --git a/suites/kcephfs/recovery/tasks/sessionmap.yaml b/suites/kcephfs/recovery/tasks/sessionmap.yaml
new file mode 100644 (file)
index 0000000..054fdb7
--- /dev/null
@@ -0,0 +1,13 @@
+
+overrides:
+  ceph:
+    conf:
+      global:
+        ms type: simple
+    log-whitelist:
+      - client session with invalid root
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_sessionmap
diff --git a/suites/kcephfs/recovery/tasks/strays.yaml b/suites/kcephfs/recovery/tasks/strays.yaml
new file mode 100644 (file)
index 0000000..2809fc1
--- /dev/null
@@ -0,0 +1,5 @@
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_strays
diff --git a/suites/kcephfs/recovery/tasks/volume-client.yaml b/suites/kcephfs/recovery/tasks/volume-client.yaml
new file mode 100644 (file)
index 0000000..e8c850a
--- /dev/null
@@ -0,0 +1,11 @@
+
+overrides:
+  ceph:
+    conf:
+      global:
+        ms type: simple
+
+tasks:
+  - cephfs_test_runner:
+      modules:
+        - tasks.cephfs.test_volume_client
diff --git a/suites/kcephfs/recovery/xfs.yaml b/suites/kcephfs/recovery/xfs.yaml
new file mode 120000 (symlink)
index 0000000..0350079
--- /dev/null
@@ -0,0 +1 @@
+../../../fs/xfs.yaml
\ No newline at end of file