From 57922dcb8e6497f02fdee9306494e932e25dcace Mon Sep 17 00:00:00 2001 From: Nauman_Ahad Date: Tue, 5 Jan 2016 21:01:17 +0500 Subject: QTIP Index calculation along with a script to run qtip from docker Calculation of Result Indices for 1. Compute suite 2. Storage suite 3. Network suite A script to run qtip from inside the docker container (for Jenkins Jobs) Resolved bugs with ssl_trasform.py, sys info collection on ubuntu and system information collection script Change-Id: Ic5abb3dbd0012cd2257b588b1b3067a6677b1f5d Signed-off-by: Nauman_Ahad --- func/env_setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'func') diff --git a/func/env_setup.py b/func/env_setup.py index a888046c..c0e1b539 100644 --- a/func/env_setup.py +++ b/func/env_setup.py @@ -57,15 +57,15 @@ class Env_setup(): ssh_c = 'ssh-keyscan {0} >> ~/.ssh/known_hosts'.format(k) - #os.system(ssh_c) - ssh_cmd = 'expect ./data/ssh_exch.exp {0} {1}'.format(ipvar, pwvar) + os.system(ssh_c) + ssh_cmd = './data/qtip_creds.sh {0}'.format(ipvar) print ssh_cmd res = os.system(ssh_cmd) for infinity in range(100): try : ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - ssh.connect(k , username = 'root', password = v) + ssh.connect(k , key_filename= './data/QtipKey') stdin, stdout, stderr = ssh.exec_command('ls') print('SSH successful') break @@ -79,7 +79,7 @@ class Env_setup(): time.sleep(3) os.system(ssh_c) - for infinity in range(100): + for infinity in range(10): try : ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) -- cgit 1.2.3-korg