aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-03-16 04:47:47 -0400
committerGerrit Code Review <gerrit@fd.io>2016-03-18 22:52:06 +0000
commit8c7cb6f40ba2eae5be65af023990cd89778f0469 (patch)
treeccb5029041c26845a977e9b7151cf7e6c9122a88
parent2bd0f8299dffb7818d87081f2f7b06d38a8ab620 (diff)
Remove apt-get call to install dependencies.
Change-Id: I309a13bc857b89f1f342d659ab80b70d7a5fc686 Signed-off-by: Carsten Koester <ckoester@cisco.com>
-rw-r--r--resources/libraries/python/SetupFramework.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/resources/libraries/python/SetupFramework.py b/resources/libraries/python/SetupFramework.py
index 399e7fd69d..2a0bd4284e 100644
--- a/resources/libraries/python/SetupFramework.py
+++ b/resources/libraries/python/SetupFramework.py
@@ -86,25 +86,10 @@ def create_env_directory_at_node(node):
else:
logger.console('Virtualenv created on {0}'.format(node['host']))
-def install_dependencies(node):
- """TEMPORARY FUNCTION TO INSTALL DEPENDENCIES ON NODES BEFORE THE VIRL
- HOSTS HAVE ALL PREREQUISITES INSTALLED"""
- logger.console('Installing prerequisites on {0}'.format(node['host']))
- ssh = SSH()
- ssh.connect(node)
- (ret_code, stdout, stderr) = ssh.exec_command(
- 'sudo apt-get -y update; ' \
- 'sudo apt-get -y install python-virtualenv python-dev', timeout=120)
- if 0 != ret_code:
- logger.error('Failed to install prerequisites: {0}'.
- format(stdout + stderr))
- raise Exception('Virtualenv setup failed')
-
def setup_node(args):
tarball, remote_tarball, node = args
copy_tarball_to_node(tarball, node)
extract_tarball_at_node(remote_tarball, node)
- install_dependencies(node)
if node['type'] == NodeType.TG:
create_env_directory_at_node(node)