From 0665d62cac18f0766f4c3b5a375dd9ae942e7163 Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Tue, 21 Jan 2025 17:09:57 +0000 Subject: [PATCH] qa/standalone: Expand testing cases Now randomly select Allocator File / Allocations on RockDB. Signed-off-by: Adam Kupczyk (cherry picked from commit cc1bd71f4ed36303f48ce45f353cfe224a90f29c) --- qa/standalone/osd/osd-bluefs-volume-ops.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/standalone/osd/osd-bluefs-volume-ops.sh b/qa/standalone/osd/osd-bluefs-volume-ops.sh index f7424de8ce1..17542560120 100755 --- a/qa/standalone/osd/osd-bluefs-volume-ops.sh +++ b/qa/standalone/osd/osd-bluefs-volume-ops.sh @@ -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; -- 2.39.5