Whamcloud - gitweb
LU-3003 tests: Do "lctl conf_param" on mds1 in t32_test()
authorLi Wei <wei.g.li@intel.com>
Mon, 25 Mar 2013 05:59:25 +0000 (13:59 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Mar 2013 22:00:10 +0000 (18:00 -0400)
With DNE, conf-sanity 32c inovkes "lctl conf_param" on mds2's host,
which may not be where the MGS is running, causing errors like:

  CMD: c05 /usr/sbin/lctl conf_param
  t32fs-MDT0001.mdc.max_rpcs_in_flight=9
  c05: No device found for name MGS: Invalid argument
  c05: This command must be run on the MGS.
  c05: error: conf_param: No such device
   conf-sanity test_32c: @@@@@@ FAIL: Setting MDT1
  "max_rpcs_in_flight"

This patch changes these "lctl conf_param" commands to set the same
parameters but on mds1's host, which always hosts the MGS.

Change-Id: Ibdca2802eaf33db504ed2b41a356d7a18be33f10
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/5829
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/conf-sanity.sh

index d29fd7e..c752454 100644 (file)
@@ -1655,16 +1655,16 @@ t32_test() {
        }
 
        if [ "$dne_upgrade" != "no" ]; then
-               $r2 $LCTL conf_param \
+               $r $LCTL conf_param \
                                $fsname-MDT0001.mdc.max_rpcs_in_flight=9 || {
                        error_noexit "Setting MDT1 \"max_rpcs_in_flight\""
                        return 1
                }
-               $r2 $LCTL conf_param $fsname-MDT0001.failover.node=$nid || {
+               $r $LCTL conf_param $fsname-MDT0001.failover.node=$nid || {
                        error_noexit "Setting MDT1 \"failover.node\""
                        return 1
                }
-               $r2 $LCTL conf_param $fsname-MDT0001.lov.stripesize=4M || {
+               $r $LCTL conf_param $fsname-MDT0001.lov.stripesize=4M || {
                        error_noexit "Setting MDT1 \"lov.stripesize\""
                        return 1
                }