From 8020bf0cc8a055a9b5ae347b8b1ac582113686bc Mon Sep 17 00:00:00 2001 From: Alex Zhuravlev Date: Thu, 22 Mar 2018 20:48:06 +0300 Subject: [PATCH] LU-10838 tests: replay-single/89 to wait for recovery with a single client (e.g. local setup) test 89 should wait for recovery completion. client_up (i.e. lfs df) is not enough as the new client's OSC will be skipped being not active. Change-Id: I859edfc5a38cbac44377c7660fabb87db55978e9 Signed-off-by: Alex Zhuravlev Reviewed-on: https://review.whamcloud.com/31729 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- lustre/tests/replay-single.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index ada7584..9daa1fa 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -3313,6 +3313,12 @@ test_89() { mount_facet ost1 zconf_mount $(hostname) $MOUNT || error "mount fails" client_up || error "client_up failed" + + # wait for the remounted client to connect to ost1 + local target=$(get_osc_import_name client ost1) + wait_import_state "FULL" "osc.${target}.ost_server_uuid" \ + $(max_recovery_time) + wait_mds_ost_sync || error "MDS-OST sync timed out" wait_delete_completed || error "wait delete timed out" local blocks2=$(df -P $MOUNT | tail -n 1 | awk '{ print $3 }') -- 1.8.3.1