All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: Pascal Bouchareine <pascal@gandi.net>,
	xen-devel@lists.xensource.com,
	John Levon <levon@movementarian.org>
Subject: Re: [PATCH] [Xend] Move some backend configuration
Date: Tue, 30 Sep 2008 16:30:54 +0100	[thread overview]
Message-ID: <20080930153054.GE15442@redhat.com> (raw)
In-Reply-To: <C507FFCD.279BB%keir.fraser@eu.citrix.com>

On Tue, Sep 30, 2008 at 04:09:49PM +0100, Keir Fraser wrote:
> On 30/9/08 15:58, "John Levon" <levon@movementarian.org> wrote:
> 
> >> Which guaranteed API would that be? These paths are private to the toolstack
> >> implementation. Perhaps the only exception is the
> > 
> > Precisely the problem, there's absolutely no idea or indication what is
> > and isn't private. Thus you get libvirt looking in places it maybe
> > shouldn't, but how are they supposed to know?
> > 
> > I'm pretty sure this patch breaks libvirt again.
> 
> I don't really see why it would. Beyond the console-client-to-daemon
> interface change (which we can make not depend on the /vm_path stuff) the
> rest is changing things which I believe are internal to xend.
> 
> If libvirt is really going in at this private state, perhaps we could patch
> xend so that it writes to the new locations *in addition to* the old
> locations. It then has its own guaranteed-private and -consistent state,
> while libvirt can still read from old locations.

I've done a quick check of what libvirt accesses in xenstore:

General VM metadata

 /local/domain/%d/vm 
 /local/domain/%d/cpu
 /local/domain/%d/name
 /local/domain/%d/running
 /local/domain/%d/memory/target
 /local/domain/%d/cpu_time

Console data

 /local/domain/%d/console/vnc-port
 /local/domain/%d/console/tty

For fetching disk/net statistics

 /local/domain/0/backend/vbd/%d/%d/state
 /local/domain/0/backend/vif/%d
 /local/domain/0/backend/vbd/%d
 /local/domain/0/backend/tap/%d


The first group is not being changed, so that's not a problem. Likewise
the latter is not impacted. The only problem I see is with the console
TTY paths and VNC port.

While I would prefer it not to change, or have backwards compatability
data written in existing fields, we have the ability to check multiple
different data sources. So if the TTY info and VNC port is available
via the 'xm list --long' output we could make libvirt check there if it
fails to find it in xenstore. We only historically used xenstored for
the few occassions when the 'xm list --long' output was incomplete.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

  parent reply	other threads:[~2008-09-30 15:30 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 14:24 [PATCH] [Xend] Move some backend configuration Pascal Bouchareine
2008-09-30 14:43 ` John Levon
2008-09-30 14:48   ` Keir Fraser
2008-09-30 14:58     ` John Levon
2008-09-30 15:09       ` Keir Fraser
2008-09-30 15:14         ` Ian Jackson
2008-09-30 15:30         ` Daniel P. Berrange [this message]
2008-09-30 16:09           ` Keir Fraser
2008-09-30 16:35             ` John Levon
2008-09-30 17:21               ` Pascal Bouchareine
2008-09-30 16:35             ` Daniel P. Berrange
2008-09-30 16:39               ` John Levon
2008-09-30 16:46               ` Keir Fraser
2008-09-30 17:08                 ` Daniel P. Berrange
2008-09-30 17:09               ` Pascal Bouchareine
2008-10-02  9:34             ` Ian Jackson
2008-10-02  9:49               ` Keir Fraser
2008-10-02 10:16                 ` Pascal Bouchareine
2008-10-02 10:20                   ` Keir Fraser
2008-10-02 10:21                   ` Ian Jackson
2008-10-02 10:28                     ` Keir Fraser
2008-10-02 10:31                       ` Ian Jackson
2008-10-02 13:45                 ` John Levon
2008-10-02 14:04                   ` Keir Fraser
2008-10-02 14:09                     ` Keir Fraser
2008-10-02 15:09                     ` John Levon
2008-10-02 15:25                       ` Keir Fraser
2008-10-02 17:21                         ` John Levon
2008-10-02 14:16                   ` Ian Jackson
2008-09-30 15:11       ` Pascal Bouchareine
2008-09-30 15:02     ` Keir Fraser
2008-09-30 15:06       ` John Levon

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=20080930153054.GE15442@redhat.com \
    --to=berrange@redhat.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=levon@movementarian.org \
    --cc=pascal@gandi.net \
    --cc=xen-devel@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.