From: John Spray Date: Fri, 10 Feb 2017 17:15:28 +0000 (+0000) Subject: qa: handle SSHException in logrotate X-Git-Tag: v12.0.1~307^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6f9e11f03d50dcdc42ab57a57326d6bddad29bcb;p=ceph.git qa: handle SSHException in logrotate Yet another different type of exception we may get when orchestra.run can't talk to a remote host. Signed-off-by: John Spray --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 1665f1a0247..7ab3c86d660 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -15,6 +15,7 @@ import time import gevent import socket +from paramiko import SSHException from ceph_manager import CephManager, write_conf from tasks.cephfs.filesystem import Filesystem from teuthology import misc as teuthology @@ -132,6 +133,8 @@ def ceph_log(ctx, config): # ConnectionLostError, we ignore this because nodes # are allowed to get power cycled during tests. log.debug("Missed logrotate, EOFError") + except SSHException as e: + log.debug("Missed logrotate, SSHException") except socket.error as e: if e.errno == errno.EHOSTUNREACH: log.debug("Missed logrotate, host unreachable")