WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] recursive error in xen-hotplug-common.sh

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] recursive error in xen-hotplug-common.sh
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 15 Dec 2010 20:30:39 +0100
Delivery-date: Wed, 15 Dec 2010 11:31:38 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1292441446; l=6602; s=domk; d=aepfle.de; h=Content-Type:MIME-Version:Subject:To:From:Date:X-RZG-CLASS-ID: X-RZG-AUTH; bh=4wZHPGJJI6Sgl5Gd8BSLOby/ue8=; b=dtSwe13huvdd9itMWzyMbXkojMoIML7iNZx+Wm5ihd8Z3h3UMIjeMJGI1RsSSSm67qW o7iVH/fct80F07iYa6L3WbUalxUViSzn+SnToLqv5fkB3tRrL/Vph6ojtGmllXCWuOyhB fK+ADOIbsCaZtmnldf/NXjVHGr2QK19FzPA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
Current xen-unstable does not have backend/vbd/1/768/params for some
reason.  This causes xenstore_read() in xen-hotplug-common.sh to call
fatal().  fatal() calls xenstore_write(). If xenstore-write happens to
fail, fatal() is called once again. Now the block script is busy.

I have added the set -x output, preceded by the env and set output:

SUBSYSTEM=xen-backend
XENBUS_TYPE=vbd
DEVPATH=/devices/xen-backend/vbd-1-768
ACTION=add
PWD=/
UDEV_LOG=3
XENBUS_PATH=backend/vbd/1/768
UDEVD_EVENT=1
XENBUS_BASE_PATH=backend
SHLVL=1
SEQNUM=1478
_=/usr/bin/env

ACTION=add
BASH=/bin/bash
BASH_ARGC=([0]="1")
BASH_ARGV=([0]="add")
BASH_LINENO=([0]="0")
BASH_SOURCE=([0]="/etc/xen/scripts/block")
BASH_VERSINFO=([0]="3" [1]="2" [2]="51" [3]="1" [4]="release" 
[5]="x86_64-suse-linux-gnu")
BASH_VERSION='3.2.51(1)-release'
DEVPATH=/devices/xen-backend/vbd-1-768
DIRSTACK=()
EUID=0
GROUPS=()
HOSTNAME=stein-schneider
HOSTTYPE=x86_64
IFS=$' \t\n'
MACHTYPE=x86_64-suse-linux-gnu
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.
PIPESTATUS=([0]="0")
PPID=5717
PS4='+ '
PWD=/
SEQNUM=1478
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SUBSYSTEM=xen-backend
TERM=dumb
UDEVD_EVENT=1
UDEV_LOG=3
UID=0
XENBUS_BASE_PATH=backend
XENBUS_PATH=backend/vbd/1/768
XENBUS_TYPE=vbd
_=echo

