diff options
author | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-09-13 16:56:02 +0000 |
---|---|---|
committer | cl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk> | 2005-09-13 16:56:02 +0000 |
commit | 366ca1710bf63719bc7532e3633f1f8e88ab1a3d (patch) | |
tree | 4ca347f5d53f8517c1f1b1df2d348153f54c7b90 /tools | |
parent | ab283d0519173467ef974a4f3a1fd0c6ea7ab140 (diff) | |
download | xen-366ca1710bf63719bc7532e3633f1f8e88ab1a3d.tar.gz xen-366ca1710bf63719bc7532e3633f1f8e88ab1a3d.tar.bz2 xen-366ca1710bf63719bc7532e3633f1f8e88ab1a3d.zip |
IntroduceDomain of dom0 can fail when it's already connected.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index d75d872b5c..77d59e23f1 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -27,6 +27,7 @@ import string, re import os import time import threading +import errno import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() from xen.util.ip import check_subnet, get_current_ipgw @@ -1097,7 +1098,14 @@ class XendDomainInfo: ref = xc.init_store(self.store_channel.port2) if ref and ref >= 0: self.setStoreRef(ref) - IntroduceDomain(self.id, ref, self.store_channel.port1, self.path) + try: + IntroduceDomain(self.id, ref, self.store_channel.port1, + self.path) + except RuntimeError, ex: + if ex.args[0] == errno.EISCONN: + pass + else: + raise # get run-time value of vcpus and update store self.exportVCPUSToDB(dom_get(self.id)['vcpus']) |