bugfix for image cleanup and python script calling by subprocess shell 31/15431/1
authorMatthewLi <matthew.lijun@huawei.com>
Mon, 13 Jun 2016 07:38:30 +0000 (03:38 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Mon, 13 Jun 2016 07:43:53 +0000 (03:43 -0400)
JIRA: BOTTLENECK-70

log is shown in https://build.opnfv.org/ci/view/bottlenecks/job/bottlenecks-compass-vstf-virtual-daily-master/9/console
and https://build.opnfv.org/ci/view/bottlenecks/job/bottlenecks-compass-vstf-virtual-daily-master/10/console
for image names, we use bottlenecks_<suite name>_<option>
for vstf_collector.py, it is used for transfer test result to community dashboard, it works for B release, for C release,
we should adapt it later, now we only fix its path error.

Change-Id: Iad2bf39837d02aa1e5ea8a323411d98082135882
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
testsuites/vstf/run_vstf.py
testsuites/vstf/testcase_cfg/vstf_heat_template.yaml
testsuites/vstf/vstf_collector.py [moved from utils/infra_setup/heat_template/vstf_heat_template/vstf_collector.py with 95% similarity]

index 319f005..1aed759 100755 (executable)
@@ -256,9 +256,9 @@ def main():
     target_image_created = False
     stack_created = False
 
-    manager_image_created = vstf_create_images(imagefile=manager_file, image_name="vstf-manager")
-    tester_image_created = vstf_create_images(imagefile=agent_file, image_name="vstf-tester")
-    target_image_created = vstf_create_images(imagefile=agent_file, image_name="vstf-target")
+    manager_image_created = vstf_create_images(imagefile=manager_file, image_name="bottlenecks_vstf_manager")
+    tester_image_created = vstf_create_images(imagefile=agent_file, image_name="bottlenecks_vstf_tester")
+    target_image_created = vstf_create_images(imagefile=agent_file, image_name="bottlenecks_vstf_target")
     keyPath = Bottlenecks_repo_dir + "/utils/infra_setup/bottlenecks_key/bottlenecks_key.pub"
     vstf_create_keypairs(key_path=keyPath)
     vstf_create_flavors()
index a649771..b69abfd 100755 (executable)
@@ -19,15 +19,15 @@ parameters:
   image_vstf_manager:
     type: string
     description: Name of image to use for servers
-    default: vstf-manager
+    default: bottlenecks_vstf_manager
   image_vstf_tester:
     type: string
     description: Name of image to use for servers
-    default: vstf-tester
+    default: bottlenecks_vstf_tester
   image_vstf_target:
     type: string
     description: Name of image to use for servers
-    default: vstf-target
+    default: bottlenecks_vstf_target
   #nova flavor-list to query available flavors
   flavor:
     type: string
@@ -11,10 +11,8 @@ import argparse
 import json\r
 import requests\r
 import logging\r
-__author__ = "qwyang0126@gmail.com"\r
-__date__ = "2016-01-11"\r
-LOG = logging.getLogger(__name__)\r
 \r
+LOG = logging.getLogger(__name__)\r
 \r
 class Uploader(object):\r
     def __init__(self, conf):\r