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 <john.spray@redhat.com>
This commit is contained in:
John Spray 2017-02-10 17:15:28 +00:00
parent 6470a90034
commit 6f9e11f03d

View File

@ -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")