ia64/xen-unstable

changeset 7644:43fbea30b5c8

Tidy exception handling on IntroduceDomain, quieten down one debug message, add
another.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Nov 07 12:30:16 2005 +0100 (2005-11-07)
parents 19a226d8db16
children 5d9de9f4baf4
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 07 12:28:53 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Nov 07 12:30:16 2005 +0100
     1.3 @@ -336,7 +336,7 @@ def dom_get(dom):
     1.4              return domlist[0]
     1.5      except Exception, err:
     1.6          # ignore missing domain
     1.7 -        log.debug("domain_getinfo(%d) failed, ignoring: %s", dom, str(err))
     1.8 +        log.trace("domain_getinfo(%d) failed, ignoring: %s", dom, str(err))
     1.9      return None
    1.10  
    1.11  
    1.12 @@ -569,6 +569,8 @@ class XendDomainInfo:
    1.13          self.storeDomDetails()
    1.14          self.refreshShutdown()
    1.15  
    1.16 +        log.debug("XendDomainInfo.completeRestore done")
    1.17 +
    1.18  
    1.19      def storeVmDetails(self):
    1.20          to_store = {
    1.21 @@ -1066,8 +1068,11 @@ class XendDomainInfo:
    1.22          assert self.domid is not None
    1.23          assert self.store_mfn is not None
    1.24          assert self.store_port is not None
    1.25 -        
    1.26 -        IntroduceDomain(self.domid, self.store_mfn, self.store_port)
    1.27 +
    1.28 +        try:
    1.29 +            IntroduceDomain(self.domid, self.store_mfn, self.store_port)
    1.30 +        except RuntimeError, exn:
    1.31 +            raise XendError(str(exn))
    1.32  
    1.33  
    1.34      def initDomain(self):