NetBSD Problem Report #59975
From www@netbsd.org Sun Feb 8 00:57:21 2026
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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "R13" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 634521A923D
for <gnats-bugs@gnats.NetBSD.org>; Sun, 8 Feb 2026 00:57:21 +0000 (UTC)
Message-Id: <20260208005720.489901A923E@mollari.NetBSD.org>
Date: Sun, 8 Feb 2026 00:57:20 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: xenstore-read: couldn't read path /local/domain/0/backend/vbd/38/0/vnd
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>
>Number: 59975
>Category: pkg
>Synopsis: xenstore-read: couldn't read path /local/domain/0/backend/vbd/38/0/vnd
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bouyer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 08 01:00:01 +0000 2026
>Last-Modified: Sun Feb 08 06:36:55 +0000 2026
>Originator: Taylor R Campbell
>Release: netbsd-10, xentools418-20231116nb1
>Organization:
>Environment:
>Description:
When I destroy a domU, I get a useless warning message:
xenhost$ sudo xl destroy 35
xenstore-read: couldn't read path /local/domain/0/backend/vbd/35/0/vnd
>How-To-Repeat:
destroy a domU that doesn't have a vnd attached or something
>Fix:
Apply the following patch to redirect output in the shell script (and simplify the failure test):
--- /usr/pkg/share/examples/xen/scripts/block.~1~ 2026-02-08 00:55:19.637854549 +0000
+++ /usr/pkg/share/examples/xen/scripts/block 2026-02-08 00:55:45.291761640 +0000
@@ -25,8 +25,7 @@
case $xstatus in
6)
# device removed
- vnd=$(xenstore-read "$xpath/vnd" || echo none)
- if [ $vnd != none ]; then
+ if vnd=$(xenstore-read "$xpath/vnd" 2>/dev/null); then
vnconfig -u $vnd
fi
xenstore-rm $xpath
The rest of the shell script probably needs some serious attention too but I'm trying to get something else done.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->bouyer
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 08 Feb 2026 06:36:55 +0000
Responsible-Changed-Why:
Over to maintainer
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.