ceph/qa/workunits/cephtool/test.sh
Sage Weil 2e49d5c4b7 cephtool: add qa workunit
A few basic sanity checks, including a tell on a down osd.

Signed-off-by: Sage Weil <sage@inktank.com>
2012-12-19 08:37:42 -08:00

25 lines
301 B
Bash
Executable File

#!/bin/sh -x
set -e
ceph status
ceph -s
ceph quorum_status
ceph osd dump
ceph osd tree
ceph pg dump
ceph mon dump
ceph mds dump
ceph tell osd.0 version
ceph tell osd.9999 version && exit 1
ceph tell osd.foo version && exit 1
for id in `ceph osd ls` ; do
ceph tell osd.$id version
done
echo OK