]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: handle SSHException in logrotate 13359/head
authorJohn Spray <john.spray@redhat.com>
Fri, 10 Feb 2017 17:15:28 +0000 (17:15 +0000)
committerJohn Spray <john.spray@redhat.com>
Fri, 10 Feb 2017 17:16:24 +0000 (17:16 +0000)
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>
qa/tasks/ceph.py

index 1665f1a02472a6141defe4272cb07cea8a495eaa..7ab3c86d6603f330e206d36ac159939b1a63351f 100644 (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")