JIRA: BOTTLENECK-110
This patch support bottlenecks testsuites posca support use yardstick
rest api to pull InfluxDB container.
the yardstick use this container to store its test result.
Change-Id: I6ad6b5d7a9748c385787567b3d6d1dfe4cee167f
Signed-off-by: liyin <liyin11@huawei.com>
     data_reply.update(test_config)
     posca_output_result(file_config, data_reply)
     return data_reply
+
+
+def posca_create_incluxdb(con_dic):
+    base_url = "http://%s/yardstick/env/action" % (con_dic['test_ip'])
+    test_dict = {
+            "action":"createInfluxDBContainer",
+    }
+    reponse = requests.post(
+                        base_url, data=json.dumps(test_dict), headers=headers)
 
     starttime = datetime.datetime.now()
     config = ConfigParser.ConfigParser()
     con_dic = common_script.posca_config_read(testcase_cfg, con_str, config)
+    common_script.posca_create_incluxdb(con_dic)
     posca_env_check()
     posca_run(con_dic)
     endtime = datetime.datetime.now()