Skip to contentSkip to conversation

Xend forgets to write VDI UUID into domain state file

PATCH New Stefan Berger 1 participant 1 message Mar 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Xend forgets to write VDI UUID into domain state file

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.

xen-unstable.hg/tools/python/xen/xend/XendConfig.py +1 -0
Index: root/xen-unstable.hg/tools/python/xen/xend/XendConfig.py
===================================================================
@@ -990,6 +990,7 @@ class XendConfig(dict):
                                     dev_type, dev_cfg = self['devices'][dev_uuid]
                                     is_bootable = dev_cfg.get('bootable', 0)
                                     config.append(['bootable', int(is_bootable)])
+                                    config.append(['VDI'], dev_cfg.get('VDI', ''))
 
                                 sxpr.append(['device', config])
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel