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@amd.com>
This commit is contained in:
Keir Fraser committed 2009-08-31 10:12:10 +01:00
1 parent 68461397a3
commit bf6b9756fa
1 file changed
+6 -3
+6 -3
View File
@@ -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?')
log.exception(e)
if self.domid < 0:
raise VmError('Creating domain failed: name=%s' %
self.info['name_label'])
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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.