ceph/qa/workunits/cephtool/test.sh
Dan Mick 2491f976e4 workunits/cephtool: add tests for ceph osd pool set/get
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-01-18 22:36:31 -08:00

40 lines
683 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
! ceph tell osd.foo version
ceph osd reweight 0 0.9
! ceph osd reweight 0 -1
ceph osd reweight 0 1
for s in pg_num pgp_num size min_size crash_replay_interval crush_ruleset; do
ceph osd pool get data $s
done
ceph osd pool get data size | grep 'size: 2'
ceph osd pool set data size 3
ceph osd pool get data size | grep 'size: 3'
ceph osd pool set data size 2
ceph osd pool get rbd crush_ruleset | grep 'crush_ruleset: 2'
for id in `ceph osd ls` ; do
ceph tell osd.$id version
done
echo OK