JIRA: BOTTLENECK-70
Change-Id: Iade7d7a97f3b0ba54be33b37cf80c1530c410b95
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
print "Cannot create instances, as Failed to create image(s)."
exit (-1)
print "Cannot create instances, as Failed to create image(s)."
exit (-1)
- print "Wait 300 seconds after stack creation..."
- time.sleep(300)
+ print "Wait 600 seconds after stack creation..."
+ time.sleep(600)
#reboot_instances()
#time.sleep(180)
#reboot_instances()
#time.sleep(180)
print "Error [get_instances(nova_client)]:", e
return None
print "Error [get_instances(nova_client)]:", e
return None
+def vstf_run(launch_file=None, test_file=None):
print "================run vstf==============="
nova = _get_nova_client()
print(nova.servers.list())
print "================run vstf==============="
nova = _get_nova_client()
print(nova.servers.list())
instances = get_instances(nova)
if instances == None:
print "Found *None* instances, exit vstf_run()!"
return False
instances = get_instances(nova)
if instances == None:
print "Found *None* instances, exit vstf_run()!"
return False
+ if launch_file == None or test_file == None:
+ print "Error, vstf launch/test file not given"
+ return False
+ cmd = "bash " + launch_file
+ subprocess.call(cmd, shell=True)
+ time.sleep(50)
+ cmd = "bash " + test_file
+ subprocess.call(cmd, shell=True)
+ time.sleep(20)
print "Wait 100 seconds after stack creation..."
time.sleep(100)
print "Wait 100 seconds after stack creation..."
time.sleep(100)
+ launchfile = Bottlenecks_repo_dir + "/utils/infra_setup/heat_template/vstf_heat_template/launch_vstf.sh"
+ testfile = Bottlenecks_repo_dir + "utils/infra_setup/heat_template/vstf_heat_template/test_vstf.sh"
+ vstf_run(launch_file=launchfile, test_file=testfile)