WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend: Greater verbosity on domain creatio

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Greater verbosity on domain creation failure
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Aug 2009 03:00:24 -0700
Delivery-date: Mon, 31 Aug 2009 03:01:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1251709930 -3600
# Node ID f86c46e01f07cc9841c78f8d250dbe18fe176d9b
# Parent  27b3bd0a47fd8b020ce06567658237f3d25227f9
xend: Greater verbosity on domain creation failure

Attached patch makes error reporting more verbose when
xc.domain_create() fails or raises an Exception.

Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff -r 27b3bd0a47fd -r f86c46e01f07 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Mon Aug 31 10:10:17 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Mon Aug 31 10:12:10 2009 +0100
@@ -2408,10 +2408,13 @@ class XendDomainInfo:
             # may get here if due to ACM the operation is not permitted
             if security.on() == xsconstants.XS_POLICY_ACM:
                 raise VmError('Domain in conflict set with running domain?')
-
-        if self.domid < 0:
-            raise VmError('Creating domain failed: name=%s' %
-                          self.info['name_label'])
+            log.exception(e)
+
+        if not self.domid or self.domid < 0:
+            str = 'Creating domain failed: name=%s' % self.info['name_label']
+            if self.domid:
+                str += ', error=%i' % int(self.domid)
+            raise VmError(str)
 
         self.dompath = GetDomainPath(self.domid)
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Greater verbosity on domain creation failure, Xen patchbot-unstable <=