summaryrefslogtreecommitdiffstats
path: root/qa/suites/fs/workload/tasks/3-snaps/yes.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /qa/suites/fs/workload/tasks/3-snaps/yes.yaml
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'qa/suites/fs/workload/tasks/3-snaps/yes.yaml')
-rw-r--r--qa/suites/fs/workload/tasks/3-snaps/yes.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/qa/suites/fs/workload/tasks/3-snaps/yes.yaml b/qa/suites/fs/workload/tasks/3-snaps/yes.yaml
new file mode 100644
index 000000000..598f7e215
--- /dev/null
+++ b/qa/suites/fs/workload/tasks/3-snaps/yes.yaml
@@ -0,0 +1,30 @@
+overrides:
+ ceph:
+ conf:
+ mgr:
+ debug cephsqlite: 20
+ check-counter:
+ counters:
+ mds:
+ - mds.root_rsnaps
+ - mds_server.req_mksnap_latency.avgcount
+ - mds_server.req_rmsnap_latency.avgcount
+tasks:
+- exec:
+ mon.a:
+ - ceph mgr module enable snap_schedule
+ - ceph config set mgr mgr/snap_schedule/allow_m_granularity true
+ - ceph config set mgr mgr/snap_schedule/dump_on_update true
+ - ceph fs snap-schedule add --fs=cephfs --path=/ --snap_schedule=1M
+ - ceph fs snap-schedule retention add --fs=cephfs --path=/ --retention-spec-or-period=6M3h
+ - ceph fs snap-schedule status --fs=cephfs --path=/
+ - ceph fs snap-schedule list --fs=cephfs --path=/ --recursive=true
+ - date +%s > START_TIME
+- full_sequential_finally:
+ - exec:
+ mon.a:
+ # Ensure that we have some snaps which get deleted (so check-counters does not fail)
+ - date +%s > END_TIME
+ - START_TIME=$(cat START_TIME); END_TIME=$(cat END_TIME); DIFF_TIME=$((600-(END_TIME-START_TIME))); if [ "$DIFF_TIME" -gt 0 ]; then sleep "$DIFF_TIME"; fi
+ - ceph fs snap-schedule status --fs=cephfs --path=/
+ - ceph fs snap-schedule list --fs=cephfs --path=/ --recursive=true