summaryrefslogtreecommitdiffstats
path: root/qa/workunits/test_telemetry_pacific.sh
blob: a971f5883f0369bf1240b64e895cd3a80424c1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -ex

# Set up ident details for cluster
ceph config set mgr mgr/telemetry/channel_ident true
ceph config set mgr mgr/telemetry/organization 'ceph-qa'
ceph config set mgr mgr/telemetry/description 'upgrade test cluster'

# Opt-in
ceph telemetry on --license sharing-1-0

# Check last_opt_revision
LAST_OPT_REVISION=$(ceph config get mgr mgr/telemetry/last_opt_revision)
if [ $LAST_OPT_REVISION -ne 3 ]; then
    echo "last_opt_revision is incorrect."
    exit 1
fi

# Check reports
ceph telemetry show
ceph telemetry show-device
ceph telemetry show-all

echo OK