ia64/xen-unstable

changeset 17247:5cbfc6c24d32

Xend forgets to write the domain's VDI UUID into the domain state file
once the domain is started (before it's there). Once xend is restarted
it will not know the association between the VBD and VDI anymore due
to the missing UUID. This patch fixes this.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 13:14:26 2008 +0000 (2008-03-18)
parents 0f204e41cc93
children 13cba2e78a65
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Tue Mar 18 13:13:31 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Tue Mar 18 13:14:26 2008 +0000
     1.3 @@ -991,6 +991,7 @@ class XendConfig(dict):
     1.4                                      dev_type, dev_cfg = self['devices'][dev_uuid]
     1.5                                      is_bootable = dev_cfg.get('bootable', 0)
     1.6                                      config.append(['bootable', int(is_bootable)])
     1.7 +                                    config.append(['VDI'], dev_cfg.get('VDI', ''))
     1.8  
     1.9                                  sxpr.append(['device', config])
    1.10