]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone: Expand testing cases
authorAdam Kupczyk <akupczyk@ibm.com>
Tue, 21 Jan 2025 17:09:57 +0000 (17:09 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 6 Feb 2025 08:35:04 +0000 (08:35 +0000)
Now randomly select Allocator File / Allocations on RockDB.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit cc1bd71f4ed36303f48ce45f353cfe224a90f29c)

qa/standalone/osd/osd-bluefs-volume-ops.sh

index f7424de8ce1309a1074c853cd29097c41f5e368d..175425601200f8a11a33e39505ac210e043417c0 100755 (executable)
@@ -33,6 +33,8 @@ function TEST_bluestore() {
     CEPH_ARGS+="--bluestore_block_wal_size=536870912 "
     CEPH_ARGS+="--bluestore_block_wal_create=true "
     CEPH_ARGS+="--bluestore_fsck_on_mount=true "
+    #choosing randomly allocation from file
+    CEPH_ARGS+="--bluestore_allocation_from_file=$((RANDOM % 2)) "
 
     run_mon $dir a || return 1
     run_mgr $dir x || return 1
@@ -465,7 +467,7 @@ function TEST_bluestore_expand() {
     total_space_after=$( ceph tell osd.0 perf dump bluefs | jq ".bluefs.slow_total_bytes" )
     free_space_after=`ceph tell osd.0 bluestore bluefs device info | grep "BDEV_SLOW" -A 2 | grep free | cut -d':' -f 2 | cut -d"," -f 1 | cut -d' ' -f 2`
 
-    if [$total_space_after != $requested_space]; then
+    if [ $total_space_after != $requested_space ]; then
        echo "total_space_after = $total_space_after"
        echo "requested_space   = $requested_space"
        return 1;