]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | #!/bin/bash -ex |
2 | ||
3 | # Set up ident details for cluster | |
4 | ceph config set mgr mgr/telemetry/channel_ident true | |
5 | ceph config set mgr mgr/telemetry/organization 'ceph-qa' | |
6 | ceph config set mgr mgr/telemetry/description 'upgrade test cluster' | |
7 | ||
8 | ||
9 | #Run preview commands | |
10 | ceph telemetry preview | |
11 | ceph telemetry preview-device | |
12 | ceph telemetry preview-all | |
13 | ||
14 | # Assert that new collections are available | |
15 | COLLECTIONS=$(ceph telemetry collection ls) | |
16 | NEW_COLLECTIONS=("perf_perf" "basic_mds_metadata" "basic_pool_usage" "basic_rook_v01" "perf_memory_metrics") | |
17 | for col in ${NEW_COLLECTIONS[@]}; do | |
18 | if ! [[ $COLLECTIONS == *$col* ]]; | |
19 | then | |
20 | echo "COLLECTIONS does not contain" "'"$col"'." | |
21 | exit 1 | |
22 | fi | |
23 | done | |
24 | ||
25 | # Opt-in | |
26 | ceph telemetry on --license sharing-1-0 | |
27 | ||
28 | # Enable perf channel | |
29 | ceph 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. | |
33 | LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision) | |
34 | if [ $LAST_OPT_REVISION -ne 1 ]; then | |
35 | echo "last_opt_revision is incorrect" | |
36 | exit 1 | |
37 | fi | |
38 | ||
39 | # Run show commands | |
40 | ceph telemetry show | |
41 | ceph telemetry show-device | |
42 | ceph telemetry show-all | |
43 | ||
44 | echo OK |