All of lore.kernel.org
 help / color / mirror / Atom feed
* [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target?
@ 2017-03-04  1:33 J Freyensee
  2017-03-04  2:38 ` J Freyensee
  0 siblings, 1 reply; 4+ messages in thread
From: J Freyensee @ 2017-03-04  1:33 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target?
  2017-03-04  1:33 [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target? J Freyensee
@ 2017-03-04  2:38 ` J Freyensee
  2017-03-27 18:44   ` Mauro Rodrigues
  0 siblings, 1 reply; 4+ messages in thread
From: J Freyensee @ 2017-03-04  2:38 UTC (permalink / raw)


On Fri, 2017-03-03@17:33 -0800, J Freyensee wrote:
> Christoph,
> 
> I think something might have broke being able to use nvmetcli to set up a
> host
> nqn name interactively?

Also seeing a similar issue for /ports, I didn't have a problem setting ports/
by hand-writing a .json file but ./nvmetcli is having a problem doing it
interactively.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target?
  2017-03-04  2:38 ` J Freyensee
@ 2017-03-27 18:44   ` Mauro Rodrigues
  2017-03-28 10:39     ` Sagi Grimberg
  0 siblings, 1 reply; 4+ messages in thread
From: Mauro Rodrigues @ 2017-03-27 18:44 UTC (permalink / raw)


Hi James!

I just sent, earlier today, a couple of patches[0] to fix the issue to
setup Hosts and Ports interactively. There are also some other fixes in
the patch series.

[0] - http://lists.infradead.org/pipermail/linux-nvme/2017-March/008940.html

--
Mauro Rodrigues

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target?
  2017-03-27 18:44   ` Mauro Rodrigues
@ 2017-03-28 10:39     ` Sagi Grimberg
  0 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2017-03-28 10:39 UTC (permalink / raw)




On 27/03/17 21:44, Mauro Rodrigues wrote:
> Hi James!
>
> I just sent, earlier today, a couple of patches[0] to fix the issue to
> setup Hosts and Ports interactively. There are also some other fixes in
> the patch series.
>
> [0] - http://lists.infradead.org/pipermail/linux-nvme/2017-March/008940.html

Christoph, care to take it?

Tested-by: Sagi Grimberg <sagi at grimberg.me>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-28 10:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-04  1:33 [nvmet/nvmetcli]- bug/break in setting a host on NVMe Target? J Freyensee
2017-03-04  2:38 ` J Freyensee
2017-03-27 18:44   ` Mauro Rodrigues
2017-03-28 10:39     ` Sagi Grimberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.