From: Hannes Reinecke <hare@suse.de>
To: Daniel Wagner <dwagner@suse.de>,
Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org
Subject: Re: [PATCH blktests v2 0/9] nvme: make NVME_TARGET_CONTROL work with remote targets
Date: Fri, 20 Nov 2026 12:25:40 +0100 [thread overview]
Message-ID: <8fa5891f-aba9-47a8-9279-2fac66327edc@suse.de> (raw)
In-Reply-To: <20261118-nvme-target-control-v2-0-d191bbbf5dd6@suse.de>
On 11/18/26 10:26 AM, Daniel Wagner wrote:
> Hi all,
>
> this series makes running the nvme tests against a remote target with
> NVME_TARGET_CONTROL actually work. The first six patches of v1 have been
> applied, this is the rest. It applies on top of the series that makes
> tests skip when a program they need is missing.
>
> The first two patches are fixes: nvme/047 looks up the namespace again
> after reconnecting, and the nvmet target picks free service IDs for its
> ports. The third is a cleanup, nvme/042 and nvme/043 iterate over the
> DH-HMAC-CHAP hashes by name.
>
> The remaining patches let tests skip instead of failing when the remote
> target lacks a feature they need, including the DH-HMAC-CHAP hashes and
> DH groups the target doesn't support, add port and host key support for
> remote targets, and add a NetApp ONTAP target as an example of a target
> that can do less than nvmet.
>
> Tested against nvmet in a second VM, which also exported other
> subsystems on its own ports, and against a NetApp ONTAP array. All tests
> that can run against a remote target pass, except nvme/077 against
> nvmet, which checks attr_qid_max in the local nvmet configfs. Against
> the array, nvme/061 and nvme/070 fail because it refuses the reconnect
> after a subsystem is deleted and doesn't support Identify CNS 07h, and
> nvme/068 because the host runs a 6.4 kernel. The tests that need the
> kernel target still pass with the local target.
>
> Signed-off-by: Daniel Wagner <dwagner@suse.de>
> ---
> Changes in v2:
> - Drop the six patches that were applied.
> - Fix nvme/047 to look up the namespace again after reconnecting.
> - Pick free service IDs for new nvmet ports.
> - Pass the TLS option in the argument array instead of an unquoted
> command substitution; quoting it would pass an empty argument without
> TLS. (Shin'ichiro)
> - Check the features with =~, with an SC2076 exception for the literal
> match. (Shin'ichiro)
> - List the DH-HMAC-CHAP algorithms a target supports, iterate over them
> by name in nvme/042 and nvme/043 and skip the ones the target lacks.
> - Put the fixes first, then the cleanup, then the features.
> - Depend on the series that makes tests skip when a program is missing.
> - Link to v1: https://patch.msgid.link/20261104-nvme-target-control-v1-0-b31b40537bb4@suse.de
>
> ---
> Daniel Wagner (9):
> nvme/047: look up the namespace again after reconnecting
> contrib/nvme-target-control: pick a free service ID for new nvmet ports
> nvme/042, nvme/043: iterate over the DH-HMAC-CHAP hashes by name
> nvme: skip tests that need a feature the remote target lacks
> contrib/nvme-target-control: list the DH-HMAC-CHAP algorithms
> nvme: skip the DH-HMAC-CHAP algorithms the target doesn't support
> common/nvme: support the ports of a remote target
> nvme/rc: change the host keys on a remote target
> contrib/nvme-target-control: add a NetApp ONTAP target
>
> Documentation/running-tests.md | 49 ++-
> common/nvme | 88 ++++-
> contrib/nvme-target-control/README.md | 72 +++-
> .../nvme_target_control/target.py | 19 +
> .../nvme_target_control/targets/nvmet.py | 12 +-
> .../nvme_target_control/targets/nvmet.sh | 7 +-
> .../nvme_target_control/targets/ontap.py | 397 +++++++++++++++++++++
> contrib/nvme-target-control/tests/test_ontap.py | 357 ++++++++++++++++++
> .../tests/test_target_control.py | 4 +-
> tests/nvme/031 | 1 +
> tests/nvme/041 | 1 +
> tests/nvme/042 | 12 +-
> tests/nvme/042.out | 8 +-
> tests/nvme/043 | 9 +-
> tests/nvme/043.out | 6 +-
> tests/nvme/044 | 1 +
> tests/nvme/045 | 1 +
> tests/nvme/047 | 2 +
> tests/nvme/057 | 1 +
> tests/nvme/062 | 1 +
> tests/nvme/063 | 5 +-
> tests/nvme/rc | 58 +++
> 22 files changed, 1069 insertions(+), 42 deletions(-)
> ---
> base-commit: 79c32fb31b7bca6a4383b749030128683cf6b6b4
> change-id: 20261104-nvme-target-control-f0b239e68b29
> prerequisite-change-id: 20261117-skip-missing-deps-30b4084698c4:v1
> prerequisite-patch-id: 9478a4106d922c8432a4d297dcb18ed68a9c8d61
> prerequisite-patch-id: 635fcb82ae72c78b84ad593a58d82315a166724d
> prerequisite-patch-id: 528ad89bda84f0b0d9cbc0d38b6e1384332f86cd
> prerequisite-patch-id: 2758a16b44a326eea5113ff4967e6093ad42e71c
> prerequisite-patch-id: 9acbf0ff52b0b46035e4635035662cd9d9309f77
>
> Best regards,
> --
> Daniel Wagner <dwagner@suse.de>
>
>
Very nice, thank you!
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
next prev parent reply other threads:[~2026-11-20 11:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 9:26 [PATCH blktests v2 0/9] nvme: make NVME_TARGET_CONTROL work with remote targets Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 1/9] nvme/047: look up the namespace again after reconnecting Daniel Wagner
2026-11-20 11:23 ` Hannes Reinecke
2026-11-18 9:26 ` [PATCH blktests v2 2/9] contrib/nvme-target-control: pick a free service ID for new nvmet ports Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 3/9] nvme/042, nvme/043: iterate over the DH-HMAC-CHAP hashes by name Daniel Wagner
2026-11-28 2:31 ` Shin'ichiro Kawasaki
2026-11-18 9:26 ` [PATCH blktests v2 4/9] nvme: skip tests that need a feature the remote target lacks Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 5/9] contrib/nvme-target-control: list the DH-HMAC-CHAP algorithms Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 6/9] nvme: skip the DH-HMAC-CHAP algorithms the target doesn't support Daniel Wagner
2026-11-28 2:30 ` Shin'ichiro Kawasaki
2026-11-18 9:26 ` [PATCH blktests v2 7/9] common/nvme: support the ports of a remote target Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 8/9] nvme/rc: change the host keys on " Daniel Wagner
2026-11-18 9:26 ` [PATCH blktests v2 9/9] contrib/nvme-target-control: add a NetApp ONTAP target Daniel Wagner
2026-11-20 11:25 ` Hannes Reinecke [this message]
2026-11-28 2:34 ` [PATCH blktests v2 0/9] nvme: make NVME_TARGET_CONTROL work with remote targets Shin'ichiro 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=8fa5891f-aba9-47a8-9279-2fac66327edc@suse.de \
--to=hare@suse.de \
--cc=dwagner@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