]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/suites/rbd: refactor persistent-writeback-cache suite
authorIlya Dryomov <idryomov@gmail.com>
Sun, 24 Apr 2022 15:28:53 +0000 (17:28 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 9 Jun 2022 10:57:02 +0000 (12:57 +0200)
Rename to pwl-cache, introduce home subdirectory and 4-cache-path.yaml.
No functional changes.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 3475f9ef07af22c2efc427546d01dff3176f9240)

Conflicts:
qa/suites/rbd/pwl-cache/home/2-cluster/.qa [ commit
  1f714da81440 ("qa: fix or add missing .qa links") not in
  pacific ]
qa/suites/rbd/pwl-cache/home/5-cache-mode/.qa [ ditto ]

38 files changed:
qa/suites/rbd/persistent-writeback-cache/% [deleted file]
qa/suites/rbd/persistent-writeback-cache/.qa [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/1-base [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/2-cluster/+ [deleted file]
qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/2-cluster/fix-2.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/2-cluster/openstack.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/3-supported-random-distro$ [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/4-pool/big-cache.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/5-cache-mode/rwl.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/5-cache-mode/ssd.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/6-workloads/c_api_tests_with_defaults.yaml [deleted symlink]
qa/suites/rbd/persistent-writeback-cache/6-workloads/fio.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml [deleted file]
qa/suites/rbd/persistent-writeback-cache/6-workloads/recovery.yaml [deleted file]
qa/suites/rbd/pwl-cache/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/% [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/1-base [new symlink]
qa/suites/rbd/pwl-cache/home/2-cluster/+ [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/2-cluster/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/2-cluster/fix-2.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/2-cluster/openstack.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/3-supported-random-distro$ [new symlink]
qa/suites/rbd/pwl-cache/home/4-cache-path.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/5-cache-mode/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/5-cache-mode/rwl.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/5-cache-mode/ssd.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/6-cache-size/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/6-cache-size/1G.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/6-cache-size/8G.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/7-workloads/.qa [new symlink]
qa/suites/rbd/pwl-cache/home/7-workloads/c_api_tests_with_defaults.yaml [new symlink]
qa/suites/rbd/pwl-cache/home/7-workloads/fio.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/7-workloads/qemu_xfstests.yaml [new file with mode: 0644]
qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml [new file with mode: 0644]

diff --git a/qa/suites/rbd/persistent-writeback-cache/% b/qa/suites/rbd/persistent-writeback-cache/%
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/qa/suites/rbd/persistent-writeback-cache/.qa b/qa/suites/rbd/persistent-writeback-cache/.qa
deleted file mode 120000 (symlink)
index a602a03..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/1-base b/qa/suites/rbd/persistent-writeback-cache/1-base
deleted file mode 120000 (symlink)
index fd10a85..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../thrash/base
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/2-cluster/+ b/qa/suites/rbd/persistent-writeback-cache/2-cluster/+
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa b/qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa
deleted file mode 120000 (symlink)
index a602a03..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/2-cluster/fix-2.yaml b/qa/suites/rbd/persistent-writeback-cache/2-cluster/fix-2.yaml
deleted file mode 100644 (file)
index dbccecb..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-roles:
-- [mon.a, mgr.x, osd.0, osd.1]
-- [mon.b, mgr.y, osd.2, osd.3, client.0]
diff --git a/qa/suites/rbd/persistent-writeback-cache/2-cluster/openstack.yaml b/qa/suites/rbd/persistent-writeback-cache/2-cluster/openstack.yaml
deleted file mode 100644 (file)
index b113e4f..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-openstack:
-    - volumes: # attached to each instance
-        count: 4
-        size: 10 # GB
diff --git a/qa/suites/rbd/persistent-writeback-cache/3-supported-random-distro$ b/qa/suites/rbd/persistent-writeback-cache/3-supported-random-distro$
deleted file mode 120000 (symlink)
index 0862b44..0000000
+++ /dev/null
@@ -1 +0,0 @@
-.qa/distros/supported-random-distro$
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/4-pool/big-cache.yaml b/qa/suites/rbd/persistent-writeback-cache/4-pool/big-cache.yaml
deleted file mode 100644 (file)
index 7ac3f31..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-overrides:
-  ceph:
-    conf:
-      client:
-        rbd_persistent_cache_path: /home/ubuntu/cephtest/write_back_cache
-        rbd_persistent_cache_size: 8589934592
-        rbd_plugins: pwl_cache
-        rbd_default_features: 61
-tasks:
-- exec:
-    client.0:
-      - "mkdir -m 777 /home/ubuntu/cephtest/write_back_cache"
-- exec_on_cleanup:
-    client.0:
-      - "rm -rf /home/ubuntu/cephtest/write_back_cache"
diff --git a/qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml b/qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml
deleted file mode 100644 (file)
index 9265e7d..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-overrides:
-  ceph:
-    conf:
-      client:
-        rbd_persistent_cache_path: /home/ubuntu/cephtest/write_back_cache
-        rbd_persistent_cache_size: 1073741824
-        rbd_plugins: pwl_cache
-        rbd_default_features: 61
-tasks:
-- exec:
-    client.0:
-      - "mkdir -m 777 /home/ubuntu/cephtest/write_back_cache"
-- exec_on_cleanup:
-    client.0:
-      - "rm -rf /home/ubuntu/cephtest/write_back_cache"
diff --git a/qa/suites/rbd/persistent-writeback-cache/5-cache-mode/rwl.yaml b/qa/suites/rbd/persistent-writeback-cache/5-cache-mode/rwl.yaml
deleted file mode 100644 (file)
index 5aeab26..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-overrides:
-  ceph:
-    conf:
-      client:
-        rbd_persistent_cache_mode: rwl
diff --git a/qa/suites/rbd/persistent-writeback-cache/5-cache-mode/ssd.yaml b/qa/suites/rbd/persistent-writeback-cache/5-cache-mode/ssd.yaml
deleted file mode 100644 (file)
index 0821491..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-overrides:
-  ceph:
-    conf:
-      client:
-        rbd_persistent_cache_mode: ssd
diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa b/qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa
deleted file mode 120000 (symlink)
index a602a03..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/c_api_tests_with_defaults.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/c_api_tests_with_defaults.yaml
deleted file mode 120000 (symlink)
index 9490327..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../librbd/workloads/c_api_tests_with_defaults.yaml
\ No newline at end of file
diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/fio.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/fio.yaml
deleted file mode 100644 (file)
index f7aecce..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-tasks:
-- rbd_fio:
-    client.0:
-      fio-io-size: 100%
-      formats: [2]
-      io-engine: rbd
-      rw: randwrite
-      runtime: 600
diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml
deleted file mode 100644 (file)
index 255b963..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-tasks:
-- qemu:
-    client.0:
-      test: qa/run_xfstests_qemu.sh
-      type: block
-      cpus: 4
-      memory: 4096
-      disks: 3
diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/recovery.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/recovery.yaml
deleted file mode 100644 (file)
index 63a0c9d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-tasks:
-- rbd.create_image:
-    client.0:
-      image_name: testimage
-      image_size: 10
-      image_format: 2
-- exec:
-    client.0:
-      - "timeout 10s rbd bench --io-pattern rand --io-type write testimage || true"
-      - "rbd bench --io-type write --io-pattern rand --io-total 32M testimage"
diff --git a/qa/suites/rbd/pwl-cache/.qa b/qa/suites/rbd/pwl-cache/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/% b/qa/suites/rbd/pwl-cache/home/%
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rbd/pwl-cache/home/.qa b/qa/suites/rbd/pwl-cache/home/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/1-base b/qa/suites/rbd/pwl-cache/home/1-base
new file mode 120000 (symlink)
index 0000000..89c3c7e
--- /dev/null
@@ -0,0 +1 @@
+../../basic/base/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/2-cluster/+ b/qa/suites/rbd/pwl-cache/home/2-cluster/+
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/qa/suites/rbd/pwl-cache/home/2-cluster/.qa b/qa/suites/rbd/pwl-cache/home/2-cluster/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/2-cluster/fix-2.yaml b/qa/suites/rbd/pwl-cache/home/2-cluster/fix-2.yaml
new file mode 100644 (file)
index 0000000..dbccecb
--- /dev/null
@@ -0,0 +1,3 @@
+roles:
+- [mon.a, mgr.x, osd.0, osd.1]
+- [mon.b, mgr.y, osd.2, osd.3, client.0]
diff --git a/qa/suites/rbd/pwl-cache/home/2-cluster/openstack.yaml b/qa/suites/rbd/pwl-cache/home/2-cluster/openstack.yaml
new file mode 100644 (file)
index 0000000..b113e4f
--- /dev/null
@@ -0,0 +1,4 @@
+openstack:
+    - volumes: # attached to each instance
+        count: 4
+        size: 10 # GB
diff --git a/qa/suites/rbd/pwl-cache/home/3-supported-random-distro$ b/qa/suites/rbd/pwl-cache/home/3-supported-random-distro$
new file mode 120000 (symlink)
index 0000000..0862b44
--- /dev/null
@@ -0,0 +1 @@
+.qa/distros/supported-random-distro$
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/4-cache-path.yaml b/qa/suites/rbd/pwl-cache/home/4-cache-path.yaml
new file mode 100644 (file)
index 0000000..be4641b
--- /dev/null
@@ -0,0 +1,13 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd_persistent_cache_path: /home/ubuntu/cephtest/rbd-pwl-cache
+        rbd_plugins: pwl_cache
+tasks:
+- exec:
+    client.0:
+      - "mkdir -m 777 /home/ubuntu/cephtest/rbd-pwl-cache"
+- exec_on_cleanup:
+    client.0:
+      - "rm -rf /home/ubuntu/cephtest/rbd-pwl-cache"
diff --git a/qa/suites/rbd/pwl-cache/home/5-cache-mode/.qa b/qa/suites/rbd/pwl-cache/home/5-cache-mode/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/5-cache-mode/rwl.yaml b/qa/suites/rbd/pwl-cache/home/5-cache-mode/rwl.yaml
new file mode 100644 (file)
index 0000000..5aeab26
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd_persistent_cache_mode: rwl
diff --git a/qa/suites/rbd/pwl-cache/home/5-cache-mode/ssd.yaml b/qa/suites/rbd/pwl-cache/home/5-cache-mode/ssd.yaml
new file mode 100644 (file)
index 0000000..0821491
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd_persistent_cache_mode: ssd
diff --git a/qa/suites/rbd/pwl-cache/home/6-cache-size/.qa b/qa/suites/rbd/pwl-cache/home/6-cache-size/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/6-cache-size/1G.yaml b/qa/suites/rbd/pwl-cache/home/6-cache-size/1G.yaml
new file mode 100644 (file)
index 0000000..53fcddc
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd_persistent_cache_size: 1073741824
diff --git a/qa/suites/rbd/pwl-cache/home/6-cache-size/8G.yaml b/qa/suites/rbd/pwl-cache/home/6-cache-size/8G.yaml
new file mode 100644 (file)
index 0000000..b53d368
--- /dev/null
@@ -0,0 +1,5 @@
+overrides:
+  ceph:
+    conf:
+      client:
+        rbd_persistent_cache_size: 8589934592
diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/.qa b/qa/suites/rbd/pwl-cache/home/7-workloads/.qa
new file mode 120000 (symlink)
index 0000000..a602a03
--- /dev/null
@@ -0,0 +1 @@
+../.qa/
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/c_api_tests_with_defaults.yaml b/qa/suites/rbd/pwl-cache/home/7-workloads/c_api_tests_with_defaults.yaml
new file mode 120000 (symlink)
index 0000000..359001f
--- /dev/null
@@ -0,0 +1 @@
+../../../librbd/workloads/c_api_tests_with_defaults.yaml
\ No newline at end of file
diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/fio.yaml b/qa/suites/rbd/pwl-cache/home/7-workloads/fio.yaml
new file mode 100644 (file)
index 0000000..f7aecce
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- rbd_fio:
+    client.0:
+      fio-io-size: 100%
+      formats: [2]
+      io-engine: rbd
+      rw: randwrite
+      runtime: 600
diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/qemu_xfstests.yaml b/qa/suites/rbd/pwl-cache/home/7-workloads/qemu_xfstests.yaml
new file mode 100644 (file)
index 0000000..255b963
--- /dev/null
@@ -0,0 +1,8 @@
+tasks:
+- qemu:
+    client.0:
+      test: qa/run_xfstests_qemu.sh
+      type: block
+      cpus: 4
+      memory: 4096
+      disks: 3
diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml b/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml
new file mode 100644 (file)
index 0000000..63a0c9d
--- /dev/null
@@ -0,0 +1,10 @@
+tasks:
+- rbd.create_image:
+    client.0:
+      image_name: testimage
+      image_size: 10
+      image_format: 2
+- exec:
+    client.0:
+      - "timeout 10s rbd bench --io-pattern rand --io-type write testimage || true"
+      - "rbd bench --io-type write --io-pattern rand --io-total 32M testimage"