cephtool: add qa workunit

A few basic sanity checks, including a tell on a down osd.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-12-19 08:37:42 -08:00
parent b2eb8bd2ed
commit 2e49d5c4b7

24
qa/workunits/cephtool/test.sh Executable file
View File

@ -0,0 +1,24 @@
#!/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