From: Niu Yawei Date: Tue, 10 May 2011 02:43:54 +0000 (-0700) Subject: LU-285 Minor fix for sanity test_180a X-Git-Tag: 2.0.62.0~33 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=f619a3829abf9092d93dbc86ae604816cdccbae4;hp=ce1098c261ba563bd2b2c2e9b8a1cc930b725925 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 --- 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 \