]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: bring test_telemetry_reef_x.sh for squid
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 22 Aug 2023 10:57:52 +0000 (10:57 +0000)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Mon, 4 Dec 2023 15:27:51 +0000 (16:27 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
doc/dev/release-checklists.rst
qa/workunits/test_telemetry_reef_x.sh [new file with mode: 0755]

index 2f83eff7f7788d439744456f591802f9c9a6dcc5..bb4777eee63668ad36854908c967a6f03c00d426 100644 (file)
@@ -105,6 +105,7 @@ Code cleanup
 QA suite
 --------
 
+- [x] create qa/workunits/test_telemetry_(X-1)_x.sh
 - [ ] create qa/suites/upgrade/(X-1)-x
 - [x] remove qa/suites/upgrade/(X-3)-x-*
 - [x] create qa/releases/X.yaml
diff --git a/qa/workunits/test_telemetry_reef_x.sh b/qa/workunits/test_telemetry_reef_x.sh
new file mode 100755 (executable)
index 0000000..4e1a905
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/bash -ex
+
+# For quincy, the last_opt_revision remains at 1 since last_opt_revision
+# was phased out for fresh installs of quincy.
+LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision)
+if [ $LAST_OPT_REVISION -ne 1 ]; then
+    echo "last_opt_revision is incorrect"
+    exit 1
+fi
+
+# Check the warning:
+ceph -s
+
+COLLECTIONS=$(ceph telemetry collection ls)
+NEW_COLLECTIONS=("perf_perf" "basic_mds_metadata" "basic_pool_usage" "basic_rook_v01" "perf_memory_metrics")
+for col in ${NEW_COLLECTIONS[@]}; do
+    if ! [[ $COLLECTIONS == *$col* ]];
+    then
+        echo "COLLECTIONS does not contain" "'"$col"'."
+       exit 1
+    fi
+done
+
+#Run preview commands
+ceph telemetry preview
+ceph telemetry preview-device
+ceph telemetry preview-all
+
+# Opt in to new collections
+# Currently, no new collections between latest reef and squid (dev)
+
+# Run show commands
+ceph telemetry show
+ceph telemetry show-device
+ceph telemetry show
+
+# Opt out
+ceph telemetry off
+
+echo OK