From f619a3829abf9092d93dbc86ae604816cdccbae4 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Mon, 9 May 2011 19:43:54 -0700 Subject: [PATCH 1/1] LU-285 Minor fix for sanity test_180a Call 'lctl add_uuid' to make sure we can find the loopback nid Signed-off-by: Niu Yawei Change-Id: Ib94e0478a9ec4ed93ae6dde59bbac89ce5466543 Reviewed-on: http://review.whamcloud.com/521 Tested-by: Hudson Reviewed-by: Prakash Surya Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6b2cbdc..49c4c35 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -7385,6 +7385,9 @@ setup_obdecho_osc () { local ost_nid=$1 local obdfilter_name=$2 echo "Creating new osc for $obdfilter_name on $ost_nid" + # make sure we can find loopback nid + $LCTL add_uuid $ost_nid $ost_nid >/dev/null 2>&1 + [ $rc -eq 0 ] && { $LCTL attach osc ${obdfilter_name}_osc \ ${obdfilter_name}_osc_UUID || rc=2; } [ $rc -eq 0 ] && { $LCTL --device ${obdfilter_name}_osc setup \ -- 1.8.3.1