ia64/xen-unstable

changeset 19471:b2b0825d6f8e

xend: less noise in xend-debug.log on HVM shutdown

Shutting down a hvm, xend-debug.log always shows:

Unhandled exception in thread started by=20
Traceback (most recent call last):
File "//usr/lib64/python/xen/xend/image.py", line 549, in
_sentinel_watch
self._dmfailed(message)
File "//usr/lib64/python/xen/xend/image.py", line 491, in _dmfailed
xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
xen.lowlevel.xc.Error: (3, 'No such process')

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 13:20:04 2009 +0100 (2009-03-31)
parents 156093ff8067
children 4b602fff137b
files tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Tue Mar 31 13:19:07 2009 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Tue Mar 31 13:20:04 2009 +0100
     1.3 @@ -488,7 +488,10 @@ class ImageHandler:
     1.4  
     1.5      def _dmfailed(self, message):
     1.6          log.warning("domain %s: %s", self.vm.getName(), message)
     1.7 -        xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
     1.8 +        try:
     1.9 +            xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
    1.10 +        except:
    1.11 +            pass
    1.12  
    1.13      def recreate(self):
    1.14          if self.device_model is None: