[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Xend forgets to write the domain's VDI UUID into the domain state file



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1205846066 0
# Node ID 5cbfc6c24d3201ec93b722bc91350be38991c177
# Parent  0f204e41cc93191422d6434c0df78b38f1a0a39e
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@xxxxxxxxxx>
---
 tools/python/xen/xend/XendConfig.py |    1 +
 1 files changed, 1 insertion(+)

diff -r 0f204e41cc93 -r 5cbfc6c24d32 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Tue Mar 18 13:13:31 2008 +0000
+++ b/tools/python/xen/xend/XendConfig.py       Tue Mar 18 13:14:26 2008 +0000
@@ -991,6 +991,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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.