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:
Keir Fraser committed 2010-04-23 08:44:50 +01:00
1 parent d56e4fc7a2
commit 9858ac44e7
1 file changed
+1 -1
+1 -1
View File
@@ -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
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.