From 0044d5e99dc4f3dc506179cb61e4f687b30f4f1a Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Sat, 16 Jul 2022 08:54:38 +0200 Subject: [PATCH] qa/tasks: rename persistent write log cache trash task It doesn't really thrash anything, just repeatedly restarts the workload on top of a dirty cache file. rbd_pwl_cache_recovery is more on point and gets covered by existing CODEOWNERS. Signed-off-by: Ilya Dryomov (cherry picked from commit 2de0574382e2c1c63f20745d6870ac7f82b27b9f) --- qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml | 2 +- ..._write_log_cache_thrash.py => rbd_pwl_cache_recovery.py} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename qa/tasks/{persistent_write_log_cache_thrash.py => rbd_pwl_cache_recovery.py} (93%) diff --git a/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml b/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml index a991308c69174..3017beb22fb58 100644 --- a/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml +++ b/qa/suites/rbd/pwl-cache/home/7-workloads/recovery.yaml @@ -4,6 +4,6 @@ tasks: image_name: testimage image_size: 10240 image_format: 2 -- persistent_write_log_cache_thrash: +- rbd_pwl_cache_recovery: client.0: image_name: testimage diff --git a/qa/tasks/persistent_write_log_cache_thrash.py b/qa/tasks/rbd_pwl_cache_recovery.py similarity index 93% rename from qa/tasks/persistent_write_log_cache_thrash.py rename to qa/tasks/rbd_pwl_cache_recovery.py index d487c76664b05..e13c1f6644766 100644 --- a/qa/tasks/persistent_write_log_cache_thrash.py +++ b/qa/tasks/rbd_pwl_cache_recovery.py @@ -1,5 +1,5 @@ """ -persistent write log cache thrash task +persistent write log cache recovery task """ import contextlib import logging @@ -81,10 +81,10 @@ def thrashes_rbd_bench_on_persistent_cache(ctx, config): @contextlib.contextmanager def task(ctx, config): """ - This is task for testing persistent write log cache thrash. + This is task for testing persistent write log cache recovery. """ assert isinstance(config, dict), \ - "task persistent_write_log_cache_thrash only supports a dictionary for configuration" + "task rbd_pwl_cache_recovery only supports a dictionary for configuration" managers = [] config = teuthology.replace_all_with_clients(ctx.cluster, config) -- 2.39.5