Displaying 2 results from an estimated 2 matches for "__classes".
Did you mean:
wx_classes
2008 Jul 25
1
[PATCH]xend: fix dual destroy
...tion;
Next, the global create() will invoke vm.destroy() again; finally,
_cleanupVm() and "self.metrics.destroy()" will be invoked again. Here
when we execute metrics.destroy() for the second time, the deregister()
in XendAPIStore.py will complain: there is no such an element in the
dict __classes and a KeyError exception is raised!
We can avoid the dual destroy by adding a check as follows.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
diff -r f0cd9df566ec tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Thu Jul 24 17:36:27 2008
+0100
+++ b...
2009 Mar 12
0
Successfully running VM, subsequently startup gives this error -- VmError: Boot loader didn''t return any data!
...ine 2007, in _cleanupVm
self.metrics.destroy()
File "/usr/lib/python2.4/site-packages/xen/xend/XendBase.py", line 94, in destroy
XendAPIStore.deregister(self.get_uuid(), self.getClass())
File "/usr/lib/python2.4/site-packages/xen/xend/XendAPIStore.py", line 36, in deregister
del __classes(uuid, type)
KeyError: (''c618d493-a696-7637-333d-bd891fa41ac2'', ''VM_metrics'')
________________________________
Appreciate any hint/help
Thanks
Ken
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http...