diff options
author | Nick Aerts <nick.aerts@ugent.be> | 2018-02-24 12:27:36 +0100 |
---|---|---|
committer | Nick Aerts <nick.aerts@ugent.be> | 2018-03-20 11:30:07 +0100 |
commit | a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2 (patch) | |
tree | 9c29f08693d577c81959c3194aec04e9bc1ba195 /rumba/ssh_support.py | |
parent | 24bed306b5a67fc682b04cae017b0d0f3ac55a00 (diff) | |
download | rumba-a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2.tar.gz rumba-a7cd88d752b72ea85ccefa5e1f3dceba13fb1fc2.zip |
testbeds: Add docker testbed
This adds support for a testbed based on Docker containers running on
the local host. Bridging the containers can be done using built-in
Linux bridging or using OpenVSwitch bridges.
A new resource 'executor' has been added to abstract away command
execution on nodes on the testbed. Executors have been created for
local command execution, docker exec based command execution and
SSH-based command execution. This has also been changed in the
prototypes to execute using the correct executor.
Diffstat (limited to 'rumba/ssh_support.py')
-rw-r--r-- | rumba/ssh_support.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 88334ea..b1492e7 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -32,6 +32,8 @@ import time import rumba.log as log # Fix input reordering +from rumba.model import Executor + try: import builtins # Only in Python 3 @@ -434,4 +436,4 @@ def aptitude_install(testbed, node, packages): "while ! " + sudo("apt-get update") + "; do sleep 1; done", "while ! " + sudo(package_install) + "; do sleep 1; done"] - execute_proxy_commands(testbed, node.ssh_config, cmds, time_out=None) + execute_proxy_commands(testbed, node.ssh_config, cmds, time_out=None)
\ No newline at end of file |