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] [PATCH] add xl init scripts

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] add xl init scripts
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 4 Jun 2010 17:22:43 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Fri, 04 Jun 2010 09:23:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1275665214.24218.35917.camel@xxxxxxxxxxxxxxxxxxxxxx>
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>
References: <alpine.DEB.2.00.1006041215390.3401@kaball-desktop> <1275665214.24218.35917.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 4 Jun 2010, Ian Campbell wrote:
> On Fri, 2010-06-04 at 12:37 +0100, Stefano Stabellini wrote:
> > The network script and the vif script to be used with xl can be
> > specified in /etc/sysconfig/xenlightdaemons.
> 
> Would it be better to create /etc/init.d/{xenstored,xenconsoled}
> and /etc/sysconfig/{xenstored,xenconsoled} and have those used
> consistently no matter which toolstack was in use?

There are several small daemons on a xen installation and the number of
them is growing quickly.
Having a separate init script for each of them might not be a winning
strategy in the medium/long term.


> Or maybe a single
> xendaemons script+config would do. In either case /etc/init.d/xend could
> be run only on systems which want xend, similarly for /etc/init.d/xl (if
> such a thing is still necessary after my comments below).
> 

This is exactly the idea, the variable in xen_toolstack is only to make
sure that we don't break anything if both toolstacks and scripts are
installed.


> Is a network script really required for xl? I think it would be more in
> keeping with how xl works to require that the distro configuration be
> setup correctly to create bridges etc e.g. correctly
> setup /etc/network/interfaces under Debian
> or /etc/sysconfig/network-scripts/ifcfg-* under RH derived distros etc.
> 
> Similarly I think xl should assume that the platform has been correctly
> configured with a vif hotplug script with the correct behaviour? It's
> not clear to me why tools/hotplug/Linux/xen-backend.rules needs to use a
> different scheme for vif devices to all the other backend types. The
> script there could be a symlink to one of several variants if necessary,
> there's no reason for it to be a config item in xl (or xend for that
> matter)
> 
> It seems like we are now replicating some of the worst bits of xend
> poking around behind the back of the distro config files in xl.
> 

I think using the distro settings is definitely better, in fact you can
set whatever network script you want (including nothing), in the
NETWORK_SCRIPT variable, maybe NETWORK_SCRIPT= could be the default.

However network-bridge is quite handy and simple to use, I think we
should provide the users a simple way to automatically setup the network
no matter what their distro is.


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

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