]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/mon/pg_autoscaler: Added bug-reproducer/test 50693/head
authorKamoltat <ksirivad@redhat.com>
Wed, 1 Mar 2023 21:07:54 +0000 (21:07 +0000)
committerKamoltat <ksirivad@redhat.com>
Mon, 27 Mar 2023 18:53:17 +0000 (18:53 +0000)
Added a bug-reproducer/test to fix:

https://tracker.ceph.com/issues/58894

Signed-off-by: Kamoltat <ksirivad@redhat.com>
(cherry picked from commit 009430b5548db028fe8d48b2469544eca419b526)

qa/workunits/mon/pg_autoscaler.sh

index bc5003f4c4e0c0988cee3dc6119bd0c11be1e8d2..4cf71a31cf4c9aefa98c4d068b48d7f2338b729e 100755 (executable)
@@ -137,10 +137,20 @@ ceph osd pool set bulk0 target_size_bytes 1000
 ceph osd pool set meta0 target_size_ratio 1
 wait_for 60 "ceph health detail | grep POOL_HAS_TARGET_SIZE_BYTES_AND_RATIO"
 
+# test autoscale warn
+
+ceph osd pool create warn0 1 --autoscale-mode=warn
+wait_for 120 "ceph health detail | grep POOL_TOO_FEW_PGS"
+
+ceph osd pool create warn1 256 --autoscale-mode=warn
+wait_for 120 "ceph health detail | grep POOL_TOO_MANY_PGS"
+
 ceph osd pool rm meta0 meta0 --yes-i-really-really-mean-it
 ceph osd pool rm bulk0 bulk0 --yes-i-really-really-mean-it
 ceph osd pool rm bulk1 bulk1 --yes-i-really-really-mean-it
 ceph osd pool rm bulk2 bulk2 --yes-i-really-really-mean-it
+ceph osd pool rm warn0 warn0 --yes-i-really-really-mean-it
+ceph osd pool rm warn1 warn1 --yes-i-really-really-mean-it
 
 echo OK