From: Ewan Mellor Subject: Re: xm list triggers shutdown refreshing Date: Fri, 5 Jan 2007 12:36:30 +0000 Message-ID: <20070105123630.GD2733@leeni.uk.xensource.com> References: <20070104193042.GB2344@totally.trollied.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070104193042.GB2344@totally.trollied.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Levon Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Thu, Jan 04, 2007 at 07:30:42PM +0000, John Levon wrote: > > xm list -> XendDomain:list_sorted() -> XendDomain:list() -> > XendDomain:_refresh() -> XendDomainInfo:update(refresh = True) > > Surely such non-modifying commands should not be altering state? Why > aren't we passing in refresh = False in these cases? Yes, you're right, we should. There's a patch on its way. > This is a nasty problem if (say) dumpCore fails: every time we try to xm > list, then it will 'notice' that the domain is in the crashed state, try > to dump core, fail and plop that error back to 'xm list'. This is still a problem, regardless -- that function will be called every time a domain starts or stops, so you will still get multiple attempts to dump core. Could you spin a patch to record the failure in the store, so that we don't try and dump core again? Ewan.