Whamcloud - gitweb
LU-18100 pcc: fix the error when get pcc_async_threshold 15/56015/2
authorQian Yingjin <qian@ddn.com>
Tue, 13 Aug 2024 03:09:55 +0000 (11:09 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:06:26 +0000 (22:06 +0000)
Add "head -n 1" when get llite.*.pcc_async_threshold in the
sanity-pcc/test_102.
Otherwise, it will cause the failure when restore the valule.

Test-Parameters: trivial testlist=sanity-pcc
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I9618797a09dadbb358601ad602075547c02207c2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56015
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-pcc.sh

index 92b9ec4..ba7ffad 100755 (executable)
@@ -4255,7 +4255,8 @@ test_102() {
        setup_pcc_mapping client \
                "projid={0}\ roid=$HSM_ARCHIVE_NUMBER\ pccro=1"
 
-       local thresh=$($LCTL get_param -n llite.*.pcc_async_threshold)
+       local thresh=$($LCTL get_param -n llite.*.pcc_async_threshold |
+                      head -n 1)
 
        stack_trap "do_facet $SINGLEAGT $LCTL set_param \
                    llite.*.pcc_async_threshold=$thresh"