mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
ab283d0519
commit
366ca1710b
1 file changed
+9
-1
@@ -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'])
|
||||
|
||||
|
||||