Whamcloud - gitweb
LU-4665 tests: support specifying arbitrary OST indices 22/9722/8
authorJian Yu <jian.yu@intel.com>
Sat, 20 Sep 2014 00:05:55 +0000 (20:05 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Sep 2014 02:42:26 +0000 (02:42 +0000)
commit70f87b667557ea29011d9ed02824724118122e20
treeb9287fb384938b987bd9e930fd836bd662fa4cff
parent020941416419ab282f3d9b694014b2059d299d51
LU-4665 tests: support specifying arbitrary OST indices

This patch improves Lustre test framework to support specifying
arbitrary OST indices via OST_INDEX_LIST or OSTINDEX${num}.

For example,

OSTINDEX1="1"
OSTINDEX2="2"
OSTINDEX3="4"
......
or
OST_INDEX_LIST="[1,2,4-6,8]" #[n-m,l-k,...], where n < m and l < k

The default index of an individual OST is its facet number minus 1.

Function facet_index() is added to get index for a facet.

Test-Parameters: alwaysuploadlogs \
envdefinitions=OST_INDEX_LIST=[0-5] ostcount=7 \
testlist=sanity,conf-sanity

Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Icf5d377d4d10995c2fb501bf7762ec8937466fdc
Reviewed-on: http://review.whamcloud.com/9722
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/cfg/local.sh
lustre/tests/test-framework.sh