]> xenbits.xensource.com Git - xen.git/commitdiff
xend: don't drop device config on domain start failure
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:42:37 +0000 (09:42 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 22 Apr 2010 08:42:37 +0000 (09:42 +0100)
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>
tools/python/xen/xend/XendConfig.py

index c468b1925213b6790f172613271cff42951e721e..57903a57fc9d1d7e7f279a2015848ce21f8dc3fb 100644 (file)
@@ -1171,8 +1171,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