debuggers.hg

changeset 21269:5b72f9832cc2

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Apr 22 09:42:37 2010 +0100 (2010-04-22)
parents 11d20f17f82c
children a7947fd90328
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Thu Apr 22 09:41:36 2010 +0100
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Thu Apr 22 09:42:37 2010 +0100
     1.3 @@ -1171,8 +1171,8 @@ class XendConfig(dict):
     1.4                                      config.append(['VDI', dev_cfg.get('VDI', '')])
     1.5  
     1.6                                  sxpr.append(['device', config])
     1.7 +                                found = True
     1.8  
     1.9 -                            found = True
    1.10                          except:
    1.11                              log.exception("dumping sxp from device controllers")
    1.12                              pass