]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
DaemonState: Catch CommandFailedError during stop 1056/head
authorZack Cerza <zack@redhat.com>
Wed, 29 Mar 2017 19:38:37 +0000 (13:38 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 30 Mar 2017 17:18:04 +0000 (11:18 -0600)
So that job teardown isn't hindered.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/orchestra/daemon.py

index df2cf3f6ccf1e73445319f6c669164154a7614a7..18f873f3748745ffe0bdcaa2b0f092d312e76dd2 100644 (file)
@@ -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')
-        run.wait([self.proc], timeout=timeout)
+        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')