Maybe im missing something, but where does it say that hostnames are
supported?

-----Original Message-----
From: open-iscsi@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ashutosh Naik
Sent: Tuesday, October 21, 2008 12:44 PM
To: open-iscsi@googlegroups.com
Cc: Mike Christie
Subject: iscsiadm login fails when hostname is specified instead of IP
address


Hi,

I am logging to the iSCSI Enterprise target and observe the following
behaviour. I am using open-iscsi version 2.0-869.2

The discovery session seems to resolve the hostname to an IP address well.

[EMAIL PROTECTED] ~]# iscsiadm --mode discovery --type sendtargets --portal
sw01
10.192.166.103:3260,1 iqn.2004-05.com.faker.sw01

But while logging in, this resolution fails

[EMAIL PROTECTED] ~]# iscsiadm -m node --portal sw01 --login
iscsiadm: no records found!

It works fine after I use the IP address instead of the hostname

[EMAIL PROTECTED] ~]# iscsiadm -m node --portal 10.192.166.103 --login
Logging in to [iface: default, target: iqn.2004-05.com.faker.sw01,
portal: 10.192.166.103,3260]
Login to [iface: default, target: iqn.2004-05.com.faker.sw01, portal:
10.192.166.103,3260]: successful

It's easily reproducible

Thanks
Ashutosh



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to