nvmetcli restore fails in add_subsystem

Anton Gavriliuk antosha20xx at gmail.com
Tue Apr 8 03:53:09 PDT 2025


Hello

I'm trying to set up an NVMe/FC target on Fedora Server 42 beta.
Config file attached.

HBAs I use SN1600Q, and according to Marvell
(https://www.marvell.com/content/dam/marvell/en/public-collateral/hpe/hpe-marvell-datasheet-sn1600q-adapter-hpe.pdf)
it supports NVMe over FC.

[root at localhost anton]# nvmetcli restore nvme_fc_1_link
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/nvmet/nvme.py", line 668, in
add_subsystem
    os.symlink("%s/subsystems/%s" % (self.configfs_dir, nqn),
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               "%s/subsystems/%s" % (self._path, nqn))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 6] No such device or address:
'/sys/kernel/config/nvmet/subsystems/testnqn' ->
'/sys/kernel/config/nvmet/ports/1/subsystems/testnqn'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/nvmetcli", line 754, in <module>
    main()
    ~~~~^^
  File "/usr/bin/nvmetcli", line 736, in main
    funcs[sys.argv[1]](savefile)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/bin/nvmetcli", line 681, in restore
    errors = nvme.Root().restore_from_file(from_file)
  File "/usr/lib/python3.13/site-packages/nvmet/nvme.py", line 394, in
restore_from_file
    return self.restore(config, clear_existing=clear_existing,
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        abort_on_error=abort_on_error)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/nvmet/nvme.py", line 376, in restore
    Port.setup(self, t, err_func)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/nvmet/nvme.py", line 732, in setup
    port.add_subsystem(s)
    ~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.13/site-packages/nvmet/nvme.py", line 671, in
add_subsystem
    raise CFSError("Could not symlink %s in configFS: %s" % (nqn, e))
nvmet.nvme.CFSError: Could not symlink testnqn in configFS: [Errno 6]
No such device or address:
'/sys/kernel/config/nvmet/subsystems/testnqn' ->
'/sys/kernel/config/nvmet/ports/1/subsystems/testnqn'
[root at localhost anton]#

[root at localhost anton]#
[root at localhost anton]# rpm -qa|grep -i nvmetcli
nvmetcli-0.8-1.fc42.noarch
[root at localhost anton]#

[root at localhost anton]# rpm -qa|grep -i nvmetcli
nvmetcli-0.8-1.fc42.noarch
[root at localhost anton]# dmesg
[ 1094.242081] nvmet: adding nsid 1 to subsystem testnqn
[root at localhost anton]#
[root at localhost anton]# cat /var/log/messages
Apr  8 12:31:34 localhost kernel: nvmet: adding nsid 1 to subsystem testnqn
Apr  8 12:31:34 localhost python3[2198]: detected unhandled Python
exception in '/usr/bin/nvmetcli'
Apr  8 12:31:34 localhost abrt-server[2199]: Deleting problem
directory Python3-2025-04-08-12:31:34-2198 (dup of
Python3-2025-04-08-12:17:05-2084)
Apr  8 12:31:34 localhost systemd[1]: Started
dbus-:1.3-org.freedesktop.problems at 2.service.
Apr  8 12:31:34 localhost audit[1]: SERVICE_START pid=1 uid=0
auid=4294967295 ses=4294967295 subj=kernel
msg='unit=dbus-:1.3-org.freedesktop.problems at 2 comm="systemd"
exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=?
res=success'
Apr  8 12:31:34 localhost abrt-notification[2211]: Process 2084
(nvmetcli) of user 0 encountered an uncaught
"%s/subsystems/%s" % (self._path, nqn)) exception

Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvme_fc_1_link
Type: application/octet-stream
Size: 702 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20250408/d5446581/attachment-0001.obj>


More information about the Linux-nvme mailing list