From 3b440fba4ca0781bcf1283baaa5c44704d745017 Mon Sep 17 00:00:00 2001 From: zhihui wu Date: Wed, 9 Aug 2017 16:34:30 +0800 Subject: refactor: run storperf scripts in qtip container The preious storperf scripts can only be run based on the host. This patch will make them run in qtip container. JIRA: QTIP-248 README.md will tell you how to use these scripts. Change-Id: I4d2d51f859499e6e56ae8692d880cbde27297b82 Signed-off-by: zhihui wu --- integration/storperf/README.md | 50 ++++++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 9 deletions(-) (limited to 'integration/storperf/README.md') diff --git a/integration/storperf/README.md b/integration/storperf/README.md index 137e15be..bdcc7e70 100644 --- a/integration/storperf/README.md +++ b/integration/storperf/README.md @@ -1,13 +1,45 @@ -# usage +# Usage Please make sure pip, docker and docker-compose are installer on your environment. -``` -storperf.sh -t installer_type -i installer_ip -s stack_json_file -j job_json_file +1. Launch qtip and storperf containers. -options: - -t : installer type. For now only supports Apex. - -i : installer ip address. - -s : Stack configuration json file. If not given, default_stack.json will be used. - -j : Storperf job configuration json file. If not given, default_job.json will be used. -``` \ No newline at end of file + ``` + $ cd qtip/integration/storperf + $ bash launch_containers.sh -t apex -n "" + + Arguments: + + -t : Installer type. For now only supports Apex. + -n : Node name. + ``` + + Then you will get 5 containers: + + ``` + CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES + 2c079d5d88bc opnfv/qtip "/usr/bin/supervisord" 38 minutes ago Up 38 minutes 5000/tcp qtip + 2032a16dab17 opnfv/storperf-httpfrontend "nginx -g 'daemon ..." 38 minutes ago Up 38 minutes 80/tcp, 0.0.0.0:5000->5000/tcp storperf-httpfrontend + c0d3e2763d35 schickling/swagger-ui "sh run.sh" 39 minutes ago Up 38 minutes 80/tcp storperf-swaggerui + 0e08a1968829 opnfv/storperf-reporting "python app.py" 39 minutes ago Up 38 minutes 0.0.0.0:5080->5000/tcp storperf-reporting + b92967139d8e opnfv/storperf-master "/usr/bin/supervisord" 39 minutes ago Up 39 minutes 5000/tcp, 0.0.0.0:8000->8000/tcp storperf-master + ``` + +2. Prepare environment. + + ``` + $ docker exec qtip bash -c "/home/opnfv/repos/qtip/integration/storperf/prepare.sh" + ``` + + This command can create a flavor and upload a Ubuntu 16.04 image on OpenStack. + +3. Run storperf job. + + ``` + $ docker exec qtip bash -c "/home/opnfv/repos/qtip/integration/storperf/start_job.sh -s stack.json -j job.json" + + Arguments: + + -s : Stack configuration json file. If not given, default_stack.json will be used. + -j : Storperf job configuration json file. If not given, default_job.json will be used. + ``` -- cgit 1.2.3-korg