NetBSD Problem Report #58472
From www@netbsd.org Fri Jul 26 19:09:07 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C9A151A9239
for <gnats-bugs@gnats.NetBSD.org>; Fri, 26 Jul 2024 19:09:07 +0000 (UTC)
Message-Id: <20240726190906.3F30F1A923B@mollari.NetBSD.org>
Date: Fri, 26 Jul 2024 19:09:06 +0000 (UTC)
From: jbe@math.uni-koeln.de
Reply-To: jbe@math.uni-koeln.de
To: gnats-bugs@NetBSD.org
Subject: iscsi-initiator not running in NetBSD10.0/amd64, works in NetBSD 7
X-Send-Pr-Version: www-1.0
>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:/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.
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.