ia64/xen-unstable

changeset 13284:e81c9fc5b431

Catch exception from dumpCore when inside refreshShutdown.

Thanks to John Levon <levon@movementarian.org> for diagnosis and suggesting the
fix.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Jan 05 16:11:49 2007 +0000 (2007-01-05)
parents a22258c9fe75
children e4aef8507b13
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 05 15:57:23 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 05 16:11:49 2007 +0000
     1.3 @@ -972,7 +972,12 @@ class XendDomainInfo:
     1.4                  self._writeVm(LAST_SHUTDOWN_REASON, 'crash')
     1.5  
     1.6                  if xroot.get_enable_dump():
     1.7 -                    self.dumpCore()
     1.8 +                    try:
     1.9 +                        self.dumpCore()
    1.10 +                    except XendError:
    1.11 +                        # This error has been logged -- there's nothing more
    1.12 +                        # we can do in this context.
    1.13 +                        pass
    1.14  
    1.15                  restart_reason = 'crash'
    1.16                  self._stateSet(DOM_STATE_HALTED)
    1.17 @@ -1164,7 +1169,10 @@ class XendDomainInfo:
    1.18      #
    1.19  
    1.20      def dumpCore(self, corefile = None):
    1.21 -        """Create a core dump for this domain.  Nothrow guarantee."""
    1.22 +        """Create a core dump for this domain.
    1.23 +
    1.24 +        @raise: XendError if core dumping failed.
    1.25 +        """
    1.26          
    1.27          try:
    1.28              if not corefile: