From 6f9e11f03d50dcdc42ab57a57326d6bddad29bcb Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 10 Feb 2017 17:15:28 +0000 Subject: [PATCH] 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 --- qa/tasks/ceph.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 1665f1a02472a..7ab3c86d6603f 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") -- 2.39.5