From: vinayakswami hariharmath Date: Tue, 8 Sep 2015 06:20:25 +0000 (+0530) Subject: LU-6921 test: failed to operate on TBF rules X-Git-Tag: 2.7.62~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=sidebyside;h=abbef8759e93c31a2c88ba650a04ae9076600afa;p=fs%2Flustre-release.git LU-6921 test: failed to operate on TBF rules Operate tbf rules on ost1 rather than ost0. ost0 looks to be wrong target since OSTCOUNT starts from 1. Signed-off-by: vinayakswami hariharmath Change-Id: I57b4e1d09411638ba35b37473421c747958620cf Reviewed-on: http://review.whamcloud.com/16305 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Xi --- diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index b906b15..99b8649 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -2958,25 +2958,25 @@ test_77e() { error "failed to set TBF policy" done - # Only operate rules on ost0 since OSTs might run on the same OSS + # Only operate rules on ost1 since OSTs might run on the same OSS # Add some rules - tbf_rule_operate ost0 "start\ localhost\ {0@lo}\ 1000" + tbf_rule_operate ost1 "start\ localhost\ {0@lo}\ 1000" local address=$(comma_list "$(host_nids_address $CLIENTS $NETTYPE)") local client_nids=$(nids_list $address "\\") - tbf_rule_operate ost0 "start\ clients\ {$client_nids}\ 100" - tbf_rule_operate ost0 "start\ others\ {*.*.*.*@$NETTYPE}\ 50" + tbf_rule_operate ost1 "start\ clients\ {$client_nids}\ 100" + tbf_rule_operate ost1 "start\ others\ {*.*.*.*@$NETTYPE}\ 50" nrs_write_read # Change the rules - tbf_rule_operate ost0 "change\ localhost\ 1001" - tbf_rule_operate ost0 "change\ clients\ 101" - tbf_rule_operate ost0 "change\ others\ 51" + tbf_rule_operate ost1 "change\ localhost\ 1001" + tbf_rule_operate ost1 "change\ clients\ 101" + tbf_rule_operate ost1 "change\ others\ 51" nrs_write_read # Stop the rules - tbf_rule_operate ost0 "stop\ localhost" - tbf_rule_operate ost0 "stop\ clients" - tbf_rule_operate ost0 "stop\ others" + tbf_rule_operate ost1 "stop\ localhost" + tbf_rule_operate ost1 "stop\ clients" + tbf_rule_operate ost1 "stop\ others" nrs_write_read # Cleanup the TBF policy @@ -3009,23 +3009,23 @@ test_77f() { error "failed to set TBF policy" done - # Only operate rules on ost0 since OSTs might run on the same OSS + # Only operate rules on ost1 since OSTs might run on the same OSS # Add some rules - tbf_rule_operate ost0 "start\ runas\ {iozone.$RUNAS_ID\ dd.$RUNAS_ID\ tiotest.$RUNAS_ID}\ 1000" - tbf_rule_operate ost0 "start\ iozone_runas\ {iozone.$RUNAS_ID}\ 100" - tbf_rule_operate ost0 "start\ dd_runas\ {dd.$RUNAS_ID}\ 50" + tbf_rule_operate ost1 "start\ runas\ {iozone.$RUNAS_ID\ dd.$RUNAS_ID\ tiotest.$RUNAS_ID}\ 1000" + tbf_rule_operate ost1 "start\ iozone_runas\ {iozone.$RUNAS_ID}\ 100" + tbf_rule_operate ost1 "start\ dd_runas\ {dd.$RUNAS_ID}\ 50" nrs_write_read "$RUNAS" # Change the rules - tbf_rule_operate ost0 "change\ runas\ 1001" - tbf_rule_operate ost0 "change\ iozone_runas\ 101" - tbf_rule_operate ost0 "change\ dd_runas\ 51" + tbf_rule_operate ost1 "change\ runas\ 1001" + tbf_rule_operate ost1 "change\ iozone_runas\ 101" + tbf_rule_operate ost1 "change\ dd_runas\ 51" nrs_write_read "$RUNAS" # Stop the rules - tbf_rule_operate ost0 "stop\ runas" - tbf_rule_operate ost0 "stop\ iozone_runas" - tbf_rule_operate ost0 "stop\ dd_runas" + tbf_rule_operate ost1 "stop\ runas" + tbf_rule_operate ost1 "stop\ iozone_runas" + tbf_rule_operate ost1 "stop\ dd_runas" nrs_write_read "$RUNAS" # Cleanup the TBF policy @@ -3067,7 +3067,7 @@ test_77g() { # Add a rule that only valid for Jobid TBF. If direct change between # TBF types is not supported, this operation will fail. - tbf_rule_operate ost0 "start\ dd_runas\ {dd.$RUNAS_ID}\ 50" + tbf_rule_operate ost1 "start\ dd_runas\ {dd.$RUNAS_ID}\ 50" # Cleanup the TBF policy for i in $(seq 1 $OSTCOUNT)