Thanks, Nir!
That worked like a charm.
I think it will be a good note to have in host setup docs meanwhile.
As for naming, it seems I was naming my machines more or less according to this RFC
without realizing it :D
Thanks,
Fedor
----- Original Message -----
From: "Nir Soffer" <nsoffer(a)redhat.com>
To: "Fedor Gavrilov" <fgavrilo(a)redhat.com>
Cc: "devel" <devel(a)ovirt.org>
Sent: Wednesday, February 27, 2019 7:53:19 PM
Subject: Re: [ovirt-devel] Can't discover luns on iscisi target when host is running
fedora 28
On Wed, Feb 27, 2019 at 12:03 PM Fedor Gavrilov <fgavrilo(a)redhat.com> wrote:
Hi,
Recently I hit an issue when I can't add iscsi storage domain because
engine can't see any LUNs there. I wonder if I missed some step in the
configuration or something.
There is a fedora 29 machine running iscsi target which has a single lun
and host (banana) registered in its ACL:
[cucumber@cucumber ~]$ sudo targetcli
[sudo] password for cucumber:
targetcli shell version 2.1.fb48
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.
/iscsi/iqn.20...e:target/tpg1> ls
o- tpg1
.....................................................................................................
[no-gen-acls, no-auth]
o- acls
................................................................................................................
[ACLs: 1]
| o- iqn.1994-05.com.redhat:4bf5ff1a15b6
........................................................................
[Mapped LUNs: 1]
| o- mapped_lun0
.................................................................................
[lun0 fileio/filestore0 (rw)]
o- luns
................................................................................................................
[LUNs: 1]
| o- lun0
...................................................................
[fileio/filestore0 (/etc/fileio) (default_tg_pt_gp)]
o- portals
..........................................................................................................
[Portals: 1]
o- 0.0.0.0:3260
...........................................................................................................
[OK]
From fedora 28 host I can login and logout, but there is this segfault and
when I try getting LUN info it fails:
...
[banana@banana ~]$ sudo iscsiadm -m session -P 3 -r 2
iscsiadm: could not read session targetname: 5
iscsiadm: Could not get session info for sid 2
[banana@banana ~]$ sudo iscsiadm -m session -P 3
iSCSI Transport Class version 2.0-870
version 6.2.0.874
Segmentation fault
It seems I am hitting this:
https://bugzilla.redhat.com/show_bug.cgi?id=1462767
Could this be the reason that there are no LUNs in engine web UI after I
discover iscsi target? Is anyone aware of workaround or whether I am doing
something wrong?
If the host is running Fedora 28, you may hit this:
https://bugzilla.redhat.com/1670966
You can find the solution here:
https://lists.ovirt.org/archives/list/devel@ovirt.org/thread/OWNXADWKYN3Z...
You may also find this interesting:
https://tools.ietf.org/html/rfc1178
Nir