From d0636eede1ab340421177c6a97ec27689099f953 Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Wed, 11 Feb 2015 08:48:12 -0500 Subject: [PATCH] LU-4839 tests: wait for copytool start sanity-hsm/60 Wait for copytool to start transfer before checking progress interval. copytool, in certain environments (heavily loaded NFS backed target), can take an extrodinarly long time (>30s) to open destination file. Signed-off-by: Nathaniel Clark Change-Id: I56908a16240b61a51fe1395a8104eddc6aa3131f Reviewed-on: http://review.whamcloud.com/13731 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: Faccini Bruno Reviewed-by: Henri Doreau Reviewed-by: Oleg Drokin --- lustre/tests/sanity-hsm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 3624f30..c2c84ef 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -2803,6 +2803,16 @@ test_60() { $LFS hsm_archive --archive $HSM_ARCHIVE_NUMBER $f || error "could not archive file" + local agent=$(facet_active_host $SINGLEAGT) + local prefix=$TESTLOG_PREFIX + [[ -z "$TESTNAME" ]] || prefix=$prefix.$TESTNAME + local copytool_log=$prefix.copytool_log.$agent.log + + + wait_update $agent \ + "grep -o start.copy $copytool_log" "start copy" 100 || + error "copytool failed to start" + local cmd="$LCTL get_param -n ${mdt}.hsm.active_requests" cmd+=" | awk '/'$fid'.*action=ARCHIVE/ {print \\\$12}' | cut -f2 -d=" -- 1.8.3.1