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] xend: managed configuration not saved after VIF/VBD_destroy

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xend: managed configuration not saved after VIF/VBD_destroy
From: "Dube, Lutz" <lutz.dube@xxxxxxxxxxxxxx>
Date: Mon, 28 Dec 2009 14:48:38 +0100
Accept-language: de-DE, en-US
Acceptlanguage: de-DE, en-US
Delivery-date: Mon, 28 Dec 2009 05:49:07 -0800
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=lutz.dube@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1262008077; x=1293544077; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20"Dube,=20Lutz"=20<lutz.dube@xxxxxxxxxxxxxx> |Subject:=20xend:=20managed=20configuration=20not=20saved =20after=20VIF/VBD_destroy|Date:=20Mon,=2028=20Dec=202009 =2014:48:38=20+0100|Message-ID:=20<3958B14F314B884890EEE2 F4CCDAB6A60108E6D1F046@xxxxxxxxxxxxxxxx>|To:=20"xen-devel @lists.xensource.com"=20<xen-devel@xxxxxxxxxxxxxxxxxxx> |MIME-Version:=201.0; bh=JMKGLYFkkEo/55O+CyKdmjILu7fSsHf8j84gnO17CYc=; b=QR6tx9K/TTW0HET2BGRB+KubKIb3WIOseb/o7lj+cAlHC5Pm2oSXD8SA 0WuEcCfozm0wxyVDHarUOsEO1LlXZCDxswdvPPK7fZNeT/IGOIjMedO3h SEiwP4SHvv6rU1lzXQx+p1+BxMBbVoQbL1zYpIpJPFz8B2N8xpeOj9I9G pl9sB7uLTlwdhzDOXrqfkicnghNESIdjhKOqRKirZjiLUQnH1BYa0Nyk4 Zt+7aowJUKlHwHsXXoHRHlYOuzCm7;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:Received:From:To:Date: Subject:Thread-Topic:Thread-Index:Message-ID: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:acceptlanguage:Content-Type: MIME-Version; b=oHpAGxR2KJ0uVDekNKxkHBLSVOx/7qBkrai78xFifGv5uyb86o9PDq2s RBaMknffuyH1JWE4JCpShvtscsuw5D64Se96AycyV6vyh483SVNzKpfRg inlPb5Go6svZKMfGR0TzxbcvSPtJfJG9UgeG5jTevhOtqGel6sG01zdnE 00U1oyoA9yIDex+3fjNEoNfOxfVje1mZnKyaUK41ZuiPoEdB6+8beTmKF xqlOl2ZTYnMz6g27XtjCJQ7G9bD7C;
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
Thread-index: AcqHxHVbNcptDrDTQVeqlEU2Ehng9g==
Thread-topic: xend: managed configuration not saved after VIF/VBD_destroy
XendAPI fix:
After VBD_destroy and VIF_destroy the managed config must be saved, otherwise
already deleted devices appear again in configuration after a xend restart.
 
Signed-off-by: Lutz.Dube@xxxxxxxxxxxxxx
 
diff -r 1a911fd65e52 -r 315952bf2259 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Fri Dec 18 07:53:27 2009 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Mon Dec 28 14:37:37 2009 +0100
@@ -2053,6 +2053,7 @@
 
         XendTask.log_progress(0, 100, vm.destroy_vbd, vbd_ref)
 
+        xendom.managed_config_save(vm)
         return xen_api_success_void()
 
     def _VBD_get(self, vbd_ref, prop):
@@ -2220,6 +2221,8 @@
             return xen_api_error(['HANDLE_INVALID', 'VIF', vif_ref])
 
         vm.destroy_vif(vif_ref)
+
+        xendom.managed_config_save(vm)
         return xen_api_success_void()
 
     def _VIF_get(self, ref, prop):
 
 
 
 
---
Kind regards
Lutz Dube
 
 

Attachment: xendapi_mgmt_save
Description: xendapi_mgmt_save

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xend: managed configuration not saved after VIF/VBD_destroy, Dube, Lutz <=