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] XendAPI: After VBD_destroy and VIF_destro

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] XendAPI: After VBD_destroy and VIF_destroy the managed config must be saved
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Dec 2009 07:15:12 -0800
Delivery-date: Tue, 29 Dec 2009 07:15:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 1262099057 0
# Node ID a4a24cf98691670cafda86ecbc93992fd8f45b12
# Parent  58dbf27875c5410bcc3aadd00b36d823424a9f2e
XendAPI: 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 <Lutz.Dube@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendAPI.py |    3 +++
 1 files changed, 3 insertions(+)

diff -r 58dbf27875c5 -r a4a24cf98691 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Mon Dec 28 10:55:50 2009 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Tue Dec 29 15:04:17 2009 +0000
@@ -2053,6 +2053,7 @@ class XendAPI(object):
 
         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 @@ class XendAPI(object):
             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):

_______________________________________________
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] XendAPI: After VBD_destroy and VIF_destroy the managed config must be saved, Xen patchbot-unstable <=