From: lixiaoy1 Date: Fri, 15 Jan 2021 11:17:04 +0000 (-0500) Subject: qa: add tests for persistent writeback cache X-Git-Tag: v16.2.0~157^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f30f1d7614e66f3d59369adf1fd07d2b660bd7cc;p=ceph.git qa: add tests for persistent writeback cache Signed-off-by: Li, Xiaoyan (cherry picked from commit 86ae486cb1654ebbfdb853fe1f9497ac6629d1a8) --- diff --git a/qa/suites/rbd/persistent-writeback-cache/% b/qa/suites/rbd/persistent-writeback-cache/% new file mode 100644 index 00000000000..e69de29bb2d diff --git a/qa/suites/rbd/persistent-writeback-cache/.qa b/qa/suites/rbd/persistent-writeback-cache/.qa new file mode 120000 index 00000000000..a602a0353e7 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/.qa @@ -0,0 +1 @@ +../.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 new file mode 120000 index 00000000000..fd10a859de2 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/1-base @@ -0,0 +1 @@ +../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/+ new file mode 100644 index 00000000000..e69de29bb2d diff --git a/qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa b/qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa new file mode 120000 index 00000000000..a602a0353e7 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/2-cluster/.qa @@ -0,0 +1 @@ +../.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 new file mode 100644 index 00000000000..dbccecbceaa --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/2-cluster/fix-2.yaml @@ -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/persistent-writeback-cache/2-cluster/openstack.yaml b/qa/suites/rbd/persistent-writeback-cache/2-cluster/openstack.yaml new file mode 100644 index 00000000000..b113e4f2ef7 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/2-cluster/openstack.yaml @@ -0,0 +1,4 @@ +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$ new file mode 120000 index 00000000000..0862b4457b3 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/3-supported-random-distro$ @@ -0,0 +1 @@ +.qa/distros/supported-random-distro$ \ No newline at end of file diff --git a/qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml b/qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml new file mode 100644 index 00000000000..9265e7dd89d --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/4-pool/cache.yaml @@ -0,0 +1,15 @@ +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 new file mode 100644 index 00000000000..5aeab26b349 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/5-cache-mode/rwl.yaml @@ -0,0 +1,5 @@ +overrides: + ceph: + conf: + client: + rbd_persistent_cache_mode: rwl diff --git a/qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa b/qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa new file mode 120000 index 00000000000..a602a0353e7 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/6-workloads/.qa @@ -0,0 +1 @@ +../.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 new file mode 120000 index 00000000000..9490327251b --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/6-workloads/c_api_tests_with_defaults.yaml @@ -0,0 +1 @@ +../../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 new file mode 100644 index 00000000000..f7aecce8aeb --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/6-workloads/fio.yaml @@ -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/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml new file mode 100644 index 00000000000..255b9631e39 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/6-workloads/qemu_xfstests.yaml @@ -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/persistent-writeback-cache/6-workloads/recovery.yaml b/qa/suites/rbd/persistent-writeback-cache/6-workloads/recovery.yaml new file mode 100644 index 00000000000..63a0c9dcf25 --- /dev/null +++ b/qa/suites/rbd/persistent-writeback-cache/6-workloads/recovery.yaml @@ -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"