[PATCHv14 00/11] nvme: In-band authentication support

Hannes Reinecke hare at suse.de
Fri Jun 10 02:44:15 PDT 2022


On 6/10/22 11:28, Chaitanya Kulkarni wrote:
> On 6/10/22 02:12, Hannes Reinecke wrote:
>> On 6/10/22 10:55, Chaitanya Kulkarni wrote:
>>>
>>>>>
>>>>> blktests (master) # ./check nvme/039
>>>>> nvme/039 (Create authenticated connections)                  [failed]
>>>>>         runtime  1.400s  ...  1.707s
>>>>>         --- tests/nvme/039.out    2022-06-08 18:09:06.239931529 -0700
>>>>>         +++ /mnt/data/blktests/results/nodev/nvme/039.out.bad
>>>>> 2022-06-08
>>>>> 18:09:40.596663692 -0700
>>>>>         @@ -1,6 +1,7 @@
>>>>>          Running nvme/039
>>>>>         +tests/nvme/rc: line 269: printf: write error: Invalid argument
>>>>>          Test unauthenticated connection
>>>>>         -no controller found
>>>>>         +no controller found: failed to write to nvme-fabrics device
>>>>>          NQN:blktests-subsystem-1 disconnected 0 controller(s)
>>>>>          Test authenticated connection
>>>>>         ...
>>>>>         (Run 'diff -u tests/nvme/039.out >
>>>>> /mnt/data/blktests/results/nodev/nvme/039.out.bad' to see the entire
>>>> diff)
>>>>
>>>> Hmm. Not sure what has happened here, but all blktests worked on my
>>>> testbed. I'll be rechecking with the latest nvme-cli build.
>>>>
>>>> Which nvme-cli version did you use?
>>>>
>>>
>>> ~ # nvme --version
>>> nvme version 2.0 (git 2.0-96-g0b286b1)
>>> libnvme version 1.0 (git 1.0-62-gaacaeea)
>>> ~ #
>>>
>>> I'm I using wrong version ?
>>>
>>> Can we please add check in the blktests to skip the test
>>> if we have wrong wrong nvme-cli version ? it will help
>>> others to not misdiagnosed the problem...
>>>
>> Hmm. No, that version looks okay.
>>
>> What's the kernel message log? Does it say something about 'dev_loss_tmo' ?
>>
>> If so, can you try with 'export nvme_trtype=tcp' and then running the
>> tests? Previous versions of nvme-cli had issues with nvme-loop, and were
>> trying to set the 'dev_loss_tmo' parameter, which isn't valid for loop.
>>
>> Cheers,
> 
> blktests (master) # nvme_trtype=tcp ./check nvme/039
> nvme/039 (Create authenticated connections)                  [failed]
>       runtime  1.398s  ...  1.397s
>       --- tests/nvme/039.out	2022-06-08 18:09:06.239931529 -0700
>       +++ /mnt/data/blktests/results/nodev/nvme/039.out.bad	2022-06-10
> 02:28:28.077262601 -0700
>       @@ -1,7 +1,10 @@
>        Running nvme/039
>       +losetup: /tmp/blktest-ns1.img: failed to set up loop device:
> Device or resource busy
>        Test unauthenticated connection
>       -no controller found
>       +no controller found: failed to write to nvme-fabrics device
>        NQN:blktests-subsystem-1 disconnected 0 controller(s)
>        Test authenticated connection
>       ...
>       (Run 'diff -u tests/nvme/039.out
> /mnt/data/blktests/results/nodev/nvme/039.out.bad' to see the entire diff)
> blktests (master) # dmesg  -c
> [ 2294.783157] run blktests nvme/039 at 2022-06-10 02:28:26
> [ 2294.829279] nvmet: adding nsid 1 to subsystem blktests-subsystem-1
> [ 2294.829568] nvmet: nvmet_ns_enable_store 535
> [ 2294.829573] nvmet: nvmet_ns_enable 555
> [ 2294.829574] nvmet: nvmet_ns_enable 559
> [ 2294.829575] nvmet: nvmet_ns_enable 565
> [ 2294.829576] nvmet: nvmet_ns_enable 573
> [ 2294.832318] nvmet: nvmet_ns_enable 580
> [ 2294.832325] nvmet: nvmet_ns_enable 596
> [ 2294.832327] nvmet: nvmet_ns_enable 601
> [ 2294.832328] nvmet: nvmet_ns_enable 605
> [ 2294.832329] nvmet: nvmet_ns_enable 607
> [ 2294.832330] nvmet: nvmet_ns_enable 610
> [ 2294.833335] nvmet_tcp: enabling port 0 (127.0.0.1:4420)
> [ 2294.840597] nvmet: creating nvm controller 1 for subsystem
> blktests-subsystem-1 for NQN
> nqn.2014-08.org.nvmexpress:uuid:e4f6b1f3-b215-498e-88c0-cfd20c7dee98
> with DH-HMAC-CHAP.
> [ 2294.840641] nvme nvme1: qid 0: no key
> [ 2294.840645] nvme nvme1: qid 0: authentication setup failed
> [ 2294.840668] nvme nvme1: failed to connect queue: 0 ret=401
> [ 2294.857350] nvmet: creating nvm controller 2 for subsystem
> blktests-subsystem-1 for NQN
> nqn.2014-08.org.nvmexpress:uuid:e4f6b1f3-b215-498e-88c0-cfd20c7dee98
> with DH-HMAC-CHAP.
[ .. ]
> [ 2295.105378] nvme nvme1: new ctrl: NQN "blktests-subsystem-1", addr
> 127.0.0.1:4420
> [ 2296.126821] nvme nvme1: Removing ctrl: NQN "blktests-subsystem-1"
> [ 2296.159534] nvmet: nvmet_ns_enable_store 535
> blktests (master) #
> 
Ah. Found it.
It's just that the output of the nvme-cli command changed. I'll be 
sending a new version of the blktest scripts.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		           Kernel Storage Architect
hare at suse.de			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), GF: Felix Imendörffer



More information about the Linux-nvme mailing list