Whamcloud - gitweb
LU-11490 tests: fix rr_alloc() test to use FSNAME 33/33333/2
authorElena Gryaznova <c17455@cray.com>
Wed, 10 Oct 2018 13:46:46 +0000 (16:46 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Oct 2018 05:19:20 +0000 (05:19 +0000)
Patch fixes rr_alloc() test to use FSNAME instead of lustre in
the parameter path.

Test-Parameters: testlist=trivial testlist=parallel-scale envdefinitions=ONLY=rr_alloc
Signed-off-by: Elena Gryaznova <c17455@cray.com>
Cray-bug-id: LUS-5955
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Alexander Boyko <c17825@cray.com>
Change-Id: Iebd147dd9757357bf7c8376e9271cb17f4d076a9
Reviewed-on: https://review.whamcloud.com/33333
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/functions.sh

index 92dd853..2eebe3d 100644 (file)
@@ -1029,9 +1029,9 @@ run_rr_alloc() {
        # Save mdt values, set threshold to 100% i.e always Round Robin,
        # restore the saved values again after creating files...
        save_lustre_params mds1 \
-               "lov.lustre-MDT0000*.qos_threshold_rr" > $qos_prec_objs
+               "lov.$FSNAME-MDT0000*.qos_threshold_rr" > $qos_prec_objs
        save_lustre_params mds1 \
-               "osp.lustre-OST*-osc-MDT0000.create_count" >> $qos_prec_objs
+               "osp.$FSNAME-OST*-osc-MDT0000.create_count" >> $qos_prec_objs
 
        local old_create_count=$(grep -e "create_count" $qos_prec_objs |
                cut -d'=' -f 2 | sort -nr | head -n1)
@@ -1046,8 +1046,8 @@ run_rr_alloc() {
        foeo_calc=$((rr_alloc_NFILES * total_MNTPTS / OSTCOUNT))
        local create_count=$((2 * foeo_calc))
        do_facet mds1 "$LCTL set_param -n \
-               lov.lustre-MDT0000*.qos_threshold_rr 100 \
-               osp.lustre-OST*-osc-MDT0000.create_count $create_count" ||
+               lov.$FSNAME-MDT0000*.qos_threshold_rr 100 \
+               osp.$FSNAME-OST*-osc-MDT0000.create_count $create_count" ||
                error "failed while setting qos_threshold_rr & creat_count"
 
        # Create few temporary files in order to increase the precreated objects