From: Pascal Bouchareine Subject: [PATCH] [XendAPI] INTERNAL_ERROR "(3, 'No such process')" Date: Fri, 13 Jul 2007 13:42:01 +0200 Message-ID: <20070713114201.GA21994@bar.gandi.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Attached is an attempt to fix the following: >>> x2.VM.hard_shutdown(s2, '6ae7302d-6846-3548-f418-df7a9b351607') {'Status': 'Success', 'Value': ''} >>> x2.VM.get_record(s2, '6ae7302d-6846-3548-f418-df7a9b351607') {'Status': 'Failure', 'ErrorDescription': ['INTERNAL_ERROR', "(3, 'No such process')"]} Thanks for your comments -- \o/ Pascal Bouchareine - Gandi g 0170393757 15, place de la Nation - 75011 Paris --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="XendDomainInfo.py.patch" diff -r 93b9161fc920 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Jul 2 00:24:59 2007 +0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri Jul 13 12:03:51 2007 +0200 @@ -2166,7 +2166,7 @@ class XendDomainInfo: self._safe_set_memory('memory_dynamic_min', val) def get_vcpus_params(self): - if self.getDomid() is None: + if dom_get(self.getDomid()) is None: return self.info['vcpus_params'] retval = xc.sched_credit_domain_get(self.getDomid()) --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --5mCyUwZo2JvN/JJP--