summaryrefslogtreecommitdiffstats
path: root/testsuites/rubbos
diff options
context:
space:
mode:
authorwangyaoguang <sunshine.wang@huawei.com>2016-05-03 09:56:34 +0800
committerwangyaoguang <sunshine.wang@huawei.com>2016-05-03 09:57:52 +0800
commit6f9afdd078c848de886a85f9d216f60fedd92a79 (patch)
treeb16c036a0a81443fe4c568bb82822ce661507b8b /testsuites/rubbos
parent9cae9f39066d07694d94de67761ddbc700f34af0 (diff)
bugfix: ssh to one OS instance via floating ip
JIRA: BOTTLENECK-74 Change-Id: I857547f035c262dbc29ca8774a2fc42ab2a991a6 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'testsuites/rubbos')
-rwxr-xr-xtestsuites/rubbos/run_rubbos.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/rubbos/run_rubbos.py b/testsuites/rubbos/run_rubbos.py
index e5f3e534..11b3f962 100755
--- a/testsuites/rubbos/run_rubbos.py
+++ b/testsuites/rubbos/run_rubbos.py
@@ -265,6 +265,23 @@ def rubbos_run():
subprocess.call(cmd, shell=True)
ssh_args = "-o StrictHostKeyChecking=no -o BatchMode=yes -i " + Bottlenecks_repo_dir + "/utils/infra_setup/bottlenecks_key/bottlenecks_key "
+ print "############### Test #################"
+ print "## Ping test:"
+ cmd = "ping -c 5 " + control_public_ip
+ print cmd
+ subprocess.call(cmd, shell=True)
+ print "## ssh date test:"
+ cmd = "ssh " + ssh_args + " ubuntu@" + control_public_ip + ' "date"'
+ print cmd
+ subprocess.call(cmd, shell=True)
+ print "## neutruon net-list:"
+ subprocess.call("neutron net-list", shell=True)
+ print "## neutron subnet-list:"
+ subprocess.call("neutron subnet-list", shell=True)
+ print "## neutron security-group-list:"
+ subprocess.call("neutron security-group-list", shell=True)
+ print "############### Test #################"
+
cmd = "scp " + ssh_args + "rubbos.conf ubuntu@" + control_public_ip + ":/home/ubuntu/"
print "Exec shell: " + cmd
subprocess.call(cmd, shell=True)