From 153e561ac6b21c111c4474202cfbb3385bb10e8e Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 9 Oct 2012 13:20:25 -0400 Subject: [PATCH] LU-2131 tests: sanity using ost0 instead of ost1 In sanity test 81a,81b and the jobstat function are testing against ost0 which technically don't exist. The test framework starts the OSTs with ost1. This patch has the test use the proper ost1. Signed-off-by: James Simmons Change-Id: Ibb7e647b8d6a736ca930e9294aacf584c9c49880 Reviewed-on: http://review.whamcloud.com/4232 Tested-by: Hudson Reviewed-by: Andreas Dilger Reviewed-by: Keith Mannthey Tested-by: Maloo --- lustre/tests/sanity.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index dc195a4..d9c0afa 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4973,7 +4973,7 @@ test_81a() { # LU-456 remote_ost_nodsh && skip "remote OST with nodsh" && return # define OBD_FAIL_OST_MAPBLK_ENOSPC 0x228 # MUST OR with the OBD_FAIL_ONCE (0x80000000) - do_facet ost0 lctl set_param fail_loc=0x80000228 + do_facet ost1 lctl set_param fail_loc=0x80000228 # write should trigger a retry and success $SETSTRIPE -i 0 -c 1 $DIR/$tfile @@ -4989,7 +4989,7 @@ test_81b() { # LU-456 remote_ost_nodsh && skip "remote OST with nodsh" && return # define OBD_FAIL_OST_MAPBLK_ENOSPC 0x228 # Don't OR with the OBD_FAIL_ONCE (0x80000000) - do_facet ost0 lctl set_param fail_loc=0x228 + do_facet ost1 lctl set_param fail_loc=0x228 # write should retry several times and return -ENOSPC finally $SETSTRIPE -i 0 -c 1 $DIR/$tfile @@ -9150,7 +9150,7 @@ verify_jobstats() { # clear old jobstats do_facet $SINGLEMDS lctl set_param mdt.*.job_stats="clear" - do_facet ost0 lctl set_param obdfilter.*.job_stats="clear" + do_facet ost1 lctl set_param obdfilter.*.job_stats="clear" # use a new JobID for this test, or we might see an old one [ "$JOBENV" = "FAKE_JOBID" ] && FAKE_JOBID=test_id.$testnum.$RANDOM @@ -9171,7 +9171,7 @@ verify_jobstats() { grep $JOBVAL || error "No job stats found on MDT $FACET" fi if [ "$target" = "ost" -o "$target" = "both" ]; then - FACET=ost0 + FACET=ost1 do_facet $FACET lctl get_param obdfilter.*.job_stats | grep $JOBVAL || error "No job stats found on OST $FACET" fi -- 1.8.3.1