From f4d2ba4371b841163927da634c34be7c14b05356 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Thu, 29 Apr 2021 22:37:55 +0800 Subject: [PATCH] test/nvmf: use recommended nvmf_create_subsystem rpc There are logs like below in existing CI tests: "nvmf_subsystem_create is deprecated, use nvmf_create_subsystem instead." Change-Id: Id257ab13120a71ad3d0ae7ed22ed6e0a4f005cf0 Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7670 Tested-by: SPDK CI Jenkins Reviewed-by: Monica Kenguva Reviewed-by: Aleksey Marchuk Reviewed-by: Tomasz Zawadzki --- test/compress/compress.sh | 2 +- test/nvmf/host/target_disconnect.sh | 2 +- test/nvmf/target/dif.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/compress/compress.sh b/test/compress/compress.sh index ae18778d6..7ee601227 100755 --- a/test/compress/compress.sh +++ b/test/compress/compress.sh @@ -99,7 +99,7 @@ if [ $RUN_NIGHTLY -eq 1 ]; then # Create an NVMe-oF subsystem and add compress bdevs as namespaces $rpc_py nvmf_create_transport -t $TEST_TRANSPORT -u 8192 create_vols - $rpc_py nvmf_subsystem_create nqn.2016-06.io.spdk:cnode0 -a -s SPDK0 + $rpc_py nvmf_create_subsystem nqn.2016-06.io.spdk:cnode0 -a -s SPDK0 $rpc_py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode0 COMP_lvs0/lv0 $rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode0 -t $TEST_TRANSPORT -a $NVMF_FIRST_TARGET_IP -s $NVMF_PORT diff --git a/test/nvmf/host/target_disconnect.sh b/test/nvmf/host/target_disconnect.sh index 22c077afb..27bb2a3bc 100755 --- a/test/nvmf/host/target_disconnect.sh +++ b/test/nvmf/host/target_disconnect.sh @@ -18,7 +18,7 @@ function disconnect_init() { $rpc_py bdev_malloc_create $MALLOC_BDEV_SIZE $MALLOC_BLOCK_SIZE -b Malloc0 $rpc_py nvmf_create_transport $NVMF_TRANSPORT_OPTS - $rpc_py nvmf_subsystem_create nqn.2016-06.io.spdk:cnode1 -a -s SPDK00000000000001 + $rpc_py nvmf_create_subsystem nqn.2016-06.io.spdk:cnode1 -a -s SPDK00000000000001 $rpc_py nvmf_subsystem_add_ns nqn.2016-06.io.spdk:cnode1 Malloc0 $rpc_py nvmf_subsystem_add_listener nqn.2016-06.io.spdk:cnode1 -t $TEST_TRANSPORT -a $1 -s $NVMF_PORT diff --git a/test/nvmf/target/dif.sh b/test/nvmf/target/dif.sh index 7d82edb15..b08bace1e 100755 --- a/test/nvmf/target/dif.sh +++ b/test/nvmf/target/dif.sh @@ -15,7 +15,7 @@ create_subsystem() { # Make sure NQN matches what's used in gen_nvmf_target_json() rpc_cmd bdev_null_create "bdev_null$sub_id" "$NULL_SIZE" "$NULL_BLOCK_SIZE" --md-size "$NULL_META" --dif-type "$NULL_DIF" - rpc_cmd nvmf_subsystem_create "nqn.2016-06.io.spdk:cnode$sub_id" --serial-number "53313233-$sub_id" --allow-any-host + rpc_cmd nvmf_create_subsystem "nqn.2016-06.io.spdk:cnode$sub_id" --serial-number "53313233-$sub_id" --allow-any-host rpc_cmd nvmf_subsystem_add_ns "nqn.2016-06.io.spdk:cnode$sub_id" "bdev_null$sub_id" rpc_cmd nvmf_subsystem_add_listener "nqn.2016-06.io.spdk:cnode$sub_id" -t "$TEST_TRANSPORT" -a "$NVMF_FIRST_TARGET_IP" -s "$NVMF_PORT" }