DaemonState: Catch CommandFailedError during stop
So that job teardown isn't hindered.
@@ -3,6 +3,7 @@ import struct
from . import run
from .. import misc
+from teuthology.exceptions import CommandFailedError
log = logging.getLogger(__name__)
@@ -43,7 +44,10 @@ class DaemonState(object):
return
self.proc.stdin.close()
self.log.debug('waiting for process to exit')
+ try:
run.wait([self.proc], timeout=timeout)
+ except CommandFailedError:
+ log.exception("Error while waiting for process to exit")
self.proc = None
self.log.info('Stopped')
