Skip to content

Conversation

@yizhanglinux
Copy link
Contributor

$ nvme_trtype=tcp ./check nvme/063
nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation)
runtime 2.220s ...
WARNING: Test did not clean up port: 0
nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation) [failed]
runtime 2.220s ... 2.217sost: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349
--- tests/nvme/063.out 2025-11-02 02:47:38.826227836 -0500
+++ /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad 2025-11-02 08:43:09.743150576 -0500
@@ -1,7 +1,3 @@
Running nvme/063
Test secure concatenation with SHA256
-Reset controller
-disconnected 1 controller(s)
-Test secure concatenation with SHA384
-disconnected 1 controller(s)
-Test complete
...
(Run 'diff -u tests/nvme/063.out /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad' to see the entire diff)

Link: #207

$ nvme_trtype=tcp ./check nvme/063
nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation)
    runtime  2.220s  ...
WARNING: Test did not clean up port: 0
nvme/063 (tr=tcp) (Create authenticated TCP connections with secure concatenation) [failed]
    runtime  2.220s  ...  2.217sost: nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349
    --- tests/nvme/063.out	2025-11-02 02:47:38.826227836 -0500
    +++ /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad	2025-11-02 08:43:09.743150576 -0500
    @@ -1,7 +1,3 @@
     Running nvme/063
     Test secure concatenation with SHA256
    -Reset controller
    -disconnected 1 controller(s)
    -Test secure concatenation with SHA384
    -disconnected 1 controller(s)
    -Test complete
    ...
    (Run 'diff -u tests/nvme/063.out /root/blktests/results/nodev_tr_tcp/nvme/063.out.bad' to see the entire diff)

Link: linux-blktests#207
Signed-off-by: Yi Zhang <yi.zhang@redhat.com>
@yizhanglinux yizhanglinux force-pushed the nvmet-configfs-clean-fix branch from 361ad31 to 5a1ed27 Compare November 13, 2025 14:50
@kawasaki
Copy link
Collaborator

@yizhanglinux I guess the failure of nvme/063 indicates a bug in kernel side, and it should be fixed with this patch. Could you try it out?

@yizhanglinux
Copy link
Contributor Author

@yizhanglinux I guess the failure of nvme/063 indicates a bug in kernel side, and it should be fixed with this patch. Could you try it out?

Yes, just confirmed the failure issue was fixed by the patch.

@igaw
Copy link
Contributor

igaw commented Nov 25, 2025

I think adding the cleanup code would still make sense, as it makes the test suite more robust, no?

@kawasaki
Copy link
Collaborator

kawasaki commented Jan 3, 2026

I think adding the cleanup code would still make sense, as it makes the test suite more robust, no?

I'm not so sure for this case. If we apply the cleanup code, it would hide the failure we found, and the bug was overlooked.

@yizhanglinux
Copy link
Contributor Author

It will not hide the failure, and the test still can fail.
The patch just cleans up the following configfs after the test failed, or it will impact the following test case.

# nvmetcli ls
o- / .......................................................................................................... [...]
  o- hosts .................................................................................................... [...]
  | o- nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 ................................... [...]
  o- ports .................................................................................................... [...]
  o- subsystems ............................................................................................... [...]
    o- blktests-subsystem-1 ................................. [version=2.1, allow_any=0, serial=f3e8fd2c6a5d1ad81d8e]
      o- allowed_hosts ........................................................................................ [...]
      | o- nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349 ............................... [...]
      o- namespaces ........................................................................................... [...]

@kawasaki kawasaki merged commit 9897976 into linux-blktests:master Jan 4, 2026
5 checks passed
@kawasaki
Copy link
Collaborator

kawasaki commented Jan 4, 2026

@yizhanglinux Thanks for the clarification. Now I agree to apply this change, and it has done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants