[MacPorts] #32662: netbsd-iscsi-initiator
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: macports-tickets@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: iscsi | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- 1. port netbsd-iscsi-initiator won't compile with clang in Xcode 4.2. As instructed in the Problem Hotlist, I am filing a ticket after verifying successful compiling by gcc. 2. iscsi-initiator is trying to connect localhost even though option -h host_ip is specified. Logs read: iscsi-initiator -4Dv -a chap -h 192.168.1.11 -u <username> pid 83147:util.c:878: ***ERROR*** connect() to localhost:3260 failed (errno 61) pid 83147:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed pid 83147:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited prematurely (state 0x4) pid 83147:initiator.c:319: ***ERROR*** Tx worker 0 started with an error pid 83147:initiator.c:1262: ***ERROR*** session_init_i() failed (ignoring command) ^C 3. Newer version netbsd-iscsi-20111006.tar.gz is up at ftp.netbsd.org. Thank you. -- Ticket URL: <https://trac.macports.org/ticket/32662> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: request | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Changes (by pixilla@…): * owner: macports-tickets@… => pixilla@… * keywords: iscsi => lion clang -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * type: request => defect Old description:
1. port netbsd-iscsi-initiator won't compile with clang in Xcode 4.2. As instructed in the Problem Hotlist, I am filing a ticket after verifying successful compiling by gcc.
2. iscsi-initiator is trying to connect localhost even though option -h host_ip is specified.
Logs read:
iscsi-initiator -4Dv -a chap -h 192.168.1.11 -u <username> pid 83147:util.c:878: ***ERROR*** connect() to localhost:3260 failed (errno 61) pid 83147:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed pid 83147:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited prematurely (state 0x4) pid 83147:initiator.c:319: ***ERROR*** Tx worker 0 started with an error pid 83147:initiator.c:1262: ***ERROR*** session_init_i() failed (ignoring command) ^C
3. Newer version netbsd-iscsi-20111006.tar.gz is up at ftp.netbsd.org.
Thank you.
New description: 1. port netbsd-iscsi-initiator won't compile with clang in Xcode 4.2. As instructed in the Problem Hotlist, I am filing a ticket after verifying successful compiling by gcc. 2. iscsi-initiator is trying to connect localhost even though option -h host_ip is specified. Logs read: {{{ iscsi-initiator -4Dv -a chap -h 192.168.1.11 -u <username> pid 83147:util.c:878: ***ERROR*** connect() to localhost:3260 failed (errno 61) pid 83147:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed pid 83147:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited prematurely (state 0x4) pid 83147:initiator.c:319: ***ERROR*** Tx worker 0 started with an error pid 83147:initiator.c:1262: ***ERROR*** session_init_i() failed (ignoring command) ^C }}} 3. Newer version netbsd-iscsi-20111006.tar.gz is up at ftp.netbsd.org. Thank you. -- -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by pixilla@…): I installed Openfiler, Windows XP and NetBSD in vm's. With an Openfiler iscsi target Windows was able to initiate a connection to the Openfiler target. On NetBSD iscsi-target does not appear to honor the -h flag. I have found so little documentation on netbsd iscsi-initiator. I am looking for a known good netbsd iscsi-initiator connection configuration. Help! -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by a639989@…): Happened also with Snow Leo: iscsi-initiator -Dv -u myuser -h 192.168.1.10 /tmp/aa/ pid 87152:util.c:878: ***ERROR*** connect() to localhost:3260 failed (errno 61) pid 87152:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed pid 87152:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited prematurely (state 0x4) pid 87152:initiator.c:319: ***ERROR*** Tx worker 0 started with an error pid 87152:initiator.c:1262: ***ERROR*** session_init_i() failed (ignoring command) -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by always.sed@…): I'm curious if somebody managed to make netbsd initiator to work under OS X I gave it a try on my side and I found couple issues: The -v needs a parameter based on while ((i = getopt(argc, argv, "46a:bcd:Dfh:p:t:u:v:V")) != -1) { The next issue seems to be the SendTarget command (src/lib/initiator.c). The netbsd version sends "=all" while linux target implementation expects "=All" (and it's case sensitive) Once both issues are fixed I can get discovery running and was able to get the list of targets/luns available But the attempt to login (ISCSI_LOGIN_CMD) fails due to kernel crash on the '''target''' side :-) (NULL pointer deference kernel version 2.6.37.6 ) Call Trace: [<ffffffffa0065de5>] iscsi_create_default_params+0x815/0x9c0 [iscsi_target_mod] [<ffffffffa006e515>] iscsi_target_login_thread+0x1485/0x1c80 [iscsi_target_mod] [<ffffffff88071c90>] ? call_rcu_sched+0x10/0x20 [<ffffffff88003014>] kernel_thread_helper+0x4/0x10 [<ffffffffa006d090>] ? iscsi_target_login_thread+0x0/0x1c80 [iscsi_target_mod] [<ffffffff88003010>] ? kernel_thread_helper+0x0/0x10 Tried with QNAP-459 PRO and ReadyNAS ultra4 Didn't have time to play more with it. Replying to [comment:4 a639989@…]:
Happened also with Snow Leo:
iscsi-initiator -Dv -u myuser -h 192.168.1.10 /tmp/aa/
pid 87152:util.c:878: ***ERROR*** connect() to localhost:3260 failed (errno 61) pid 87152:initiator.c:1376: ***ERROR*** iscsi_sock_connect() failed pid 87152:initiator.c:1587: ***ERROR*** tx_worker[0]: session exited prematurely (state 0x4) pid 87152:initiator.c:319: ***ERROR*** Tx worker 0 started with an error pid 87152:initiator.c:1262: ***ERROR*** session_init_i() failed (ignoring command)
-- Ticket URL: <https://trac.macports.org/ticket/32662#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by pixilla@…): Replying to [comment:5 always.sed@…]:
I'm curious if somebody managed to make netbsd initiator to work under OS X
Not that I am aware of. If you have any patches that improve what we have now please attach them to this ticket and I will include them in the port. There has been steady interest in getting this port to work. -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by jmr@…): Why does this port even exist in the main tree if nobody has ever managed to make it work on OS X? -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion clang | Port: netbsd-iscsi-initiator --------------------------------+------------------------------------------- Comment(by louwrentius@…): Same story here. I don't have enough knowledge how to alter the source and recompile, but I do get the software to connect to my ISCSI target. Verified that with tcpdump. No chap. Configured it just to work. Tested with open-iscsi initiator on linux. Louwrentius:bin nan03$ ./iscsi-initiator -h 10.0.1.4 pid 39209:initiator.c:2222: ***ERROR*** Bad Status-Class: got 2, expected 0 pid 39209:initiator.c:2018: ***ERROR*** initiator_cmd_t failed pid 39209:initiator.c:716: ***ERROR*** login_phase_i() failed pid 39209:initiator.c:1301: ***ERROR*** enqueue_worker: discovery_phase() failed (ignoring command) -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Comment (by warlock@…): I finally got the netbsd initiator work with OS X - at least under well defined test environment :-)! After some Code Cleanup I will make a diff file and attach it to the ticket here (maybe next week). The netbsd initiator currently only works with the netbsd target (should be no problem with a netbsd or a linux server (which uses the netbsd target too)). -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Comment (by brendonwalsh@…): Replying to [comment:10 warlock@…]:
After some Code Cleanup I will make a diff file and attach it to the ticket here (maybe next week).
Did you run into more issues? I'd love to see this working code. I've just recently started looking into this issue myself. -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Comment (by brendonwalsh@…): As was previously stated, the initiator does work without error when used with a netbsd-iscsi-target. No patch was required to get it to connect to an iSCSI target running on localhost. The issue that I have run into is trying to mount the virtual regular "storage" file within the target directory that the initiator mounts. hdiutil is of no help and causes the mount to lose it's directory contents and must be remounted again. I was able to mount the target using VirtualBox and write to the volume so I know that the target is not at fault. My guess at the moment is some fuse component that isn't mounting the "storage" file as it should. Hopefully someone else attempts this and can debug a little further than me. -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Comment (by e369484@…): Any chance this piece of SW will work with Linux target then? Esp. tgtd. Trying without chap. 'iscsi-test' points to server on same LAN. From another Linux box it works like a charm (for some time). {{{ iscsi-initiator -h iscsi-test ./mydisk/ pid 51437:initiator.c:2222: ***ERROR*** Bad Status-Class: got 2, expected 0 pid 51437:initiator.c:2018: ***ERROR*** initiator_cmd_t failed pid 51437:initiator.c:716: ***ERROR*** login_phase_i() failed pid 51437:initiator.c:1301: ***ERROR*** enqueue_worker: discovery_phase() failed (ignoring command) }}} Thx. -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Comment (by pixilla@…): Replying to [comment:15 e369484@…]:
Any chance this piece of SW will work with Linux target then? Esp. tgtd. Trying without chap. 'iscsi-test' points to server on same LAN. From another Linux box it works like a charm (for some time).
The support of this port is beyond my skills; and the knowledgable interested parties have apparently moved on. I doubt this port will ever work without the attention of someone with serious skills. -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#32662: netbsd-iscsi-initiator -------------------------------------+------------------------ Reporter: mrchulho@… | Owner: pixilla@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: wontfix | Keywords: lion clang Port: netbsd-iscsi-initiator | -------------------------------------+------------------------ Changes (by pixilla@…): * status: new => closed * resolution: => wontfix Comment: Port removed in r110837 -- Ticket URL: <https://trac.macports.org/ticket/32662#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts