mirror of
https://github.com/ceph/ceph
synced 2025-02-20 09:27:35 +00:00
Merge pull request #16444 from tchaikov/wip-test-osd-stat
qa/workunits/cephtool/test.sh: "ceph osd stat" output changed, update accordingly Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
This commit is contained in:
commit
acc24bf0dc
@ -1962,12 +1962,12 @@ function test_mon_osd_pool_set()
|
||||
ceph osd pool set $TEST_POOL_GETSET pgp_num 10
|
||||
|
||||
old_pgs=$(ceph osd pool get $TEST_POOL_GETSET pg_num | sed -e 's/pg_num: //')
|
||||
new_pgs=$(($old_pgs+$(ceph osd stat | grep osdmap | awk '{print $3})*32))
|
||||
new_pgs=$(($old_pgs + $(ceph osd stat --format json | jq '.num_osds') * 32))
|
||||
ceph osd pool set $TEST_POOL_GETSET pg_num $new_pgs
|
||||
ceph osd pool set $TEST_POOL_GETSET pgp_num $new_pgs
|
||||
wait_for_clean
|
||||
old_pgs=$(ceph osd pool get $TEST_POOL_GETSET pg_num | sed -e 's/pg_num: //')
|
||||
new_pgs=$(($old_pgs+$(ceph osd stat | grep osdmap | awk '{print $3})*32+1))
|
||||
new_pgs=$(($old_pgs + $(ceph osd stat --format json | jq '.num_osds') * 32 + 1))
|
||||
expect_false ceph osd pool set $TEST_POOL_GETSET pg_num $new_pgs
|
||||
|
||||
ceph osd pool set $TEST_POOL_GETSET nosizechange 1
|
||||
|
Loading…
Reference in New Issue
Block a user