]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Handle socket.timeout when waiting for a reconnect.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 10 Aug 2011 20:22:14 +0000 (13:22 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Wed, 10 Aug 2011 20:22:14 +0000 (13:22 -0700)
Now it gets ignored, just like the other harmless socket errors.

teuthology/task/kernel.py

index 3745f8d65ef48764aec38b105b9273497365f27f..7f3ce70e139fbcb5d93b366d70131718f76defd2 100644 (file)
@@ -147,6 +147,8 @@ def reconnect(ctx, timeout):
                     user_at_host=remote.name,
                     host_key=ctx.config['targets'][remote.name],
                     )
+            except socket.timeout:
+                pass
             except socket.error as e:
                 if hasattr(e, '__getitem__'):
                     if e[0] not in [errno.ECONNREFUSED, errno.ETIMEDOUT,