mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
aea898db2b
Check the integer (fixed-point) value to avoid any worries about floating-point rounding. Add tests for reweight < 0. Fixes: #3872 Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Sage Weil <sage.weil@inktank.com>
29 lines
358 B
Bash
Executable File
29 lines
358 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 id in `ceph osd ls` ; do
|
|
ceph tell osd.$id version
|
|
done
|
|
|
|
echo OK
|
|
|