IntroduceDomain of dom0 can fail when it's already connected.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-13 16:56:02 +00:00
1 parent ab283d0519
commit 366ca1710b
1 file changed
+9 -1
+9 -1
View File
@@ -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'])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.