From: "Brian Wolfe" Subject: Re: still can't start domain Date: Thu, 8 Jul 2004 18:09:47 +0000 (UTC) Sender: xen-devel-admin@lists.sourceforge.net Message-ID: Reply-To: brianw@terrabox.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_mail1-11933-1089309582-0001-2" Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu Jul 8 12:52:00 2004 CDT To: Keir Fraser Cc: Mark Williamson , xen-devel@lists.sourceforge.net, Avery Pennarun List-Id: xen-devel@lists.xenproject.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_mail1-11933-1089309582-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hmmm, this is sort of what i'm doing with xenctld in C. vhosts, nodes, and master nodes all have states. Actions are taken based on the state and input is parsed and compared to the states to determine the next step. It operates similar to how xend and xc_dom_control interact, a main daemon that does the work and a client that issues and reports to the end user. The communications all happen in XML (still working on the DTD) so it should be easy for 3rd party stuff to hook into it. My first test program just to play around is the C version. The next attempt at the core features will be done in python just to prove that it works and be able to rapidly change features, etc. Alas, we are a LONG way from it being usefull though. Just been doing the design specs and the network protocol specs. I intend to make some money from the extended features of xenctld and release a subset of capabilities as a GPL version eventually. So for now, don't hold your breath. I just wanted everyone to know that there are a couple of us that are concentrating on making a feature rish set of tools that will eventually be available. :) --=_mail1-11933-1089309582-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, 08 Jul 2004 17:15:28 +0100 Keir Fraser said... --=_mail1-11933-1089309582-0001-2 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mime-Autoconverted: from 8bit to 7bit by courier 0.42 > Clearer error messages than "Error: Cannot start domain" would probably be a > good start. Anyone could have figured out in short order that the domain > couldn't be started. What's much more important is *why* the domain > couldn't be started. This is absolutely true. > In general, error messages should always say why an operation failed, not > just that the operation failed. I find that this works wonders in my own > programs. In C programs, for example, always print out 'errno' in any error > message where it could possibly be relevant. (Of course, to avoid > confusion, definitely don't print out errno where it's not valid anymore :)) > The errno equivalent in perl is $!. In python I guess you have to use > exceptions or something. The problem with the new toolset is that some of the context for building a useful error message at the client program is separated from the client in both space (its in a server, behind a socket) and in time (the failure may be due to some random asynchronous request made ages ago). A tedious problem but certainly surmountable -- this area definitely needs attention. The crux of the problem is that we need a domain controller capable of juggling multiple outstanding operations at the same time. In general you do that by using multiple threads or by decoupling requests from their eventual responses. Both can have their drawbacks, and asynchronous models in particular need great care to avoid runaway complexity. My preferred model would be lightweight language-level threads, but I don't know if anything suitable exists for Python. What I've seen of Twisted so far hasn't recommended it to me. :-) -- Keir ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel --=_mail1-11933-1089309582-0001-2-- ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com