From: Ian Campbell Subject: Re: [PATCH] Xend: handle died domain in getVCPUInfo() Date: Mon, 16 Dec 2013 16:42:45 +0000 Message-ID: <1387212165.21086.30.camel@kazak.uk.xensource.com> References: <52A6D92F.6020600@oracle.com> <20131215213343.GA993@u109add4315675089e695.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131215213343.GA993@u109add4315675089e695.ant.amazon.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: Matt Wilson Cc: Keir Fraser , Sureshmon Nair , Ian Jackson , Joe Jin , xen-devel , chuang cao , Matt Wilson , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Sun, 2013-12-15 at 13:33 -0800, Matt Wilson wrote: > On Tue, Dec 10, 2013 at 05:04:47PM +0800, Joe Jin wrote: > > When created new guest on NUMA server, xend tried to get the best node > > by calculated all vcpus info, if domain already be terminated then > > getVCPUInfo() will throw below exception and guest start failed: > > > > [2013-09-04 20:01:26 6254] ERROR (XendDomainInfo:496) VM start failed > > Traceback (most recent call last): > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 482, in start > > XendTask.log_progress(31, 60, self._initDomain) > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line 209, in log_progress > > retval = func(*args, **kwds) > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2918, in _initDomain > > node = self._setCPUAffinity() > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2835, in _setCPUAffinity > > best_node = find_relaxed_node(candidate_node_list)[0] > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2803, in find_relaxed_node > > cpuinfo = dom.getVCPUInfo() > > File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1600, in getVCPUInfo > > raise XendError(str(exn)) > > XendError: (3, 'No such process') > > > > This patch will check return value of xc.vcpu_getinfo() and make sure the > > error not caused by domain died before throw the exception. > > > > Signed-off-by: Joe Jin > > Acked-by: Matt Wilson Pushed. Ian.