* [PATCH] tools: make error report more verbose
@ 2009-08-28 14:51 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-08-28 14:51 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
Hi!
Attached patch makes error reporting more verbose when
xc.domain_create() fails or raises an Exception.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xen_python_dominfo.diff --]
[-- Type: text/x-diff, Size: 943 bytes --]
diff -r 1afd9142eed3 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Wed Aug 19 12:52:38 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Fri Aug 28 16:46:24 2009 +0200
@@ -2400,10 +2402,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)
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-28 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28 14:51 [PATCH] tools: make error report more verbose Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.