sanity-dom:sanityn:test_19 is always skipped because of
get_osd_param() is called incorrectly for DOM=yes.
For osd-* MDT device is to be used instead of default
device=${2:-$FSNAME-OST*}
Fixes:
a7625cd2f37a ("LU-3285 test: add Data-on-MDT tests and fixes")
Test-Parameters: trivial testlist=sanity-dom env=ONLY=sanityn
Test-Parameters: trivial testlist=sanityn env=ONLY=19
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-9965
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Change-Id: I2bb9fc7fbaac966ea2254071e7ea82b963a93ad3
Reviewed-on: https://review.whamcloud.com/43774
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
test_19() { # bug3811
local node=$(facet_active_host ost1)
test_19() { # bug3811
local node=$(facet_active_host ost1)
+ local device="$FSNAME-OST*"
- [ "x$DOM" = "xyes" ] && node=$(facet_active_host $SINGLEMDS)
+ [ "x$DOM" = "xyes" ] && node=$(facet_active_host $SINGLEMDS) &&
+ device="$FSNAME-MDT*"
# check whether obdfilter is cache capable at all
# check whether obdfilter is cache capable at all
- get_osd_param $node '' read_cache_enable >/dev/null ||
+ get_osd_param $node $device read_cache_enable >/dev/null ||
skip "not cache-capable obdfilter"
skip "not cache-capable obdfilter"
- local MAX=$(get_osd_param $node '' readcache_max_filesize | head -n 1)
- set_osd_param $node '' readcache_max_filesize 4096
+ local max=$(get_osd_param $node $device readcache_max_filesize |\
+ head -n 1)
+ set_osd_param $node $device readcache_max_filesize 4096
dd if=/dev/urandom of=$TMP/$tfile bs=512k count=32
local SUM=$(cksum $TMP/$tfile | cut -d" " -f 1,2)
cp $TMP/$tfile $DIR1/$tfile
dd if=/dev/urandom of=$TMP/$tfile bs=512k count=32
local SUM=$(cksum $TMP/$tfile | cut -d" " -f 1,2)
cp $TMP/$tfile $DIR1/$tfile
[ "$(cat $TMP/sum2)" = "$SUM" ] || \
error "$DIR2/$tfile $(cat $TMP/sum2) != $SUM"
done
[ "$(cat $TMP/sum2)" = "$SUM" ] || \
error "$DIR2/$tfile $(cat $TMP/sum2) != $SUM"
done
- set_osd_param $node '' readcache_max_filesize $MAX
+ set_osd_param $node $device readcache_max_filesize $max
rm $DIR1/$tfile
}
run_test 19 "test concurrent uncached read races ==============="
rm $DIR1/$tfile
}
run_test 19 "test concurrent uncached read races ==============="