]> git.proxmox.com Git - ceph.git/blame - ceph/qa/workunits/test_telemetry_quincy.sh
update ceph source to reef 18.2.0
[ceph.git] / ceph / qa / workunits / test_telemetry_quincy.sh
CommitLineData
1e59de90
TL
1#!/bin/bash -ex
2
3# Set up ident details for cluster
4ceph config set mgr mgr/telemetry/channel_ident true
5ceph config set mgr mgr/telemetry/organization 'ceph-qa'
6ceph config set mgr mgr/telemetry/description 'upgrade test cluster'
7
8
9#Run preview commands
10ceph telemetry preview
11ceph telemetry preview-device
12ceph telemetry preview-all
13
14# Assert that new collections are available
15COLLECTIONS=$(ceph telemetry collection ls)
16NEW_COLLECTIONS=("perf_perf" "basic_mds_metadata" "basic_pool_usage" "basic_rook_v01" "perf_memory_metrics")
17for col in ${NEW_COLLECTIONS[@]}; do
18 if ! [[ $COLLECTIONS == *$col* ]];
19 then
20 echo "COLLECTIONS does not contain" "'"$col"'."
21 exit 1
22 fi
23done
24
25# Opt-in
26ceph telemetry on --license sharing-1-0
27
28# Enable perf channel
29ceph telemetry enable channel perf
30
31# For quincy, the last_opt_revision remains at 1 since last_opt_revision
32# was phased out for fresh installs of quincy.
33LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision)
34if [ $LAST_OPT_REVISION -ne 1 ]; then
35 echo "last_opt_revision is incorrect"
36 exit 1
37fi
38
39# Run show commands
40ceph telemetry show
41ceph telemetry show-device
42ceph telemetry show-all
43
44echo OK