[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails

wereHamster tom at dbservice.com
Fri Jul 24 17:34:03 BST 2009


This is not a bug in OpenSolaris, it is a problem in open-iscsi. The
OpenSolaris iscsi implementation sends all IP addresses through which
hosts can connect to it. In my case these are three addresses: IPv4,
IPv6 link local and IPv6 global:

iscsiadm: finished reading text PDU, 48 hdr, 0 ah, 591 data, 1 pad
iscsiadm: >    TargetName=iqn.1986-03.com.sun:02:xxx
iscsiadm: >    TargetAddress=192.168.0.80,1
iscsiadm: >    TargetAddress=[fe80::230:1bff:fe12:3456],1
iscsiadm: >    TargetAddress=[2001:1234:5678:0:230:1bff:fe12:3456],1

The problem is that the second address, the IPv6 link local one, can
only be used to connect to the host when the application supplies the
'zone index' to the kernel (interface which the kernel should use). This
is a property of IPv6 link local addresses. Open-iscsi doesn't support
this logic yet, but when it encounters such address it skips the whole
target and goes to the next one. This even if there are other addresses
which would work fine.

The attached patch fixes it by not failing when encountering an unknown
target address. When it does it skips the address and tries the next
one. With this patch I can connect to targets on OpenSolaris just fine.

** Attachment added: "open-iscsi-try-all-target-addresses.patch"
   http://launchpadlibrarian.net/29488027/open-iscsi-try-all-target-addresses.patch

** Changed in: open-iscsi (Ubuntu)
       Status: Invalid => New

-- 
open-iscsi initiator tries to resolve ipv6 address of target and fails
https://bugs.launchpad.net/bugs/380663
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to open-iscsi in ubuntu.



More information about the Ubuntu-server-bugs mailing list