From e2a1fb51201f22b2315843b684665245ee35e171 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 14 Sep 2017 17:31:57 +0200 Subject: rumba: Add better error handling of SSH connect If an SSH connect doesn't succeed at first, it is retried up to 5 times with an exponential backoff. It also adds an error message in case of an offending host key. --- rumba/prototypes/enroll.py | 2 ++ rumba/prototypes/irati.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'rumba/prototypes') diff --git a/rumba/prototypes/enroll.py b/rumba/prototypes/enroll.py index 774ba52..35cc136 100755 --- a/rumba/prototypes/enroll.py +++ b/rumba/prototypes/enroll.py @@ -28,6 +28,7 @@ import argparse import socket import time import re +import sys def printalo(byt): print(repr(byt).replace('\\n', '\n')) @@ -133,5 +134,6 @@ if connected: else: print('Failed to connect to "%s"' % socket_name) + sys.exit(-1) s.close() diff --git a/rumba/prototypes/irati.py b/rumba/prototypes/irati.py index f104054..48b013a 100644 --- a/rumba/prototypes/irati.py +++ b/rumba/prototypes/irati.py @@ -79,7 +79,7 @@ class Experiment(mod.Experiment): "export https_proxy=\"https://proxy.atlantis.ugent.be:8080\"; " + self.sudo("apt-get install g++ gcc " "protobuf-compiler libprotobuf-dev git --yes " - "pkg-config " + "pkg-config ethtool socat " "libnl-3-dev libnl-genl-3-dev"), self.sudo("rm -rf ~/irati"), "cd ~; " -- cgit v1.2.3