test/iscsi_tgt: fix fio nightly test
fio write test on null bdev always fails. This patch replaces null bdev with malloc bdev to perform write test. Change-Id: I3192da5445c510227f53209cf27d819b58b3b6e0 Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/461905 Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
161c88a099
commit
002d49fe17
@ -84,12 +84,12 @@ $rpc_py add_initiator_group $INITIATOR_TAG $INITIATOR_NAME $NETMASK
|
|||||||
malloc_bdevs="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE) "
|
malloc_bdevs="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE) "
|
||||||
malloc_bdevs+="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)"
|
malloc_bdevs+="$($rpc_py construct_malloc_bdev $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE)"
|
||||||
$rpc_py construct_raid_bdev -n raid0 -s 64 -r 0 -b "$malloc_bdevs"
|
$rpc_py construct_raid_bdev -n raid0 -s 64 -r 0 -b "$malloc_bdevs"
|
||||||
$rpc_py construct_null_bdev null1 1024 512
|
bdev=$( $rpc_py construct_malloc_bdev 1024 512 )
|
||||||
# "raid0:0" ==> use raid0 blockdev for LUN0
|
# "raid0:0" ==> use raid0 blockdev for LUN0
|
||||||
# "1:2" ==> map PortalGroup1 to InitiatorGroup2
|
# "1:2" ==> map PortalGroup1 to InitiatorGroup2
|
||||||
# "64" ==> iSCSI queue depth 64
|
# "64" ==> iSCSI queue depth 64
|
||||||
# "-d" ==> disable CHAP authentication
|
# "-d" ==> disable CHAP authentication
|
||||||
$rpc_py construct_target_node Target3 Target3_alias 'raid0:0 null1:1' $PORTAL_TAG:$INITIATOR_TAG 64 -d
|
$rpc_py construct_target_node Target3 Target3_alias "raid0:0 ${bdev}:1" $PORTAL_TAG:$INITIATOR_TAG 64 -d
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
iscsiadm -m discovery -t sendtargets -p $TARGET_IP:$ISCSI_PORT
|
iscsiadm -m discovery -t sendtargets -p $TARGET_IP:$ISCSI_PORT
|
||||||
@ -127,8 +127,8 @@ for malloc_bdev in $malloc_bdevs; do
|
|||||||
$rpc_py delete_malloc_bdev $malloc_bdev
|
$rpc_py delete_malloc_bdev $malloc_bdev
|
||||||
done
|
done
|
||||||
|
|
||||||
# Delete null1 blockdev
|
# Delete malloc device
|
||||||
$rpc_py delete_null_bdev 'null1'
|
$rpc_py delete_malloc_bdev ${bdev}
|
||||||
|
|
||||||
fio_status=0
|
fio_status=0
|
||||||
wait $fio_pid || fio_status=$?
|
wait $fio_pid || fio_status=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user