NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/58472: iscsi-initiator not running in NetBSD10.0/amd64, works in NetBSD 7



>Number:         58472
>Category:       misc
>Synopsis:       iscsi-initiator not running in NetBSD10.0/amd64, works in NetBSD 7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 26 19:10:00 +0000 2024
>Originator:     Joerg Behrend
>Release:        10.0
>Organization:
University Cologne, Mathematics
>Environment:
NetBSD hvi201 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The userspace iscsi-initiator lost the functionality to access a filesystem offered by iscsi-target on the same host (localhost). This is working on NetBSD7/amd64 but not on NetBSD 10.0/amd64  anymore. 
>How-To-Repeat:
In three different NetBSD shells:

shell #1:

dd if=/dev/urandom of=diskImage.dd bs=1048576 count=1

iscsi-target -D -v all -f iscsi_target.conf

output of iscsi-target is OK on NetBSD 7 and 10
Reading configuration from `iscsi_target.conf'
target0:ro:0.0.0.0/0
	extent0:diskImage.dd:0:1048576
pid 22034: iscsi_malloc_atomic(128) = 0x7f7ff7b01180
DISK: 1 logical unit (2048 blocks, 512 bytes/block), type iscsi fs
DISK: LUN 0: 1 MB readonly disk storage for "target0"
TARGET: iSCSI Qualified Name (IQN) is iqn.1994-04.org.netbsd.iscsi-target
pid 22034: listener thread started
pid 22034: create, bind, listen OK


Content of file iscsi_target.conf :

# extents       file                    start   length
extent0         diskImage.dd      0        1048576

# target        flags   storage         netmask
target0         ro      extent0         0.0.0.0/0


shell #2

mkdir /mnt/iscsi
iscsi-initiator -f -v all -h localhost  iqn.1994-04.org.netbsd.iscsi-target:target0 /mnt/iscsi
# NetBSDD10: Process terminates after writing  to stdout: pid 21202: condition signaled
# NetBSD7: Process keeps running after writing this message to stdout


shell #3

cat /mnt/iscsi/target0/storage > diskImageCat.dd
# hangs on NetBSD10, gives the 1024 A's on NetBSD7

diff diskImage.dd diskImageCat.dd
# No differences on NetBSD7



>Fix:
iscsi-initiator  works on NetBSD10 also, if it is linked with a librefuse.a library taken from the NetBSD7 code. Therefore the problem seems to be related to fuse. If the reason is found, it hopefully helps to solve running iscsi-initiator from NetBSD in Linux where it is also impossible to use iscsi-initiator to access iscsi-target running on localhost. Linux netbsd iscsi-target works fine.



Home | Main Index | Thread Index | Old Index