From: Elena Gryaznova Date: Wed, 10 Oct 2018 13:46:46 +0000 (+0300) Subject: LU-11490 tests: fix rr_alloc() test to use FSNAME X-Git-Tag: 2.12.0-RC1~161 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c0a1ef281a45fb0baf1f12a4282ea717efe9051d LU-11490 tests: fix rr_alloc() test to use FSNAME 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 Cray-bug-id: LUS-5955 Reviewed-by: Vladimir Saveliev Reviewed-by: Alexander Boyko Change-Id: Iebd147dd9757357bf7c8376e9271cb17f4d076a9 Reviewed-on: https://review.whamcloud.com/33333 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Alexandr Boyko Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index 92dd853..2eebe3d 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -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