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>
This commit is contained in:
Keir Fraser committed 2009-03-31 13:20:04 +01:00
1 parent 55ec31da6c
commit f94d6532fc
1 file changed
+4 -1
+4 -1
View File
@@ -488,7 +488,10 @@ class ImageHandler:
def _dmfailed(self, message):
log.warning("domain %s: %s", self.vm.getName(), message)
xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
try:
xc.domain_shutdown(self.vm.getDomid(), DOMAIN_CRASH)
except:
pass
def recreate(self):
if self.device_model is None:
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.