]> git.proxmox.com Git - ceph.git/blob - 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
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.
5 LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision)
6 if [ $LAST_OPT_REVISION -ne 1 ]; then
7 echo "last_opt_revision is incorrect"
8 exit 1
9 fi
10
11 # Check the warning:
12 ceph -s
13
14 COLLECTIONS=$(ceph telemetry collection ls)
15 NEW_COLLECTIONS=("perf_perf" "basic_mds_metadata" "basic_pool_usage" "basic_rook_v01" "perf_memory_metrics")
16 for col in ${NEW_COLLECTIONS[@]}; do
17 if ! [[ $COLLECTIONS == *$col* ]];
18 then
19 echo "COLLECTIONS does not contain" "'"$col"'."
20 exit 1
21 fi
22 done
23
24 #Run preview commands
25 ceph telemetry preview
26 ceph telemetry preview-device
27 ceph 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
33 ceph telemetry show
34 ceph telemetry show-device
35 ceph telemetry show
36
37 # Opt out
38 ceph telemetry off
39
40 echo OK