++ dirname /etc/xen/scripts/block
+ dir=/etc/xen/scripts
+ . /etc/xen/scripts/block-common.sh
+++ dirname /etc/xen/scripts/block
++ dir=/etc/xen/scripts
++ . /etc/xen/scripts/xen-hotplug-common.sh
++++ dirname /etc/xen/scripts/block
+++ dir=/etc/xen/scripts
+++ . /etc/xen/scripts/hotplugpath.sh
++++ SBINDIR=/usr/sbin
++++ BINDIR=/usr/bin
++++ LIBEXEC=/usr/lib/xen/bin
++++ LIBDIR=/usr/lib64
++++ SHAREDIR=/usr/share
++++ PRIVATE_BINDIR=/usr/lib64/xen/bin
++++ XENFIRMWAREDIR=/usr/lib/xen/boot
++++ XEN_CONFIG_DIR=/etc/xen
++++ XEN_SCRIPT_DIR=/etc/xen/scripts
++++ XEN_LOCK_DIR=/var/lock
+++ . /etc/xen/scripts/logging.sh
+++ . /etc/xen/scripts/xen-script-common.sh
++++ set -e
+++ . /etc/xen/scripts/locking.sh
++++ LOCK_SLEEPTIME=1
++++ LOCK_SPINNING_RETRIES=5
++++ LOCK_RETRIES=100
++++ LOCK_BASEDIR=/var/run/xen-hotplug
+++ export 
PATH=/usr/bin:/usr/sbin:/usr/lib/xen/bin:/usr/lib64/xen/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.
+++ 
PATH=/usr/bin:/usr/sbin:/usr/lib/xen/bin:/usr/lib64/xen/bin:/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.
+++ export LANG=POSIX
+++ LANG=POSIX
++++ set
++++ grep '^LC_'
++++ cut -d= -f1
+++ unset
+++ trap sigerr ERR
+++ log debug add XENBUS_PATH=backend/vbd/1/768
+++ local level=debug
+++ shift
+++ logger -p daemon.debug -- /etc/xen/scripts/block: add 
XENBUS_PATH=backend/vbd/1/768
++ findCommand add
++ for arg in '"$@"'
++ expr index add =
++ command=add
++ return
++ '[' add '!=' add ']'
++ XENBUS_PATH=backend/vbd/1/768
++ xenstore_read_default backend/vbd/1/768/type MISSING
++ xenstore-read backend/vbd/1/768/type
++ echo MISSING
+ t=MISSING
+ case "$command" in
++ xenstore_read_default backend/vbd/1/768/physical-device MISSING
++ xenstore-read backend/vbd/1/768/physical-device
++ echo MISSING
+ phys=MISSING
+ '[' MISSING '!=' MISSING ']'
+ '[' -n MISSING ']'
++ xenstore_read backend/vbd/1/768/params
+++ xenstore-read backend/vbd/1/768/params
xenstore-read: couldn't read path backend/vbd/1/768/params
+++ true
++ local v=
++ '[' '' '!=' '' ']'
++ fatal 'xenstore-read backend/vbd/1/768/params failed.'
++ xenstore_write backend/vbd/1/768/hotplug-error 'xenstore-read 
backend/vbd/1/768/params failed.' backend/vbd/1/768/hotplug-status error
++ log debug 'Writing backend/vbd/1/768/hotplug-error' 'xenstore-read 
backend/vbd/1/768/params failed.' backend/vbd/1/768/hotplug-status 'error to 
xenstore.'
++ local level=debug
++ shift
++ logger -p daemon.debug -- /etc/xen/scripts/block: 'Writing 
backend/vbd/1/768/hotplug-error' 'xenstore-read backend/vbd/1/768/params 
failed.' backend/vbd/1/768/hotplug-status 'error to xenstore.'
++ xenstore-write backend/vbd/1/768/hotplug-error 'xenstore-read 
backend/vbd/1/768/params failed.' backend/vbd/1/768/hotplug-status error
xenstore-write: could not write path backend/vbd/1/768/hotplug-error
++ fatal 'Writing backend/vbd/1/768/hotplug-error' 'xenstore-read 
backend/vbd/1/768/params failed.' backend/vbd/1/768/hotplug-status 'error to 
xenstore failed.'
++ xenstore_write backend/vbd/1/768/hotplug-error 'Writing 
backend/vbd/1/768/hotplug-error xenstore-read backend/vbd/1/768/params failed. 
backend/vbd/1/768/hotplug-status error to xenstore failed.' 
backend/vbd/1/768/hotplug-status error
++ log debug 'Writing backend/vbd/1/768/hotplug-error' 'Writing 
backend/vbd/1/768/hotplug-error xenstore-read backend/vbd/1/768/params failed. 
backend/vbd/1/768/hotplug-status error to xenstore failed.' 
backend/vbd/1/768/hotplug-status 'error to xenstore.'
++ local level=debug
++ shift
++ logger -p daemon.debug -- /etc/xen/scripts/block: 'Writing 
backend/vbd/1/768/hotplug-error' 'Writing backend/vbd/1/768/hotplug-error 
xenstore-read backend/vbd/1/768/params failed. backend/vbd/1/768/hotplug-status 
error to xenstore failed.' backend/vbd/1/768/hotplug-status 'error to xenstore.'
++ xenstore-write backend/vbd/1/768/hotplug-error 'Writing 
backend/vbd/1/768/hotplug-error xenstore-read backend/vbd/1/768/params failed. 
backend/vbd/1/768/hotplug-status error to xenstore failed.' 
backend/vbd/1/768/hotplug-status error
xenstore-write: could not write path backend/vbd/1/768/hotplug-error
++ fatal 'Writing backend/vbd/1/768/hotplug-error' 'Writing 
backend/vbd/1/768/hotplug-error xenstore-read backend/vbd/1/768/params failed. 
backend/vbd/1/768/hotplug-status error to xenstore failed.' 
backend/vbd/1/768/hotplug-status 'error to xenstore failed.'
++ xenstore_write backend/vbd/1/768/hotplug-error 'Writing 
backend/vbd/1/768/hotplug-error Writing backend/vbd/1/768/hotplug-error 
xenstore-read backend/vbd/1/768/params failed. backend/vbd/1/768/hotplug-status 
error to xenstore failed. backend/vbd/1/768/hotplug-status error to xenstore 
failed.' backend/vbd/1/768/hotplug-status error
++ log debug 'Writing backend/vbd/1/768/hotplug-error' 'Writing 
backend/vbd/1/768/hotplug-error Writing backend/vbd/1/768/hotplug-error 
xenstore-read backend/vbd/1/768/params failed. backend/vbd/1/768/hotplug-status 
error to xenstore failed. backend/vbd/1/768/hotplug-status error to xenstore 
failed.' backend/vbd/1/768/hotplug-status 'error to xenstore.'
++ local level=debug
....



Olaf


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>