From: Ian Campbell Subject: Re: "xl list --long" bug with only 1 CPU pool Date: Fri, 12 Sep 2014 10:50:18 +0100 Message-ID: <1410515418.567.28.camel@kazak.uk.xensource.com> References: <1410472103.32481.1.camel@daevel.fr> <20140912083522.GA31343@zion.uk.xensource.com> <20140912091123.GC31343@zion.uk.xensource.com> <1410514149.567.17.camel@kazak.uk.xensource.com> <20140912093136.GE31343@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140912093136.GE31343@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Olivier Bonvalet , "xen-users@lists.xen.org" , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-09-12 at 10:31 +0100, Wei Liu wrote: > On Fri, Sep 12, 2014 at 10:29:09AM +0100, Ian Campbell wrote: > > On Fri, 2014-09-12 at 10:11 +0100, Wei Liu wrote: > > > On Fri, Sep 12, 2014 at 09:35:22AM +0100, Wei Liu wrote: > > > [...] > > > > I presume the pool name changed after the split and you once speficied a > > > > pool name in your VM config file. If so: > > > > > > > > This is a limitation of xl. You can rename the pool name to its original > > > > name (presumably "Pool-0") and try again. I think this will be fixed in > > > > 4.5. > > > > > > > > > > Actually no. In the end we still need a way to transform a pool name a > > > pool id. Without a daemon keeping track of the change it's not likely to > > > be fixed in the future. > > > > I thought the pool name was stored in xenstore, in which case it should > > be updated when the pol is renamed, shouldn't it? > > > > The culprit is that pool name stored in guest config is not updated... Oh right. That's a tricky one to resolve. In theory we could arrange to store the pool-id in the stashed config (e.g. after your json stuff), but then that probably doesn't work with migration (since poolname->poolid is per host, I think?). Iterating over all saved configs updating their pool-name doesn't sounds very nice either. Ian.