]> git.proxmox.com Git - ceph.git/blame - ceph/qa/workunits/test_telemetry_quincy_x.sh
update ceph source to reef 18.2.0
[ceph.git] / ceph / qa / workunits / test_telemetry_quincy_x.sh
CommitLineData
1e59de90
TL
1#!/bin/bash -ex
2
3# For quincy, the last_opt_revision remains at 1 since last_opt_revision
4# was phased out for fresh installs of quincy.
5LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision)
6if [ $LAST_OPT_REVISION -ne 1 ]; then
7 echo "last_opt_revision is incorrect"
8 exit 1
9fi
10
11# Check the warning:
12ceph -s
13
14COLLECTIONS=$(ceph telemetry collection ls)
15NEW_COLLECTIONS=("perf_perf" "basic_mds_metadata" "basic_pool_usage" "basic_rook_v01" "perf_memory_metrics")
16for col in ${NEW_COLLECTIONS[@]}; do
17 if ! [[ $COLLECTIONS == *$col* ]];
18 then
19 echo "COLLECTIONS does not contain" "'"$col"'."
20 exit 1
21 fi
22done
23
24#Run preview commands
25ceph telemetry preview
26ceph telemetry preview-device
27ceph telemetry preview-all
28
29# Opt in to new collections
30# Currently, no new collections between latest quincy and reef (dev)
31
32# Run show commands
33ceph telemetry show
34ceph telemetry show-device
35ceph telemetry show
36
37# Opt out
38ceph telemetry off
39
40echo OK