From 1bbc845477b4dd4f17752c906cfcd4df59f8dfda Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Fri, 12 Apr 2013 22:28:14 +0800 Subject: [PATCH] LU-3143 tests: use facet_active_host to get host In wait_osc_import_state() called in test_29a of recovery-small, facet_acitve_host should be used instead of facet_host for the host could change during failover with FAILURE_MODE=HARD. Test-Parameters: clientdistro=el6 serverdistro=el6 \ clientarch=x86_64 serverarch=x86_64 clientcount=4 \ osscount=2 mdscount=2 austeroptions=-R failover=true \ useiscsi=true testlist=recovery-small Signed-off-by: Hongchao Zhang Signed-off-by: Jian Yu Change-Id: I7fe45c7d979b64d802894c92eaad6f76bec3fadf Reviewed-on: http://review.whamcloud.com/6036 Tested-by: Hudson Reviewed-by: Niu Yawei Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 37fd231..7d3dbed 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -5155,7 +5155,7 @@ wait_osc_import_state() { params=$($LCTL list_param $param 2>/dev/null || true) done - if ! do_rpc_nodes "$(facet_host $facet)" \ + if ! do_rpc_nodes "$(facet_active_host $facet)" \ wait_import_state $expected "$params" $maxtime; then error "import is not in ${expected} state" return 1 -- 1.8.3.1