You are not logged in.

#1 2015-02-06 17:03:51

EY
Member
Registered: 2015-02-06
Posts: 2

Failed to login iscsi target

I am using the latest targetcli-fb and configure the iscsi target in Arch Linux. Everything is fine but when I try to run discovery on another server (Debian and Windows) it failed.

From journald it shows:

kernel: iSCSI Login negotiation failed.
kernel: iscsi_login_setup_crypto() failed
kernel: crypto_alloc_hash() failed for conn_rx_tfm
kernel: iSCSI Login negotiation failed.

and the targetcli configs:
/iscsi> ls
o- iscsi .............................................................................................................. [Targets: 1]
  o- iqn.2003-01.org.linux-iscsi.xxx.x8664:sn.729471705929 .............................................................. [TPGs: 1]
    o- tpg1 ................................................................................................. [no-gen-acls, no-auth]
      o- acls ............................................................................................................ [ACLs: 1]
      | o- iqn.1993-08.org.debian:01:f041aa8a5d90 ................................................................. [Mapped LUNs: 1]
      |   o- mapped_lun0 ............................................................................... [lun0 block/pi02_disk (rw)]
      o- luns ............................................................................................................ [LUNs: 1]
      | o- lun0 .................................................................... [block/test_disk (/dev/vg00/test_lv)]
      o- portals ...................................................................................................... [Portals: 1]
        o- 0.0.0.0:3260 ....................................................................................................... [OK]
/iscsi>

Offline

#2 2015-02-06 19:22:12

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Failed to login iscsi target

Please use code tags for your config and other terminal output for better readability. Still, it looks ok to me.

I have targetcli-fb on one of my Arch boxes, but it's an old version (2.1.fb35-1) built back in June (official packages are up to date). Discovery and login from another Arch box works. I don't have time to troubleshoot further, but if you haven't found a solution by Monday I can update and maybe be of more use.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2015-02-08 16:02:07

EY
Member
Registered: 2015-02-06
Posts: 2

Re: Failed to login iscsi target

Found out what's going wrong. It's because the module "crc32c" is not loaded. I run the command "modprobe crc32c" and everything is fine.

Just don't know why the module is not loaded by default, I can't found any clues so I manually put a crc32c.conf at /etc/modules-load.d/

Offline

#4 2015-02-09 16:38:48

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Failed to login iscsi target

That's strange. In my case crc32c_generic is loaded automatically when I run discovery from another Arch machine.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

Board footer

Powered by FluxBB