ia64/xen-unstable

changeset 12325:42769ff008b5

Ignore dying domains on recreate, and log the fact.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Wed Nov 08 18:27:31 2006 +0000 (2006-11-08)
parents fbf851ec9103
children b8a2db59150a
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Wed Nov 08 15:26:22 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Wed Nov 08 18:27:31 2006 +0000
     1.3 @@ -59,7 +59,7 @@ class XendDomain:
     1.4  
     1.5      @ivar domains: map of domains indexed by UUID Strings
     1.6      @type domains: dict of XendDomainInfo
     1.7 -    @ivar domains_managed: uuid of domains that are managed by Xend
     1.8 +    @ivar managed_domains: uuid of domains that are managed by Xend
     1.9      @type managed_domains: list of (uuids, dom_name)
    1.10      @ivar domains_lock: lock that must be held when manipulating self.domains
    1.11      @type domains_lock: threaading.RLock
    1.12 @@ -152,6 +152,11 @@ class XendDomain:
    1.13  
    1.14              # add all active domains
    1.15              for dom in running:
    1.16 +                if dom['dying'] == 1:
    1.17 +                    log.warn('Ignoring dying domain %d from now on' %
    1.18 +                             dom['domid'])
    1.19 +                    continue
    1.20 +
    1.21                  if dom['domid'] != DOM0_ID:
    1.22                      try:
    1.23                          new_dom = XendDomainInfo.recreate(dom, False)