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-devel

[Xen-devel] [PATCH] xend: Fix VDI-VBD link for XenAPI

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xend: Fix VDI-VBD link for XenAPI
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 09 Oct 2009 16:30:36 +0900
Delivery-date: Fri, 09 Oct 2009 00:31:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I detected problems of VDI-VBD link again.
  - In the case of inactive managed domains, VDI->VBD link was lost 
    by xend restarting (or host OS rebooting).
  - In the case of active domains, both VDI->VBD link and VBD->VDI 
    link were lost by xend restarting.

When xend is restarted, information of VDI instances is restored 
from a vdi.xml file.  But the vdi.xml file does not have UUID of VBD 
because xend does not write the UUID to the vdi.xml file.  Therefore, 
VDI->VBD link is lost.
When xend is restarted, information of VBD instances is restored 
from xenstore.  But xenstore does not have UUID of VDI.  Therefore, 
VBD->VDI link is lost.

This patch solves the problems.
VDI instances stop having UUID of VBD.  Instead, xend gathers UUID of 
VBD each time it's required.  The method is the same as Network->VIF 
link.
Information of VBD instances is restored not only from xenstore but 
from a config.sxp file.  UUID of VDI is restored from the config.sxp 
file.

FYI, VBD->VDI link of inactive managed domains is not lost because 
information of VBD instances is restored from the config.sxp file.
UUID of VDI is written by xend to the config.sxp file.


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: fix_VDI-VBD_link.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xend: Fix VDI-VBD link for XenAPI, Masaki Kanno <=