Merge pull request #46045 from idryomov/wip-qa-rwl-on-tmpfs

qa/suites/rbd: place cache file on tmpfs for xfstests

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
This commit is contained in:
Ilya Dryomov 2022-06-07 10:39:31 +02:00 committed by GitHub
commit 9324b49ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
41 changed files with 82 additions and 32 deletions

View File

@ -1 +0,0 @@
../thrash/base

View File

@ -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"

View File

@ -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"

View File

@ -1 +0,0 @@
../../librbd/workloads/c_api_tests_with_defaults.yaml

View File

@ -0,0 +1 @@
../../basic/base/

View File

@ -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"

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_size: 1073741824

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_size: 8589934592

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1 @@
../../../librbd/workloads/c_api_tests_with_defaults.yaml

View File

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1 @@
../../basic/base/

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1,3 @@
roles:
- [mon.a, mgr.x, osd.0, osd.1]
- [mon.b, mgr.y, osd.2, osd.3, client.0]

View File

@ -0,0 +1,4 @@
openstack:
- volumes: # attached to each instance
count: 4
size: 10 # GB

View File

@ -0,0 +1 @@
.qa/distros/supported-random-distro$

View File

@ -0,0 +1,22 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_path: /home/ubuntu/cephtest/rbd-pwl-cache
rbd_plugins: pwl_cache
tasks:
- exec:
client.0:
- "mkdir /home/ubuntu/cephtest/tmpfs"
- "mkdir /home/ubuntu/cephtest/rbd-pwl-cache"
- "sudo mount -t tmpfs -o size=20G tmpfs /home/ubuntu/cephtest/tmpfs"
- "truncate -s 20G /home/ubuntu/cephtest/tmpfs/loopfile"
- "mkfs.ext4 /home/ubuntu/cephtest/tmpfs/loopfile"
- "sudo mount -o loop /home/ubuntu/cephtest/tmpfs/loopfile /home/ubuntu/cephtest/rbd-pwl-cache"
- "sudo chmod 777 /home/ubuntu/cephtest/rbd-pwl-cache"
- exec_on_cleanup:
client.0:
- "sudo umount /home/ubuntu/cephtest/rbd-pwl-cache"
- "sudo umount /home/ubuntu/cephtest/tmpfs"
- "rm -rf /home/ubuntu/cephtest/rbd-pwl-cache"
- "rm -rf /home/ubuntu/cephtest/tmpfs"

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_mode: rwl

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_mode: ssd

View File

@ -0,0 +1 @@
../.qa/

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_size: 1073741824

View File

@ -0,0 +1,5 @@
overrides:
ceph:
conf:
client:
rbd_persistent_cache_size: 5368709120

View File

@ -0,0 +1 @@
../.qa/