mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: don't drop device config on domain start failure
If domain creation in xend fails before devices are configured, e.g. insufficient memory, device config is dropped from xend's managed domain config. Once xend is restarted, the domain's devices are lost. This patch fixes a bug in XendConfig where only the device controller was consulted for device configuration. Signed-off-by: Jim Fehlig <jfehlig@novell.com> xen-unstable changeset: 21223:5b72f9832cc2 xen-unstable date: Thu Apr 22 09:42:37 2010 +0100
This commit is contained in:
1 parent
d56e4fc7a2
commit
9858ac44e7
1 file changed
+1
-1
@@ -1166,8 +1166,8 @@ class XendConfig(dict):
|
||||
config.append(['VDI', dev_cfg.get('VDI', '')])
|
||||
|
||||
sxpr.append(['device', config])
|
||||
found = True
|
||||
|
||||
found = True
|
||||
except:
|
||||
log.exception("dumping sxp from device controllers")
|
||||
pass
|
||||
|
||||