Skip to contentSkip to conversation

Cannot log in from BIOS to linux target

DISCUSSION Michal Suchánek 3 participants 7 messages Jan 13, 2020 – Jan 15, 2020 SCSI target

lore
Share & tools
lore
#0 lore raw

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub .................................................................. [/scratch/ISO/GRUB (1.8MiB) write-back activated]

  | |   o- alua ................................................................................................. [ALUA Groups: 1]
  | |     o- default_tg_pt_gp ..................................................................... [ALUA state: Active/optimized]
 | | o- tpg1 ................................................................................................ [gen-acls, no-auth]
  | |   |   o- mapped_lun0 ............................................................................... [lun0 fileio/grub (rw)]
The readonly flag does not seem to be honored                                                                                 ^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed 3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

#1 lore raw

Hi Michal,

try demo mode for a experiment? Here is a guide
http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

Thanks,
Zhu Lingshan

Quoted 26 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub .................................................................. [/scratch/ISO/GRUB (1.8MiB) write-back activated]

   | |   o- alua ................................................................................................. [ALUA Groups: 1]
   | |     o- default_tg_pt_gp ..................................................................... [ALUA state: Active/optimized]
  | | o- tpg1 ................................................................................................ [gen-acls, no-auth]
   | |   |   o- mapped_lun0 ............................................................................... [lun0 fileio/grub (rw)]
The readonly flag does not seem to be honored                                                                                 ^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed 3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

#2 lore raw
In reply to Michal Suchánek

Hi Michal,

try demo mode for a experiment? Here is a guide
http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

Thanks,
Zhu Lingshan

Quoted 26 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub .................................................................. [/scratch/ISO/GRUB (1.8MiB) write-back activated]

   | |   o- alua ................................................................................................. [ALUA Groups: 1]
   | |     o- default_tg_pt_gp ..................................................................... [ALUA state: Active/optimized]
  | | o- tpg1 ................................................................................................ [gen-acls, no-auth]
   | |   |   o- mapped_lun0 ............................................................................... [lun0 fileio/grub (rw)]
The readonly flag does not seem to be honored                                                                                 ^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed 3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

#3 lore raw
In reply to Michal Suchánek
Quoted 48 lines · Zhu Lingshan

Hi Michal,

try demo mode for a experiment? Here is a guide
http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

Thanks,
Zhu Lingshan

Quoted 39 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub
..................................................................
[/scratch/ISO/GRUB (1.8MiB) write-back activated]
   | |   o- alua
.................................................................................................
[ALUA Groups: 1]
   | |     o- default_tg_pt_gp
.....................................................................
[ALUA state: Active/optimized]

  | | o- tpg1
................................................................................................
[gen-acls, no-auth]
   | |   |   o- mapped_lun0
...............................................................................
[lun0 fileio/grub (rw)]
The readonly flag does not seem to be
honored
^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed
3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

It's actually not the password that's missing, it's the ACL. You have registered your iSCSI initiatorname with the target, right?

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      Teamlead Storage & Networking
[email protected]			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), GF: Felix Imendörffer
#4 lore raw
In reply to Michal Suchánek

Hi Michal,

Why not give a try on Yast2 iscsi target module? It would be easy to config your target with it.

Thanks,
BR
Zhu Lingshan

Quoted 55 lines · Hannes Reinecke
Quoted 48 lines · Zhu Lingshan

Hi Michal,

try demo mode for a experiment? Here is a guide
http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

Thanks,
Zhu Lingshan

Quoted 39 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub
..................................................................
[/scratch/ISO/GRUB (1.8MiB) write-back activated]
   | |   o- alua
.................................................................................................
[ALUA Groups: 1]
   | |     o- default_tg_pt_gp
.....................................................................
[ALUA state: Active/optimized]

  | | o- tpg1
................................................................................................
[gen-acls, no-auth]
   | |   |   o- mapped_lun0
...............................................................................
[lun0 fileio/grub (rw)]
The readonly flag does not seem to be
honored
^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed
3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

It's actually not the password that's missing, it's the ACL. You have registered your iSCSI initiatorname with the target, right?

Cheers,

Hannes

#5 lore raw
In reply to Michal Suchánek
Quoted 4 lines · Hannes Reinecke
Quoted 3 lines · Zhu Lingshan

Hi Michal,

try demo mode for a experiment? Here is a guide

That's what I did.

Quoted 2 lines
Quoted 2 lines

http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

No.

Quoted 38 lines
Quoted 38 lines

Thanks,
Zhu Lingshan

Quoted 34 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub
..................................................................
[/scratch/ISO/GRUB (1.8MiB) write-back activated]
   | |   o- alua
.................................................................................................
[ALUA Groups: 1]
   | |     o- default_tg_pt_gp
.....................................................................
[ALUA state: Active/optimized]

  | | o- tpg1
................................................................................................
[gen-acls, no-auth]
   | |   |   o- mapped_lun0
...............................................................................
[lun0 fileio/grub (rw)]
The readonly flag does not seem to be
honored
^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed
3,1361,2329588663897,-;iSCSI Login negotiation failed.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

How can I export a LUN without a password?

Thanks

Michal

It's actually not the password that's missing, it's the ACL. You have registered your iSCSI initiatorname with the target, right?

I did not initially but since the target insisted I changed the initiator name to valid iqn and registered it.

So looks like the demo mode does not work.

Thanks

Michal

#6 lore raw
In reply to Michal Suchánek
Quoted 4 lines · Zhu Lingshan

Hi Michal,

Why not give a try on Yast2 iscsi target module? It would be easy to config your target with it.

Presumably it's easy with targetcli as well, and should work on any distribution. I don't think changing the tool will change the fact that authentication is required when it is disabled.

Thanks

Michal

Quoted 61 lines

Thanks,
BR
Zhu Lingshan

Quoted 55 lines · Hannes Reinecke
Quoted 48 lines · Zhu Lingshan

Hi Michal,

try demo mode for a experiment? Here is a guide
http://www.linux-iscsi.org/wiki/ISCSI#Demo_mode
you can also find how to config username /password there.

Thanks,
Zhu Lingshan

Quoted 39 lines · Michal Suchánek

Hello,

my system BIOS support booting from iSCSI.

I set up readonly target with no authentication:

targetcli shell version 2.1.fb49

grub
..................................................................
[/scratch/ISO/GRUB (1.8MiB) write-back activated]
   | |   o- alua
.................................................................................................
[ALUA Groups: 1]
   | |     o- default_tg_pt_gp
.....................................................................
[ALUA state: Active/optimized]

  | | o- tpg1
................................................................................................
[gen-acls, no-auth]
   | |   |   o- mapped_lun0
...............................................................................
[lun0 fileio/grub (rw)]
The readonly flag does not seem to be
honored
^^^

Anyway, the initiator cannot log in:

3,1360,2329588663878,-;Initiator sent zero length security payload, login failed
3,1361,2329588663897,-;iSCSI Login negotiation failed.

How can I export a LUN without a password?

Thanks

Michal

It's actually not the password that's missing, it's the ACL. You have registered your iSCSI initiatorname with the target, right?

Cheers,

Hannes