2022-10-08 06:50:25 +00:00
|
|
|
#!/bin/bash -ex
|
2022-08-05 19:13:13 +00:00
|
|
|
|
|
|
|
# Set up ident details for cluster
|
|
|
|
ceph config set mgr mgr/telemetry/channel_ident true
|
2022-11-17 16:46:55 +00:00
|
|
|
ceph config set mgr mgr/telemetry/organization 'ceph-qa'
|
|
|
|
ceph config set mgr mgr/telemetry/description 'upgrade test cluster'
|
2022-08-05 19:13:13 +00:00
|
|
|
|
|
|
|
# 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
|