problem with iscsid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with iscsid

Allan Liblik-2
hi!

I have problem with iscsid - can't connect to NAS4Free iSCSI target.

There are
- OpenBSD robert.vkhk.ee 5.2 GENERIC.MP#368 amd64
- NAS4Free 9.1.0.1 - Sandstorm (revision 573)

First I do iSCSI discovery. iscsi.conf is

target "Kakstera" {
discovery
targetaddr 192.168.94.102
}

and iscsid -dv output is after doing iscsictl reload:

startup
sess_fsm[Kakstera]: INIT ev start
new connection to 192.168.94.102:3260
conn_fsm[Kakstera]: FREE ev connect
conn_fsm[Kakstera]: new state XPT_WAIT
sess_fsm[Kakstera]: new state FREE
conn_fsm[Kakstera]: XPT_WAIT ev connected
conn_fsm[Kakstera]: new state IN_LOGIN
conn_fsm[Kakstera]: IN_LOGIN ev logged in
conn_fsm[Kakstera]: new state LOGGED_IN
sess_fsm[Kakstera]: FREE ev connection logged in
sess_fsm[Kakstera]: new state LOGGED_IN
ISCSI_OP_TEXT_RESPONSE
TargetName      =>      iqn.kettakast2.san3.vkhk.ee:kakstera
TargetAddress   =>      192.168.94.102:3260,3
session[Kakstera] going down
conn_fsm[Kakstera]: LOGGED_IN ev logout
conn_fsm[Kakstera]: new state IN_LOGOUT
initiator_logout_cb: response 0, Time2Wait 0, Time2Retain 0
conn_fsm[Kakstera]: IN_LOGOUT ev logged out
conn_fsm[Kakstera]: new state FREE
sess_fsm[Kakstera]: LOGGED_IN ev session closed
sess_fsm[Kakstera]: new state DOWN

NAS4Free log is

Feb 5 07:35:24 nas4free istgt[19450]: Login(discovery) from
iqn.1995-11.org.openbsd.iscsid:robert (192.168.94.44) on
(192.168.94.102:3260,3), ISID=80c33865c1d6, TSIH=3, CID=48994,
HeaderDigest=off, DataDigest=off
Feb 5 07:35:24 nas4free istgt[19450]: Logout(discovery) from
iqn.1995-11.org.openbsd.iscsid:robert (192.168.94.44) on
(192.168.94.102:3260,3), ISID=80c33865c1d6, TSIH=3, CID=48994,
HeaderDigest=off, DataDigest=off

Then I change iscsi.conf to normal:

target "Kakstera" {
normal
targetaddr 192.168.94.102
targetname "iqn.kettakast2.san3.vkhk.ee:kakstera"
}

iscsid -dv command output:

startup
sess_fsm[Kakstera]: INIT ev start
new connection to 192.168.94.102:3260
conn_fsm[Kakstera]: FREE ev connect
conn_fsm[Kakstera]: new state XPT_WAIT
sess_fsm[Kakstera]: new state FREE
conn_fsm[Kakstera]: XPT_WAIT ev connected
conn_fsm[Kakstera]: new state IN_LOGIN
conn_fsm[Kakstera]: IN_LOGIN ev logged in
conn_fsm[Kakstera]: new state LOGGED_IN
sess_fsm[Kakstera]: FREE ev connection logged in
sess_fsm[Kakstera]: new state LOGGED_IN
conn_fsm[Kakstera]: LOGGED_IN ev closed
conn_fsm[Kakstera]: new state CLEANUP_WAIT
sess_fsm[Kakstera]: LOGGED_IN ev connection fail
sess_fsm[Kakstera]: new state FAILED


