mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: Catch VmError exception when creating a domain and do
appropriate cleanup. Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
1 parent
e182664256
commit
573e20d4bc
1 file changed
+1
-1
@@ -1503,7 +1503,7 @@ class XendDomainInfo:
|
||||
self.info['start_time'] = time.time()
|
||||
|
||||
self._stateSet(DOM_STATE_RUNNING)
|
||||
except RuntimeError, exn:
|
||||
except (RuntimeError, VmError), exn:
|
||||
log.exception("XendDomainInfo.initDomain: exception occurred")
|
||||
self.image.cleanupBootloading()
|
||||
raise VmError(str(exn))
|
||||
|
||||