nixos/tests/ceph: Fix pg number to power of 2
This commit is contained in:
parent
ec21f70c4b
commit
6ccd347e46
|
@ -183,15 +183,15 @@ let
|
||||||
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
||||||
|
|
||||||
monA.succeed(
|
monA.succeed(
|
||||||
"ceph osd pool create multi-node-test 100 100",
|
"ceph osd pool create multi-node-test 128 128",
|
||||||
"ceph osd pool ls | grep 'multi-node-test'",
|
"ceph osd pool ls | grep 'multi-node-test'",
|
||||||
"ceph osd pool rename multi-node-test multi-node-other-test",
|
"ceph osd pool rename multi-node-test multi-node-other-test",
|
||||||
"ceph osd pool ls | grep 'multi-node-other-test'",
|
"ceph osd pool ls | grep 'multi-node-other-test'",
|
||||||
)
|
)
|
||||||
monA.wait_until_succeeds("ceph -s | grep '1 pools, 100 pgs'")
|
monA.wait_until_succeeds("ceph -s | grep '1 pools, 128 pgs'")
|
||||||
monA.succeed("ceph osd pool set multi-node-other-test size 2")
|
monA.succeed("ceph osd pool set multi-node-other-test size 2")
|
||||||
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
||||||
monA.wait_until_succeeds("ceph -s | grep '100 active+clean'")
|
monA.wait_until_succeeds("ceph -s | grep '128 active+clean'")
|
||||||
monA.fail(
|
monA.fail(
|
||||||
"ceph osd pool ls | grep 'multi-node-test'",
|
"ceph osd pool ls | grep 'multi-node-test'",
|
||||||
"ceph osd pool delete multi-node-other-test multi-node-other-test --yes-i-really-really-mean-it",
|
"ceph osd pool delete multi-node-other-test multi-node-other-test --yes-i-really-really-mean-it",
|
||||||
|
|
|
@ -143,12 +143,12 @@ let
|
||||||
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
||||||
|
|
||||||
monA.succeed(
|
monA.succeed(
|
||||||
"ceph osd pool create single-node-test 100 100",
|
"ceph osd pool create single-node-test 128 128",
|
||||||
"ceph osd pool ls | grep 'single-node-test'",
|
"ceph osd pool ls | grep 'single-node-test'",
|
||||||
"ceph osd pool rename single-node-test single-node-other-test",
|
"ceph osd pool rename single-node-test single-node-other-test",
|
||||||
"ceph osd pool ls | grep 'single-node-other-test'",
|
"ceph osd pool ls | grep 'single-node-other-test'",
|
||||||
)
|
)
|
||||||
monA.wait_until_succeeds("ceph -s | grep '1 pools, 100 pgs'")
|
monA.wait_until_succeeds("ceph -s | grep '1 pools, 128 pgs'")
|
||||||
monA.succeed(
|
monA.succeed(
|
||||||
"ceph osd getcrushmap -o crush",
|
"ceph osd getcrushmap -o crush",
|
||||||
"crushtool -d crush -o decrushed",
|
"crushtool -d crush -o decrushed",
|
||||||
|
@ -158,7 +158,7 @@ let
|
||||||
"ceph osd pool set single-node-other-test size 2",
|
"ceph osd pool set single-node-other-test size 2",
|
||||||
)
|
)
|
||||||
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
monA.wait_until_succeeds("ceph -s | grep 'HEALTH_OK'")
|
||||||
monA.wait_until_succeeds("ceph -s | grep '100 active+clean'")
|
monA.wait_until_succeeds("ceph -s | grep '128 active+clean'")
|
||||||
monA.fail(
|
monA.fail(
|
||||||
"ceph osd pool ls | grep 'multi-node-test'",
|
"ceph osd pool ls | grep 'multi-node-test'",
|
||||||
"ceph osd pool delete single-node-other-test single-node-other-test --yes-i-really-really-mean-it",
|
"ceph osd pool delete single-node-other-test single-node-other-test --yes-i-really-really-mean-it",
|
||||||
|
|
Loading…
Reference in a new issue