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

Re: [Xen-devel] Cannot create domU

To: Greg KH <greg@xxxxxxxxx>
Subject: Re: [Xen-devel] Cannot create domU
From: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Date: Tue, 27 Sep 2005 16:33:28 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 27 Sep 2005 15:31:09 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uMLwmkdu9U4GWrtuQr4Ijk4/jiN69QRZIYelogF1en6QjE9brXmV/p844tI0rSj+zQo4xES3qgvPWlJ30gubfOt7tWI5PdAaB2S49ftq7OFgBsa36GK7kZbIAcOoqfjQbv7W17yYNCqZHHjpRkPbalzKCZlJ/sKWBcf9PhrMzh8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050926212200.GB18670@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7d249e777fd88c08faab74751b15fca6@xxxxxxxxxxxx> <9f173d1d7dea2ed7b9d458acd070f552@xxxxxxxxxxxx> <623652d505092413006f3950b@xxxxxxxxxxxxxx> <20050926124707.GA13414@xxxxxxxxx> <fe13108c1a010f99eb1dd063df18e4d9@xxxxxxxxxxxx> <20050926141407.GA15384@xxxxxxxxx> <22f2b04bae14c3efa4833ce013cc4542@xxxxxxxxxxxx> <20050926150135.GA15781@xxxxxxxxx> <a4d4285ca44d6c97c1e2110e668fb9ca@xxxxxxxxxxxx> <20050926212200.GB18670@xxxxxxxxx>
Reply-to: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I have enabled debug in udev and hotplug. From the udevsend man page:

 udevd  takes  care  of the kernel supplied sequence number and arranges
       the events for execution in the correct order. Missing sequences delay
       the execution of the following events until a timeout is reached.

Is it possible that the events aren't being supplied in the correct
order by xen, or there is some race condition, that would cause xen to
timeout before the event arrives?

Here is a log of /sbin/hotplug, which works:

Sep 27 15:55:32 xenmaster store_evtchn = 19
Sep 27 15:55:32 xenmaster default.hotplug[2352]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/xen-br0
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 INTERFACE=xen-br0 DEBUG=yes SEQNUM=330 _=/bin/env)
Sep 27 15:55:32 xenmaster default.hotplug[2352]: invoke
/etc/hotplug/net.agent ()
Sep 27 15:55:32 xenmaster net.agent[2352]: add event not handled
Sep 27 15:55:32 xenmaster default.hotplug[2376]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/xen-br0 ACTION=add
PWD=/etc/hotplug UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 INTERFACE=xen-br0
DEBUG=yes SEQNUM=330 _=/bin/env)
Sep 27 15:55:32 xenmaster default.hotplug[2376]: invoke
/etc/hotplug/net.agent ()
Sep 27 15:55:32 xenmaster net.agent[2376]: add event not handled
Sep 27 15:57:00 xenmaster default.hotplug[2398]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vbd
DEVPATH=/devices/xen-backend/vbd-1-769
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug
XENBUS_PATH=backend/vbd/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/769
HOME=/ SHLVL=2 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=331 _=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2398]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 15:57:00 xenmaster default.hotplug[2403]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vbd
DEVPATH=/devices/xen-backend/vbd-1-769 ACTION=add PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vbd/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/769
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=331
_=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2403]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 15:57:00 xenmaster default.hotplug[2422]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1
script=/etc/xen/scripts/vif-bridge vif=vif1.1
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=online mac=aa:00:00:00:00:11
PWD=/etc/hotplug domain=ubuntu bridge=xen-br0
XENBUS_PATH=backend/vif/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/1 HOME=/
SHLVL=2 PHYSDEVDRIVER=vif DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=334
_=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2420]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/vif1.1
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/
SHLVL=2 INTERFACE=vif1.1 DEBUG=yes SEQNUM=333 _=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2420]: invoke
/etc/hotplug/net.agent ()
Sep 27 15:57:00 xenmaster default.hotplug[2422]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 15:57:00 xenmaster xen-backend.agent[2422]: in
xen-backend.agent (ACTION=online XENBUS_TYPE=vif)
Sep 27 15:57:00 xenmaster xen-backend.agent[2403]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vbd)
Sep 27 15:57:00 xenmaster device vif1.1 entered promiscuous mode
Sep 27 15:57:00 xenmaster xen-br0: port 1(vif1.1) entering learning state
Sep 27 15:57:00 xenmaster xen-br0: topology change detected, propagating
Sep 27 15:57:00 xenmaster xen-br0: port 1(vif1.1) entering forwarding state
Sep 27 15:57:00 xenmaster default.hotplug[2417]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1
PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug
XENBUS_PATH=backend/vif/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/1 HOME=/
SHLVL=2 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=332 _=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2417]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 15:57:00 xenmaster net.agent[2420]: add event not handled
Sep 27 15:57:00 xenmaster xen-backend.agent[2417]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vif)
Sep 27 15:57:00 xenmaster default.hotplug[2453]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1 ACTION=add PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vif/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/1
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=332
_=/bin/env)
Sep 27 15:57:00 xenmaster xen-backend.agent[2398]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vbd)
Sep 27 15:57:00 xenmaster default.hotplug[2453]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 15:57:00 xenmaster xen-backend.agent[2453]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vif)
Sep 27 15:57:00 xenmaster default.hotplug[2430]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/vif1.1 ACTION=add
PWD=/etc/hotplug UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 INTERFACE=vif1.1
DEBUG=yes SEQNUM=333 _=/bin/env)
Sep 27 15:57:00 xenmaster default.hotplug[2430]: invoke
/etc/hotplug/net.agent ()
Sep 27 15:57:00 xenmaster net.agent[2430]: add event not handled
Sep 27 15:57:00 xenmaster default.hotplug[2500]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1
script=/etc/xen/scripts/vif-bridge vif=vif1.1 ACTION=online
PWD=/etc/hotplug UDEV_LOG=3 mac=aa:00:00:00:00:11 domain=ubuntu
bridge=xen-br0 XENBUS_PATH=backend/vif/2b4375b1-c81d-45f3-a227-cd2eaa601ff7/1
UDEVD_EVENT=1 SHLVL=1 PHYSDEVDRIVER=vif DEBUG=yes
PHYSDEVBUS=xen-backend SEQNUM=334 _=/bin/env)

And udevsend, which fails:

Sep 27 16:08:51 xenmaster store_evtchn = 19
Sep 27 16:08:51 xenmaster default.hotplug[2297]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/xen-br0 ACTION=add
PWD=/etc/hotplug UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 INTERFACE=xen-br0
DEBUG=yes SEQNUM=330 _=/bin/env)
Sep 27 16:08:51 xenmaster default.hotplug[2297]: invoke
/etc/hotplug/net.agent ()
Sep 27 16:08:51 xenmaster net.agent[2297]: add event not handled
Sep 27 16:09:17 xenmaster default.hotplug[2332]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vbd
DEVPATH=/devices/xen-backend/vbd-1-769 ACTION=add PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vbd/3e2182e4-998e-4191-863c-a60d0f1d6962/769
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=331
_=/bin/env)
Sep 27 16:09:17 xenmaster default.hotplug[2332]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 16:09:17 xenmaster xen-backend.agent[2332]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vbd)
Sep 27 16:09:17 xenmaster default.hotplug[2337]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1 ACTION=add PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vif/3e2182e4-998e-4191-863c-a60d0f1d6962/1
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=332
_=/bin/env)
Sep 27 16:09:17 xenmaster default.hotplug[2337]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 16:09:17 xenmaster default.hotplug[2344]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/vif1.1 ACTION=add
PWD=/etc/hotplug UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 INTERFACE=vif1.1
DEBUG=yes SEQNUM=333 _=/bin/env)
Sep 27 16:09:17 xenmaster xen-backend.agent[2337]: in
xen-backend.agent (ACTION=add XENBUS_TYPE=vif)
Sep 27 16:09:17 xenmaster default.hotplug[2344]: invoke
/etc/hotplug/net.agent ()
Sep 27 16:09:17 xenmaster default.hotplug[2375]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1
script=/etc/xen/scripts/vif-bridge vif=vif1.1 ACTION=online
PWD=/etc/hotplug UDEV_LOG=3 mac=aa:00:00:00:00:11 domain=ubuntu
bridge=xen-br0 XENBUS_PATH=backend/vif/3e2182e4-998e-4191-863c-a60d0f1d6962/1
UDEVD_EVENT=1 SHLVL=1 PHYSDEVDRIVER=vif DEBUG=yes
PHYSDEVBUS=xen-backend SEQNUM=334 _=/bin/env)
Sep 27 16:09:17 xenmaster net.agent[2344]: add event not handled
Sep 27 16:09:17 xenmaster default.hotplug[2375]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 16:09:17 xenmaster xen-backend.agent[2375]: in
xen-backend.agent (ACTION=online XENBUS_TYPE=vif)
Sep 27 16:09:27 xenmaster default.hotplug[2412]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif
DEVPATH=/devices/xen-backend/vif-1-1 ACTION=remove PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vif/3e2182e4-998e-4191-863c-a60d0f1d6962/1
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=335
_=/bin/env)
Sep 27 16:09:27 xenmaster default.hotplug[2414]: arguments
(xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vbd
DEVPATH=/devices/xen-backend/vbd-1-769 ACTION=remove PWD=/etc/hotplug
UDEV_LOG=3 XENBUS_PATH=backend/vbd/3e2182e4-998e-4191-863c-a60d0f1d6962/769
UDEVD_EVENT=1 SHLVL=1 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=336
_=/bin/env)
Sep 27 16:09:27 xenmaster default.hotplug[2412]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 16:09:28 xenmaster default.hotplug[2414]: invoke
/etc/hotplug/xen-backend.agent ()
Sep 27 16:09:28 xenmaster xen-backend.agent[2412]: in
xen-backend.agent (ACTION=remove XENBUS_TYPE=vif)
Sep 27 16:09:28 xenmaster xen-backend.agent[2414]: in
xen-backend.agent (ACTION=remove XENBUS_TYPE=vbd)
Sep 27 16:09:28 xenmaster default.hotplug[2448]: arguments (net) env
(SUBSYSTEM=net OLDPWD=/ DEVPATH=/class/net/vif1.1 ACTION=remove
PWD=/etc/hotplug UDEV_LOG=3 UDEVD_EVENT=1 SHLVL=1 INTERFACE=vif1.1
DEBUG=yes SEQNUM=337 _=/bin/env)
Sep 27 16:09:28 xenmaster default.hotplug[2448]: invoke
/etc/hotplug/net.agent ()
Sep 27 16:09:28 xenmaster net.agent[2448]: remove event not handled

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

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