]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: tolerate ECONNRESET errcode during logrotate 31082/head
authorVenky Shankar <vshankar@redhat.com>
Wed, 9 Oct 2019 04:52:20 +0000 (00:52 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 23 Oct 2019 12:37:31 +0000 (14:37 +0200)
Fixes: http://tracker.ceph.com/issues/41800
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit e64652456711aad5f830ee83a77f0a5dca18769f)

qa/tasks/ceph.py

index 7f0976536959d107a81e5b2f7649e8535b6c169d..f7ae9f35b8587a3ea34c9c62f90a2edaedf30472 100644 (file)
@@ -174,7 +174,7 @@ def ceph_log(ctx, config):
                 except SSHException as e:
                     log.debug("Missed logrotate, SSHException")
                 except socket.error as e:
-                    if e.errno == errno.EHOSTUNREACH:
+                    if e.errno in (errno.EHOSTUNREACH, errno.ECONNRESET):
                         log.debug("Missed logrotate, host unreachable")
                     else:
                         raise