From 7c02fbc57439f5ab850b3f605df84e549174b11b Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 28 Jun 2018 11:49:55 +0200 Subject: testbeds: Abstract away use of http proxy server Certain testbeds use a proxy to access the outside world. Due to recent changes this was not working anymore. This takes a different approach to re-enable this. It simply adds the lines to /etc/profile after swap-in so that the proxy is added to every shell upon execution. --- rumba/testbeds/emulab.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rumba/testbeds/emulab.py') diff --git a/rumba/testbeds/emulab.py b/rumba/testbeds/emulab.py index f0c0350..664b4ff 100644 --- a/rumba/testbeds/emulab.py +++ b/rumba/testbeds/emulab.py @@ -67,9 +67,6 @@ class Testbed(mod.Testbed): self.executor = SSHExecutor - if "wall" in url: - self.http_proxy="https://proxy.atlantis.ugent.be:8080" - def _ops_server(self): """ Return server name of the ops-server (is testbed specific). @@ -276,6 +273,12 @@ class Testbed(mod.Testbed): self._wait_until_nodes_up() self._complete_experiment_graph(experiment) + if "wall" in self.url: + for node in experiment.nodes: + ssh_support.set_http_proxy(self, node_n, + "https://proxy.atlantis." + "ugent.be:8080") + def _swap_out(self, experiment): """ Swaps experiment out -- cgit v1.2.3