From db35c4eabf530ee84420302e8a9d4f79c016d6e1 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Thu, 29 Dec 2011 09:40:36 -0500 Subject: [PATCH] LU-635 tests: conf-sanity 27 28 29 30 35 43 failures Several test in conf-sanity would fail with a error This command must be run on the MGS. This was due to seperating the MGS and MDS. I tracked down the fix to doing a pdsh for several lctl commands to MGS instead of the MDS. Signed-off-by: James Simmons Change-Id: I721472b15821e2dbcc636292a8e82c1a1b5e0149 Reviewed-on: http://review.whamcloud.com/1869 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Wei Liu Reviewed-by: Oleg Drokin --- lustre/tests/conf-sanity.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 0957d3d..be76532 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -957,7 +957,7 @@ set_and_check() { FINAL=$(($ORIG + 5)) fi echo "Setting $PARAM from $ORIG to $FINAL" - do_facet $SINGLEMDS "$LCTL conf_param $PARAM='$FINAL'" || error conf_param failed + do_facet mgs "$LCTL conf_param $PARAM='$FINAL'" || error conf_param failed wait_update $(facet_host $myfacet) "$TEST" "$FINAL" || error check failed! } @@ -1442,7 +1442,7 @@ test_35a() { # bug 12459 log "Set up a fake failnode for the MDS" FAKENID="127.0.0.2" local device=$(do_facet $SINGLEMDS "lctl get_param -n devices" | awk '($3 ~ "mdt" && $4 ~ "MDT") { print $4 }' | head -1) - do_facet $SINGLEMDS $LCTL conf_param ${device}.failover.node=$FAKENID || return 4 + do_facet mgs $LCTL conf_param ${device}.failover.node=$FAKENID || return 4 log "Wait for RECONNECT_INTERVAL seconds (10s)" sleep 10 @@ -1496,7 +1496,7 @@ test_35b() { # bug 18674 FAKENID="127.0.0.2" local device=$(do_facet $SINGLEMDS "$LCTL get_param -n devices" | \ awk '($3 ~ "mdt" && $4 ~ "MDT") { print $4 }' | head -1) - do_facet $SINGLEMDS "$LCTL conf_param ${device}.failover.node=$FAKENID" || \ + do_facet mgs "$LCTL conf_param ${device}.failover.node=$FAKENID" || \ return 1 local at_max_saved=0 -- 1.8.3.1