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

[Xen-changelog] [xen-unstable] XendAPI: After VBD_destroy and VIF_destroy the managed config must be saved



# 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


 


Rackspace

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