From: Daniel Wagner <dwagner@suse.de>
To: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org,
Chaitanya Kulkarni <chaitanyak@nvidia.com>,
Hannes Reinecke <hare@suse.de>, Daniel Wagner <dwagner@suse.de>
Subject: [PATCH blktests v2 16/18] nvme/{041,042,043,044,045,048}: do not pass default host{nqn|id} to _nvme_connect_subsys
Date: Fri, 22 Mar 2024 14:50:13 +0100 [thread overview]
Message-ID: <20240322135015.14712-17-dwagner@suse.de> (raw)
In-Reply-To: <20240322135015.14712-1-dwagner@suse.de>
There is no point in passing the default values to
_nvme_connect_subsys, thus drop these arguments.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
---
tests/nvme/041 | 7 ++-----
tests/nvme/042 | 8 ++------
tests/nvme/043 | 8 ++------
tests/nvme/044 | 16 ++++------------
tests/nvme/045 | 4 +---
tests/nvme/048 | 4 +---
6 files changed, 12 insertions(+), 35 deletions(-)
diff --git a/tests/nvme/041 b/tests/nvme/041
index d6845628726e..f1fa00c0f420 100755
--- a/tests/nvme/041
+++ b/tests/nvme/041
@@ -38,16 +38,13 @@ test() {
# Test unauthenticated connection (should fail)
echo "Test unauthenticated connection (should fail)"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}"
+ _nvme_connect_subsys
_nvme_disconnect_subsys
# Test authenticated connection
echo "Test authenticated connection"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
diff --git a/tests/nvme/042 b/tests/nvme/042
index 480e1cba9d19..a9e79c6a13b4 100755
--- a/tests/nvme/042
+++ b/tests/nvme/042
@@ -41,9 +41,7 @@ test() {
fi
_set_nvmet_hostkey "${def_hostnqn}" "${hostkey}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -57,9 +55,7 @@ test() {
fi
_set_nvmet_hostkey "${def_hostnqn}" "${hostkey}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
diff --git a/tests/nvme/043 b/tests/nvme/043
index dd48035dd967..4589423d4335 100755
--- a/tests/nvme/043
+++ b/tests/nvme/043
@@ -45,9 +45,7 @@ test() {
_set_nvmet_hash "${def_hostnqn}" "${hash}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
@@ -58,9 +56,7 @@ test() {
_set_nvmet_dhgroup "${def_hostnqn}" "${dhgroup}"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
done
diff --git a/tests/nvme/044 b/tests/nvme/044
index 624b832c0cc6..8b8859068660 100755
--- a/tests/nvme/044
+++ b/tests/nvme/044
@@ -49,18 +49,14 @@ test() {
# Step 1: Connect with host authentication only
echo "Test host authentication"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}"
+ _nvme_connect_subsys --dhchap-secret "${hostkey}"
_nvme_disconnect_subsys
# Step 2: Connect with host authentication
# and invalid ctrl authentication
echo "Test invalid ctrl authentication (should fail)"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${hostkey}"
_nvme_disconnect_subsys
@@ -68,9 +64,7 @@ test() {
# Step 3: Connect with host authentication
# and valid ctrl authentication
echo "Test valid ctrl authentication"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${ctrlkey}"
_nvme_disconnect_subsys
@@ -79,9 +73,7 @@ test() {
# and invalid ctrl key
echo "Test invalid ctrl key (should fail)"
invkey="DHHC-1:00:Jc/My1o0qtLCWRp+sHhAVafdfaS7YQOMYhk9zSmlatobqB8C:"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${invkey}"
_nvme_disconnect_subsys
diff --git a/tests/nvme/045 b/tests/nvme/045
index 3a5df7c0946c..87ac3c019970 100755
--- a/tests/nvme/045
+++ b/tests/nvme/045
@@ -51,9 +51,7 @@ test() {
_set_nvmet_dhgroup "${def_hostnqn}" "ffdhe2048"
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --dhchap-secret "${hostkey}" \
+ _nvme_connect_subsys --dhchap-secret "${hostkey}" \
--dhchap-ctrl-secret "${ctrlkey}"
echo "Re-authenticate with original host key"
diff --git a/tests/nvme/048 b/tests/nvme/048
index 79620e0d0879..0b299a91288b 100755
--- a/tests/nvme/048
+++ b/tests/nvme/048
@@ -99,9 +99,7 @@ test() {
_nvmet_target_setup --blkdev file
if [[ -f "${cfs_path}/attr_qid_max" ]] ; then
- _nvme_connect_subsys --hostnqn "${def_hostnqn}" \
- --hostid "${def_hostid}" \
- --keep-alive-tmo 1 \
+ _nvme_connect_subsys --keep-alive-tmo 1 \
--reconnect-delay 2
if ! nvmf_wait_for_state "${def_subsysnqn}" "live" ; then
--
2.44.0
next prev parent reply other threads:[~2024-03-22 15:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 13:49 [PATCH blktests v2 00/18] refactoring and various cleanups/fixes Daniel Wagner
2024-03-22 13:49 ` [PATCH blktests v2 01/18] nvme/rc: silence error on module unload for fc Daniel Wagner
2024-03-22 13:49 ` [PATCH blktests v2 02/18] nvme/rc: silence fcloop cleanup failures Daniel Wagner
2024-03-25 18:27 ` Daniel Wagner
2024-03-26 8:39 ` Shinichiro Kawasaki
2024-03-26 9:23 ` Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 03/18] nvme/rc: log error if stale configuration is found Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 04/18] common/xfs: propagate errors from _xfs_run_fio_verify_io Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 05/18] nvme/{012,013,035}: check return value of _xfs_run_fio_verify_io Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 06/18] nvme/rc: use long command line option for nvme Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 07/18] nvme/{014,015,018,019,020,023,024,026,045,046}: " Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 08/18] nvme/rc: connect subsys only support long options Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 09/18] nvme/rc: add nqn/uuid args to target setup/cleanup helper Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 10/18] nvme/rc: remove unused connect options Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 11/18] nvme/rc: do not cleanup external managed loop device Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 12/18] nvme/031: do not open code target setup/cleanup Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 13/18] nvme: drop default trtype argument for _nvmet_connect_subsys Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 14/18] nvme: drop default trtype argument for _nvmet_passthru_target_connect Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 15/18] nvme: drop default subsysnqn argument from _nvme_{connect|disconnect}_subsys Daniel Wagner
2024-03-26 8:47 ` Shinichiro Kawasaki
2024-03-22 13:50 ` Daniel Wagner [this message]
2024-03-22 13:50 ` [PATCH blktests v2 17/18] nvme: don't assume namespace id Daniel Wagner
2024-03-22 13:50 ` [PATCH blktests v2 18/18] nvme/028: drop unused nvmedev Daniel Wagner
2024-04-16 2:50 ` [PATCH blktests v2 00/18] refactoring and various cleanups/fixes Chaitanya Kulkarni
2024-04-16 4:56 ` Shinichiro Kawasaki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240322135015.14712-17-dwagner@suse.de \
--to=dwagner@suse.de \
--cc=chaitanyak@nvidia.com \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=shinichiro.kawasaki@wdc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox