From: Ian Campbell <Ian.Campbell@citrix.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: wei.liu2@citrix.com, Ian Jackson <Ian.Jackson@eu.citrix.com>,
Chunyan Liu <cyliu@suse.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH 0/2 V3] fix rename: xenstore not fully updated
Date: Tue, 25 Nov 2014 14:13:01 +0000 [thread overview]
Message-ID: <1416924781.32327.23.camel@citrix.com> (raw)
In-Reply-To: <20141121170103.GA8314@laptop.dumpdata.com>
On Fri, 2014-11-21 at 12:01 -0500, Konrad Rzeszutek Wilk wrote:
> On Thu, Nov 20, 2014 at 03:28:30PM +0000, Ian Campbell wrote:
> > On Wed, 2014-11-19 at 16:25 -0500, Konrad Rzeszutek Wilk wrote:
> > > On Wed, Nov 19, 2014 at 11:26:32AM +0000, Ian Jackson wrote:
> > > > Hi Konrad, I have another release ack request:
> > > >
> > > > Chunyan Liu writes ("[PATCH 0/2 V3] fix rename: xenstore not fully updated"):
> > > > > Currently libxl__domain_rename only update /local/domain/<domid>/name,
> > > > > still some places in xenstore are not updated, including:
> > > > > /vm/<uuid>/name and /local/domain/0/backend/<device>/<domid>/.../domain.
> > > > > This patch series updates /vm/<uuid>/name in xenstore,
> > > >
> > > > This ("[PATCH 2/2 V3] fix rename: xenstore not fully updated") is a
> > > > bugfix which I think should go into Xen 4.5.
> > > >
> > > > The risk WITHOUT this patch is that there are out-of-tree tools which
> > > > look here for the domain name and will get confused after it is
> > > > renamed.
> > >
> > > When was this introduced? Did it exist with Xend?
> >
> > Based on:
> > git grep domain\" RELEASE-4.4.0 tools/python/
> > git grep domain\' RELEASE-4.4.0 tools/python/
> > it doesn't appear so, but someone with a xend install would be needed to
> > confirm for sure.
> >
> > Given that this has always been wrong for a libxl domain after migration
> > it seems likely to me that noone is looking at this field.
>
> And this is not a regression though.
>
> What I am understanding is that we advertise to out-side toolstack
> users for a couple of releases something which is misleading and wrong.
...and also basically useless, there is really no reason to be looking
for the domain's name under a subset of the backend nodes (only vkb, vfb
and console have this key at all). None of the helper function which we
provide do this.
Also these nodes are not advertised as supported either via
docs/misc/xenstore-paths.markdown or xen/include/public/io/*.h.
> My fear is that there such toolstack users out there who will
> get their pitchforks out when this shows up.
>
> But perhaps there is a way to mitigate this. Is there another way
> (and can it be in the commit description) to get the proper
> domain name? I presume it is just looking at /local/domain/%d/name ?
>
> As such could this be added:
>
> "The proper way to get the domain name is to get it from
> /local/domain/%d/name instead from this field."
The proper way is to use libxl_domid_to_name, not to go scrobbling
around in xenstore. We could say this (or both) in the commit message
though if it would help to reassure you.
Either way I think it really would be best to take this fix rather than
worrying overly about the infinitesimal possibility that someone might
be using this key.
Ian.
next prev parent reply other threads:[~2014-11-25 14:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-19 6:34 [PATCH 0/2 V3] fix rename: xenstore not fully updated Chunyan Liu
2014-11-19 6:34 ` [PATCH 1/2 V3] remove domain field in xenstore backend dir Chunyan Liu
2014-11-19 11:11 ` Ian Jackson
2014-11-19 6:34 ` [PATCH 2/2 V3] fix rename: xenstore not fully updated Chunyan Liu
2014-11-19 11:12 ` Ian Jackson
2014-11-19 11:26 ` [PATCH 0/2 " Ian Jackson
2014-11-19 21:25 ` Konrad Rzeszutek Wilk
2014-11-20 15:28 ` Ian Campbell
2014-11-21 17:01 ` Konrad Rzeszutek Wilk
2014-11-25 14:13 ` Ian Campbell [this message]
2014-11-25 15:51 ` Konrad Rzeszutek Wilk
2014-11-25 15:58 ` Ian Campbell
2014-11-25 16:03 ` Konrad Rzeszutek Wilk
2014-11-28 12:11 ` Ian Campbell
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=1416924781.32327.23.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=cyliu@suse.com \
--cc=konrad.wilk@oracle.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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.