From: Sean Dague <sean@dague.net>
To: harry <harry@hebutterworth.freeserve.co.uk>
Cc: xen-tools@lists.xensource.com, xen-devel@lists.xensource.com
Subject: Re: Re: [Xen-tools] [RFC] xm interface proposed changes
Date: Fri, 29 Jul 2005 13:35:30 -0400 [thread overview]
Message-ID: <20050729173530.GA11534@underhill.no-ip.org> (raw)
In-Reply-To: <1122650936.28631.62.camel@localhost.localdomain>
[-- Attachment #1.1: Type: text/plain, Size: 6541 bytes --]
On Fri, Jul 29, 2005 at 04:28:56PM +0100, harry wrote:
> On Fri, 2005-07-29 at 10:44 -0400, Sean Dague wrote:
> > On Fri, Jul 29, 2005 at 03:25:04PM +0100, harry wrote:
> >> <big snip>
> > I actually think this is exactly the opposite from what we want, and is
> > actually what is in there now and makes it such a mess.
>
> No, it's not remotely what's in there now. Right now, the configuration
> tools contain a lot of explicit knowledge about the system. In fact,
> every single aspect of the system has part of its function in the python
> tools. This is why the tools are a mess.
>
> I'm saying relocate all of that back to the individual components which
> are to be configured such that each individual configurable aspect has
> both the implementation of the function and the configuration interface
> in once place rather than split into two with half in python.
>
> This would leave the configuration tools as a combination of a discovery
> mechanism and a simple pipe from the command line to the component to be
> configured.
>
> >
> > Let's look at xm help, for instance. In order to run xm help, which you
> > think would be simple, you have to import about 10 objects for every feature
> > that xm could possibly support, if any of these fail you die. Then you need
> > to instantiate classes for every sub command, if any of these fail, you die.
> > Then you run through each object, figure out what group it is in, pull help
> > from each object, and stick that together. If anything fails here, you die.
>
> That's just crap implementation. The basic idea is vaguely correct.
> There's no good reason for any of this to fail so failure simply
> shouldn't be an option.
First rule of software, things always fail. There are plenty of reasons for
things to fail. A daemon died somewhere along the way, you ran out of
resources to run in, you didn't have enough permissions, etc.
If the software can't detect a failure in a useful way, and regroup then I
certainly wouldn't run it on my network, and I definitely wouldn't trust it
to run my virtual machines.
> > The real rub is that those 10 imported objects, all import their own
> > objects, etc. If any of those fail, you die. A really good instance is
> > "why can't I run xm help as none root?". Because xm needs write access to
> > the xend log files (buried about 5 object imports down). You can't seperate
> > that out in any reasonable way to check permissions upfront. You can't move
> > the imports into main() to trap there, because all the 20 classes for each
> > command expect those objects to be global in main.py to operate on them.
> >
> > So lets say you end up with a model where you *can* catch each object
> > failure, what do you do? Do you quietly turn off/on options based on what
> > is there? That means the interface of xm would change day to day. I'd hate
> > to have to answer support questions on that. :)
>
> In the previous note, I proposed that the xm interface reflect the
> components which were explicitly active. A compromise would be for the
> xm interface to reflect the installed components rather than those that
> were explicitly active. With this compromise, a new component would have
> two parts: a configuration plug-in and an active implementation of the
> component. Xm would discover the installed configuration plug-ins. This
> would still be relatively easy to extend and maintain compared to the
> current monolithic system.
>
> >
> > While quite interesting from an engineering elegance point of view, it is
> > quite problematic from a user point of view. xm help should provide the
> > same set of options this morning and this afternoon, unless I very
> > intentionally upgraded the program. Additionally the future architecture is
> > really centered on xenstore as the management interface. I don't think
> > integrating every possible usage of xenstore into xm/xend is the right
> > approach.
>
> I would say that xm help should reflect what I could currently do with
> the system, not what would be possible if I downloaded and installed
> every single possible 3rd party extension.
>
> I don't understand what you mean by "integrating every possible usage of
> xenstore into xm/xend". I wouldn't want anything in xm/xend apart from
> the generic pipe and discovery mechanism mentioned above.
>
> >
> > I think this needs to take a much more user centric, Model-View-Controler
> > approach. Forcing the User Interface to be a direct reflection of how we
> > happen to have objects underneath usually just causes no end of usability
> > (and maintenance) pain.
>
> With either extensible proposal, the user interface doesn't need to be a
> reflection of the low-level underlying objects. Each installable
> component gets to design whatever user interface is appropriate to best
> configure its functionality. If components are independent then
> reflection of underlying objects in the interface is natural at the
> component level and if they are not independent there's no reason why
> they can't have a common configuration component which provides a
> spanning configuration model.
>
> Also, we are talking about the lowest level configuration interface here
> which in practise will be an internal interface between the system
> components and a higher level user GUI. So, I think there is a slightly
> different trade-off desired here than ultimate ease-of-use.
Calling a python program the lowest level interface means we clearly have
different definitions of lowest. ;) libxenstore is the low level interface,
xm & xend is a user interface.
> In particular, it is required that the system support 3rd party
> extensions and I think it will prove essential that integrating
> configuration and help support for those extensions should avoid a
> dependency on changes to the low-level tools and serialisation through a
> single maintainer.
>
> Harry
-Sean
--
__________________________________________________________________
Sean Dague Mid-Hudson Valley
sean at dague dot net Linux Users Group
http://dague.net http://mhvlug.org
There is no silver bullet. Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________
[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2005-07-29 17:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-29 13:04 [RFC] xm interface proposed changes Sean Dague
2005-07-29 14:25 ` [Xen-tools] " harry
2005-07-29 14:44 ` Sean Dague
2005-07-29 14:54 ` Ronald G. Minnich
2005-07-29 16:18 ` harry
2005-07-29 15:28 ` harry
2005-07-29 17:35 ` Sean Dague [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-08-02 11:10 Ian Pratt
2005-08-02 11:32 ` Sean Dague
2005-08-02 13:12 ` Mark Williamson
2005-08-02 23:12 ` Josh Triplett
2005-08-02 11:39 ` Daniel Hulme
2005-08-02 12:07 Ian Pratt
2005-08-02 13:17 ` Mark Williamson
2005-08-02 13:23 ` Sean Dague
2005-08-02 14:49 Ian Pratt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050729173530.GA11534@underhill.no-ip.org \
--to=sean@dague.net \
--cc=harry@hebutterworth.freeserve.co.uk \
--cc=xen-devel@lists.xensource.com \
--cc=xen-tools@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.