Ignore dying domains on recreate, and log the fact.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-08 18:27:31 +00:00
1 parent 386db8152b
commit 27c39debdc
1 file changed
+6 -1
+6 -1
View File
@@ -59,7 +59,7 @@ class XendDomain:
@ivar domains: map of domains indexed by UUID Strings
@type domains: dict of XendDomainInfo
@ivar domains_managed: uuid of domains that are managed by Xend
@ivar managed_domains: uuid of domains that are managed by Xend
@type managed_domains: list of (uuids, dom_name)
@ivar domains_lock: lock that must be held when manipulating self.domains
@type domains_lock: threaading.RLock
@@ -152,6 +152,11 @@ class XendDomain:
# add all active domains
for dom in running:
if dom['dying'] == 1:
log.warn('Ignoring dying domain %d from now on' %
dom['domid'])
continue
if dom['domid'] != DOM0_ID:
try:
new_dom = XendDomainInfo.recreate(dom, False)
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.