still can't start domain
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. :)
On Thu, 08 Jul 2004 17:15:28 +0100
Keir Fraser <[email protected]> said...
Quoted 4 lines
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.
Quoted 7 lines
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel