aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-04-23 08:44:50 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-04-23 08:44:50 +0100
commit9858ac44e7bb3f29a7138253423b46316db12850 (patch)
tree21eddae9977e44053a4b7c349b3605e7c243229d
parentd56e4fc7a24d61b0f36904a8300c2395c515e325 (diff)
downloadxen-9858ac44e7bb3f29a7138253423b46316db12850.tar.gz
xen-9858ac44e7bb3f29a7138253423b46316db12850.tar.bz2
xen-9858ac44e7bb3f29a7138253423b46316db12850.zip
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
-rw-r--r--tools/python/xen/xend/XendConfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py
index a8eae6c6ba..7962c6ad1c 100644
--- a/tools/python/xen/xend/XendConfig.py
+++ b/tools/python/xen/xend/XendConfig.py
@@ -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