public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Nir Rigai <nir.rigai@volumez.com>
Cc: "hch@lst.de" <hch@lst.de>, "hare@suse.com" <hare@suse.com>,
	"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
	Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Subject: Re: TLS over TCP connection failure
Date: Sun, 11 Feb 2024 23:45:18 +0000	[thread overview]
Message-ID: <a69a47dd-bb86-47be-ae74-1d26c64bd409@nvidia.com> (raw)
In-Reply-To: <587CD834-9978-4D44-BA69-4AADE3DE2E06@volumez.com>

On 2/11/24 07:05, Nir Rigai wrote:
> Hi all,
>
> We failed to enable TLS over TCP with the latest 6.8-rc3 from upstream.
> We have followed the guidelines outlined in https://lwn.net/Articles/941139/.
> The NVMe connection failed post-authentication
>
> The steps and the outputs from the process:
> # Target creation
> modprobe nvmet-tcp
> mkdir /sys/kernel/config/nvmet/ports/10
> echo -n "127.0.0.1" > /sys/kernel/config/nvmet/ports/10/addr_traddr
> echo -n ipv4 > /sys/kernel/config/nvmet/ports/10/addr_adrfam
> echo -n tcp > /sys/kernel/config/nvmet/ports/10/addr_trtype
> echo -n 4420 > /sys/kernel/config/nvmet/ports/10/addr_trsvcid
> echo tls1.3 > /sys/kernel/config/nvmet/ports/10/addr_tsas
> mkdir /sys/kernel/config/nvmet/subsystems/nqn.test
> echo 1 > /sys/kernel/config/nvmet/subsystems/nqn.test/attr_allow_any_host
> mkdir /sys/kernel/config/nvmet/subsystems/nqn.test/namespaces/1
> echo "/dev/nvme1n1" > /sys/kernel/config/nvmet/subsystems/nqn.test/namespaces/1/device_path
> echo 1 > /sys/kernel/config/nvmet/subsystems/nqn.test/namespaces/1/enable
> ln -s /sys/kernel/config/nvmet/subsystems/nqn.test /sys/kernel/config/nvmet/ports/10/subsystems/
>    # Create keys and start the tlshd service:
> modprobe nvme-tcp
> nvme gen-tls-key --subsysnqn=nqn.test -i
> nvme gen-tls-key --subsysnqn=nqn.2014-08.org.nvmexpress.discovery -i
> #tlshd -c /etc/tlshd.conf
> systemctl start tlshd.service
> nvme connect -t tcp -a 127.0.0.1 -s 4420 -n nqn.test --tls
>

can you please submit the blktests for this if it is not there in nvme 
category ?
it will help this to get regularly tested and establish stability ...

please CC Shinichiro (CC'd here) and me on that

https://github.com/osandov/blktests

-ck



  reply	other threads:[~2024-02-12  2:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-11 15:05 TLS over TCP connection failure Nir Rigai
2024-02-11 23:45 ` Chaitanya Kulkarni [this message]
2024-02-12 11:05   ` Nir Rigai

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=a69a47dd-bb86-47be-ae74-1d26c64bd409@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=hare@suse.com \
    --cc=hch@lst.de \
    --cc=linux-nvme@lists.infradead.org \
    --cc=nir.rigai@volumez.com \
    --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