From: james_p_freyensee@linux.intel.com (J Freyensee)
Subject: [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target?
Date: Fri, 03 Mar 2017 17:33:23 -0800 [thread overview]
Message-ID: <1488591203.4759.20.camel@linux.intel.com> (raw)
Christoph,
I think something might have broke being able to use nvmetcli to set up a host
nqn name interactively?
Just following a simple example with mainline 4.10 kernel (tag - v4.10):
[stg at localhost nvmetcli]$ sudo ./nvmetcli?
/> cd /hosts
/hosts> create hostnqn
'module' object has no attribute 'Host'
/hosts>?
but if I hand-write the equivalent JSON file and load the target with that
there seems to be no issue:
[stg at localhost nvmetcli]$ sudo cat test.json?
{
? "hosts": [
? {
"nqn": "hostnqn"
? }
? ],?
? "ports": [],?
? "subsystems": [
????{
????}
? ]
}
[stg at localhost nvmetcli]$ sudo ./nvmetcli restore test.json?
[stg at localhost nvmetcli]$ sudo ./nvmetcli?
/hosts> ls
o- hosts .................................................................
[...]
? o- hostnqn .............................................................
[...]
/hosts>?
Setting up a subsystem interactively is no issue:
[stg at localhost nvmetcli]$ sudo ./nvmetcli clear
[stg at localhost nvmetcli]$ sudo ./nvmetcli
/hosts> ls
o- hosts .................................................................
[...]
/hosts> cd ../subsystems?
/subsystems> create testnqn
/subsystems> ls
o- subsystems ............................................................
[...]
? o- testnqn .............................................................
[...]
????o- allowed_hosts .....................................................
[...]
????o- namespaces ........................................................
[...]
/subsystems>?
I haven't figured what is causing the problem yet.
next reply other threads:[~2017-03-04 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-04 1:33 J Freyensee [this message]
2017-03-04 2:38 ` [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target? J Freyensee
2017-03-27 18:44 ` Mauro Rodrigues
2017-03-28 10:39 ` Sagi Grimberg
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=1488591203.4759.20.camel@linux.intel.com \
--to=james_p_freyensee@linux.intel.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