From owner-freebsd-emulation@freebsd.org  Wed May 31 17:54:03 2017
Return-Path: <owner-freebsd-emulation@freebsd.org>
Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46C90B7FBBC
 for <freebsd-emulation@mailman.ysv.freebsd.org>;
 Wed, 31 May 2017 17:54:03 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id 21B3D20CF
 for <freebsd-emulation@freebsd.org>; Wed, 31 May 2017 17:54:03 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: by mailman.ysv.freebsd.org (Postfix)
 id 21087B7FBBB; Wed, 31 May 2017 17:54:03 +0000 (UTC)
Delivered-To: emulation@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20B54B7FBBA
 for <emulation@mailman.ysv.freebsd.org>; Wed, 31 May 2017 17:54:03 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "freefall.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id E5A1120CD
 for <emulation@freebsd.org>; Wed, 31 May 2017 17:54:02 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: by freefall.freebsd.org (Postfix)
 id 46DD412136; Wed, 31 May 2017 17:54:02 +0000 (UTC)
Delivered-To: vbox@localmail.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mx1.freebsd.org",
 Issuer "Let's Encrypt Authority X3" (verified OK))
 by freefall.freebsd.org (Postfix) with ESMTPS id 2FA0612134
 for <vbox@localmail.freebsd.org>; Wed, 31 May 2017 17:54:02 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from kenobi.freebsd.org (kenobi.freebsd.org
 [IPv6:2001:1900:2254:206a::16:76])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4D96920C2
 for <vbox@FreeBSD.org>; Wed, 31 May 2017 17:54:01 +0000 (UTC)
 (envelope-from bugzilla-noreply@freebsd.org)
Received: from bugs.freebsd.org ([127.0.1.118])
 by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v4VHs1Nt093662
 for <vbox@FreeBSD.org>; Wed, 31 May 2017 17:54:01 GMT
 (envelope-from bugzilla-noreply@freebsd.org)
From: bugzilla-noreply@freebsd.org
To: vbox@FreeBSD.org
Subject: [Bug 219556] iSCSI subsystem blindly announces non-existing file
 (was: emulators/virtualbox-ose: VBoxSVC consumes 100% CPU and does not exit)
Date: Wed, 31 May 2017 17:54:01 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: kern
X-Bugzilla-Version: 11.0-STABLE
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: Affects Only Me
X-Bugzilla-Who: la5lbtyi@aon.at
X-Bugzilla-Status: New
X-Bugzilla-Resolution: 
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: vbox@FreeBSD.org
X-Bugzilla-Flags: maintainer-feedback?
X-Bugzilla-Changed-Fields: 
Message-ID: <bug-219556-26505-0SyTtjAmS6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-219556-26505@https.bugs.freebsd.org/bugzilla/>
References: <bug-219556-26505@https.bugs.freebsd.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-Mailman-Approved-At: Wed, 31 May 2017 18:31:40 +0000
X-BeenThere: freebsd-emulation@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Development of Emulators of other operating systems
 <freebsd-emulation.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-emulation>, 
 <mailto:freebsd-emulation-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-emulation/>
List-Post: <mailto:freebsd-emulation@freebsd.org>
List-Help: <mailto:freebsd-emulation-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-emulation>, 
 <mailto:freebsd-emulation-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 31 May 2017 17:54:03 -0000

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219556

--- Comment #6 from Martin Birgmeier <la5lbtyi@aon.at> ---
This indeed works, I do not even need to rescan the bus on the client. The
following message is logged when trying "dd if=3D/dev/da0 of=3D/dev/null bs=
=3D1m
count=3D1" on the client after making the target available:

May 31 19:43:46 mizar kernel: (da0:iscsi1:0:0:0): Capacity data has changed

However, I then proceeded to remove the target from the configuration. On t=
he
client this leads to the message

May 31 17:44:41 mizar iscsid[4380]: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
target returned error: Not found
May 31 19:44:41 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:dis=
k1):
connection error; reconnecting
May 31 19:44:41 mizar iscsid[4220]: child process 4380 terminated with exit
status 1

But device da0 on the client still exists. If I now do dd if=3D/dev/da0
of=3D/dev/null bs=3D1m count=3D1" on the client again, I get a non-interrup=
tible hang
until I make the target available again, and even then the hang only termin=
ates
after a timeout of 60 seconds:

May 31 19:45:42 mizar iscsid[4387]: hal.xyzzy (iqn.1995-06.xyzzy.hal:disk1):
target returned error: Not found
May 31 19:45:42 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:dis=
k1):
login timed out after 61 seconds; reconnecting
May 31 19:45:42 mizar iscsid[4220]: child process 4387 terminated with exit
status 1
May 31 19:46:43 mizar kernel: WARNING: hal.xyzzy (iqn.1995-06.xyzzy.hal:dis=
k1):
login timed out after 61 seconds; reconnecting

The dd then succeeds.

--=20
You are receiving this mail because:
You are the assignee for the bug.=