ia64/xen-unstable

changeset 14214:88282487c28a

xend: Catch VmError exception when creating a domain and do
appropriate cleanup.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author kfraser@localhost.localdomain
date Fri Mar 02 14:57:18 2007 +0000 (2007-03-02)
parents 8103284bcede
children 84e1455ebc15
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Mar 02 14:42:25 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Mar 02 14:57:18 2007 +0000
     1.3 @@ -1503,7 +1503,7 @@ class XendDomainInfo:
     1.4              self.info['start_time'] = time.time()
     1.5  
     1.6              self._stateSet(DOM_STATE_RUNNING)
     1.7 -        except RuntimeError, exn:
     1.8 +        except (RuntimeError, VmError), exn:
     1.9              log.exception("XendDomainInfo.initDomain: exception occurred")
    1.10              self.image.cleanupBootloading()
    1.11              raise VmError(str(exn))