NAS log:
Feb 5 07:49:04 nas4free istgt[19450]:
istgt_iscsi.c:2447:istgt_iscsi_op_login: ***ERROR*** SessionType is
empty
Feb 5 07:49:04 nas4free istgt[19450]:
istgt_iscsi.c:2424:istgt_iscsi_op_login: ***ERROR*** InitiatorName is
empty
Feb 5 07:49:04 nas4free istgt[19450]:
istgt_iscsi.c:3518:istgt_iscsi_op_scsi: ***ERROR*** before Full
Feature
Feb 5 07:49:04 nas4free istgt[19450]:
istgt_iscsi.c:5053:istgt_iscsi_execute: ***ERROR*** iscsi_op_scsi()
failed
Feb 5 07:49:04 nas4free istgt[19450]: istgt_iscsi.c:5732:worker:
***ERROR*** iscsi_execute() failed on
(iqn.1995-11.org.openbsd.iscsid:robert,i,0x80cb7a99d4c7)

Help!

With best regards

Allan

Reply | Threaded
Open this post in threaded view
|

Re: problem with iscsid

Alexey Suslikov
Allan Liblik <allan <at> tarivara.ee> writes:

>
> hi!
>
> I have problem with iscsid - can't connect to NAS4Free iSCSI target.
>
> There are
> - OpenBSD robert.vkhk.ee 5.2 GENERIC.MP#368 amd64
> - NAS4Free 9.1.0.1 - Sandstorm (revision 573)

In mid of 2012 I have discussed similar issue with another
iscsid user.

Setups been tried on

1:
* initiator (iscsid) OpenBSD xxx 5.0 GENERIC#53 amd64
* target (FreeNAS) FreeBSD xxx 8.2-RELEASE-p9 #1
(istgtcontrol version 0.4 (20111008))

2:
* initiator (iscsid) OpenBSD xxx 5.2 GENERIC#298 amd64
* target (FreeNAS) FreeBSD xxx 8.2-RELEASE-p9 #1
(istgtcontrol version 0.4 (20111008))

On FreeNAS side log/messages was:

Jul 19 09:19:32 freenas istgt[18173]: Login(discovery) from openbsd.mailserv
(192.168.3.171) on (192.168.3.3:3260,1), ISID=801f363f3c1a, TSIH=5, CID=1356,
HeaderDigest=off, DataDigest=off
Jul 19 09:19:32 freenas istgt[18173]: Logout(discovery) from openbsd.mailserv
(192.168.3.171) on (192.168.3.3:3260,1), ISID=801f363f3c1a, TSIH=5, CID=1356,
HeaderDigest=off, DataDigest=off
Jul 19 09:44:17 freenas istgt[18173]: Login(discovery) from openbsd.mailserv
(192.168.3.171) on (192.168.3.3:3260,1), ISID=80d9d858cab2, TSIH=6, CID=4226,
HeaderDigest=off, DataDigest=off
Jul 19 09:44:17 freenas istgt[18173]: Logout(discovery) from openbsd.mailserv
(192.168.3.171) on (192.168.3.3:3260,1), ISID=80d9d858cab2, TSIH=6, CID=4226,
HeaderDigest=off, DataDigest=off
Jul 19 09:46:56 freenas istgt[18173]: istgt_iscsi.c:2056:istgt_iscsi_op_login:
***ERROR*** SessionType is empty
Jul 19 09:46:56 freenas istgt[18173]: istgt_iscsi.c:2033:istgt_iscsi_op_login:
***ERROR*** InitiatorName is empty
Jul 19 09:46:56 freenas istgt[18173]: istgt_iscsi.c:3116:istgt_iscsi_op_scsi:
***ERROR*** before Full Feature
Jul 19 09:46:56 freenas istgt[18173]: istgt_iscsi.c:4629:istgt_iscsi_execute:
***ERROR*** iscsi_op_scsi() failed
Jul 19 09:46:56 freenas istgt[18173]: istgt_iscsi.c:5269:worker: ***ERROR***
iscsi_execute() failed on (openbsd.mailserv,i,0x802f2bdd1232)

Cheers,
Alexey