[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
Thank you for taking the time to file a bug report. Since it seems likely to me that this is a local configuration problem, rather than a bug in Ubuntu, I am marking this bug as 'Incomplete'. However, if you believe that this is really a bug in Ubuntu, then we would be grateful if you would provide a more complete description of the problem with steps to reproduce, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to "New". For local configuration issues, you can find assistance here: http://www.ubuntu.com/support/community ** Changed in: open-iscsi (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/380663 Title: open-iscsi initiator tries to resolve ipv6 address of target and fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/380663/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
I can confirm the attach patch works with my OpenSolaris box Disabling ipv6 didn't quite work (although I did not reboot the box because I cannot at the moment reboot it) I get plenty of ugly messages, though iscsiadm: No active sessions. iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:b73ebe91-d1e5-6dc0-e984-ae9c7b7efa36 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:32e2e6f3-3deb-4d3a-d1ef-cec02a207678 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:98ab023f-e8a8-e8de-af8d-96eed8c0e637 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:544bcbc9-cdf6-ed72-c133-d571cf24e80e iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:21a790da-42b3-6152-8791-cff2dbb69204 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:f6c80f70-de5b-e4c0-af83-a52532f3c650 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:a94cae60-1a6f-eae1-bcfe-d069f3dfbe7c iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:f0eac197-def8-603b-e42a-b0371995e860 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:eb45eab8-bec1-c765-da92-c8db343bdaab iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:68dd679c-aeab-c781-c7dd-862cd080d1c0 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:15e98a45-f635-4f3e-ae72-8d73b6640d5a iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:d97674cb-b4a1-ee6b-f614-f3f22abc1728 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:fe523392-629d-c727-9651-a3df70b2a1b7 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:82cd7a1e-74c0-654c-d403-d784e5992010 iscsiadm: failed to add target record iscsiadm: Cannot resolve host fe80::227:eff:fe03. getaddrinfo error: [Servname not supported for ai_socktype] iscsiadm: cannot resolve fe80::227:eff:fe03 iscsiadm: failed to add default portal, ignoring target iqn.1986-03.com.sun:02:21746376-e30e-eb43-f489-f0b7d0d1f9a3 iscsiadm: failed to add target record Set target iqn.1986-03.com.sun:02:a94cae60-1a6f-eae1-bcfe-d069f3dfbe7c to automatic login
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
** Tags added: ipv6 -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
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
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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
Marked Invalid because the problem lies in the IPv6 Stack of OpenSolaris. ** Changed in: open-iscsi (Ubuntu) Status: New = Invalid -- 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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
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
[Bug 380663] Re: open-iscsi initiator tries to resolve ipv6 address of target and fails
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 Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs