Hi, With changeset 7237:76a7a7aa27e4, it appears as though something screwy is happening with the hotplug script upon domain creation. default.hotplug is invoking xen-backend.agent a few times, before it times out. Can someone with some knowledge of the script shed some light on what could be happening? Thanks, Ryan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I noticed that default.hotplug appears to invoke xen-backend.agent with no arguments ... the () below is blank Oct 6 16:22:31 localhost default.hotplug[8114]: arguments (xen-backend) env (SUBSYSTEM=xen-backend OLDPWD=/ XENBUS_TYPE=vif DEVPATH=/devices/xen-backend/vif-7-1 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug XENBUS_PATH=backend/vif/7/1 HOME=/ SHLVL=2 DEBUG=yes PHYSDEVBUS=xen-backend SEQNUM=994 _=/usr/bin/env) Oct 6 16:22:31 localhost default.hotplug[8114]: invoke /etc/hotplug/xen-backend.agent () Also, the xen-backend.agent script included in my dist directory comments out the following lines: #! /bin/sh #ACTION=add #DEVPATH=/devices/xen-backend/vif-1-0 #PHYSDEVDRIVER=vif #XENBUS_TYPE=vif Is this the correct? Ryan On Thu, 6 Oct 2005, Ryan Grimm wrote:> Hi, > > With changeset 7237:76a7a7aa27e4, it appears as though something screwy is > happening with the hotplug script upon domain creation. default.hotplug is > invoking xen-backend.agent a few times, before it times out. > > Can someone with some knowledge of the script shed some light on what could > be happening? > > Thanks, > Ryan_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Fri, 2005-10-07 at 09:58 -0500, Ryan Grimm wrote:> I noticed that default.hotplug appears to invoke xen-backend.agent with no > arguments ... the () below is blank[snip]> Is this the correct?This should be fine -- ACTION, XENBUS_TYPE, etc are all set as environment variables for when hotplug is run Jeremy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 7 Oct 2005, at 15:58, Ryan Grimm wrote:> #ACTION=add > #DEVPATH=/devices/xen-backend/vif-1-0 > #PHYSDEVDRIVER=vif > #XENBUS_TYPE=vif > > Is this the correct?Yes, arguments are passed to hotplug scripts in the environment rather than as positional parameters. Those commented-out lines are just a reference for the script writer of what interesting environment variables get passed up by the kernel. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel