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

2009-07-24 Thread wereHamster
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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2009-07-03 Thread mmorata
The problem is in opensolaris. When you use the SendTargets discover
method, opensolaris return the iqn, port and ip of the target. This ip
is a ipv6. You can se it with wireshark, for example.

Solution: disable ipv6 interface in opensolaris.

1. Connect to your opensolaris machine.
2. Look up your interface: ifconfig -a. I supose that the interface is e1000g0.
3. Edit /etc/nwam/llp and look up for a line similar to e1000g0 dhcp and 
change it for e1000g0 noipv6 dhcp.
4. Disable ndp: svcadm disable ndp.

I hope this solve your problem.

-- 
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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs