From: Steve Kemp Subject: Re: [PATCH] add domain creation/shutdown script execution support. Date: Wed, 7 Mar 2007 09:37:48 +0000 Message-ID: <20070307093748.GA24691@steve.org.uk> References: <20070306135628.GA14559@steve.org.uk> <200703061539.38596.mark.williamson@cl.cam.ac.uk> <20070306154939.GA21594@steve.org.uk> <200703070050.39420.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200703070050.39420.mark.williamson@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Mark Williamson List-Id: xen-devel@lists.xenproject.org On Wed, Mar 07, 2007 at 12:50:39AM +0000, Mark Williamson wrote: > In fact, what I really meant was that the only reason I'm not recommending > they go in straight away (subject to a bit of clean up) is that it would be > nice to avoid changing the basic infrastructure in this area of the tools > later on if we want a more general mechanism. Understandable. > I'm really glad you've taken the initiative on this, it has the potential to > give us some very powerful functionality quite cheaply. I will endeavor to find some free time over the weekend to have a play with the xenstored code, and see if I can watch events from it. No promises at all, but if I get anywhere I'll post an update. Right now I can use "xenstore-ls" to get a snapshot, and I guess I could do that every five seconds or so to be able to detect newly created domains, and existing ones which have been shutdown. That's not ideal, but for a first pass should let me get something working. Downside is I'd probably have to write the daemon in python to get it into the core, right? > There's some information on it in the Wiki. Essentially it gives you a > hierarchical namespace describing the state of the management tools and the > domains running. This namespace is populated by (largely) human-readable > name=value pairs. Great. > I'll continue thinking about how best to accomplish it in the meantime... :) > It'll be interesting to see where we can go with this... Agreed. Steve --