WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Xend forgets to write the domain's VDI UU

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Xend forgets to write the domain's VDI UUID into the domain state file
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Mar 2008 05:40:45 -0700
Delivery-date: Thu, 20 Mar 2008 05:44:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Xend forgets to write the domain's VDI UUID into the domain state file, Xen patchbot-unstable <=