[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xend: Greater verbosity on domain creation failure
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |