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

[Xen-changelog] Handle introduce_domain failing when the domain is already introduced.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 06c5924b0c2ed0ca144e6e9408c6fc85d30b1339
# Parent  de1207b85ef88aabcfbed18b2fbfc840db6dc373
Handle introduce_domain failing when the domain is already introduced.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r de1207b85ef8 -r 06c5924b0c2e tools/python/xen/xend/xenstore/xsnode.py
--- a/tools/python/xen/xend/xenstore/xsnode.py  Wed Jul 27 17:17:09 2005
+++ b/tools/python/xen/xend/xenstore/xsnode.py  Wed Jul 27 18:31:03 2005
@@ -350,7 +350,13 @@
             self.watchThread = None
 
     def introduceDomain(self, dom, page, evtchn, path):
-        self.getxs().introduce_domain(dom, page, evtchn.port1, path)
+        try:
+            self.getxs().introduce_domain(dom, page, evtchn.port1, path)
+        except RuntimeError, ex:
+            if ex.args[0] == errno.EISCONN:
+                return None
+            else:
+                raise
 
     def releaseDomain(self, dom):
         self.getxs().release_domain(dom)

_______________________________________________
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®.