mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
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:
parent
6470a90034
commit
6f9e11f03d
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user