From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: xl list -l doesn't work for incoming domain Date: Mon, 10 Nov 2014 12:38:53 +0000 Message-ID: <1415623133.25176.10.camel@citrix.com> References: <545BC8A2.20604@oracle.com> <20141107104752.GB28188@zion.uk.xensource.com> <545CF499.8080606@oracle.com> <20141110123525.GD28360@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XnoFG-000376-4B for xen-devel@lists.xenproject.org; Mon, 10 Nov 2014 12:38:58 +0000 In-Reply-To: <20141110123525.GD28360@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: xen-devel , Zhigang Wang List-Id: xen-devel@lists.xenproject.org On Mon, 2014-11-10 at 12:35 +0000, Wei Liu wrote: > On Fri, Nov 07, 2014 at 11:34:33AM -0500, Zhigang Wang wrote: > > On 11/07/2014 05:47 AM, Wei Liu wrote: > > > On Thu, Nov 06, 2014 at 02:14:42PM -0500, Zhigang Wang wrote: > > >> Hi, > > >> > > >> While doing VM migration, in the destination side: > > >> > > >> # xl list -l > > >> libxl: error: libxl.c:6535:libxl_retrieve_domain_configuration: fail to get domain configuration for domain 7 > > >> [ > > >> { > > >> "domid": 0, > > >> "config": { > > >> "c_info": { > > >> "type": "pv", > > >> "name": "Domain-0" > > >> }, > > >> "b_info": { > > >> "max_memkb": 876544, > > >> "target_memkb": 876543, > > >> "sched_params": { > > >> > > >> }, > > >> "type.pv": { > > >> > > >> } > > >> } > > >> } > > >> } > > >> ] > > >> > > >> # xl list > > >> Name ID Mem VCPUs State Time(s) > > >> Domain-0 0 856 4 r----- 2758.9 > > >> 0004fb00000600003f327a843a5f2b72--incoming 7 131 1 --p--- 0.0 > > >> > > >> Testing on: > > >> > > > > > > What's the rune you used to migrate the domain? xl migrate? Why is the > > > domain paused? > > > > The domain is under migrating, so the destination side it's paused. When migration finish, > > it will become running. > > > > FYI: the domain migration will success. > > > > I see. At that point the configuration was not available, yet. After the > domain is successfully migrated, the configuration should be available. > > I think a domain under construction without domain configuration is a > valid state. What do you think? Can we write a stub json file at the beginning of migrate receive, a bit like we do on create? Otherwise code like xl list is going to have start special casing domains which have no json, which we've tried hard to avoid I think. Ian.