qtip.git
8 years agoMerge "Update CLI docs." into stable/danube
Yujun Zhang [Tue, 28 Mar 2017 01:45:22 +0000 (01:45 +0000)]
Merge "Update CLI docs." into stable/danube

8 years agoMerge "Add unit tests for List and get in API." into stable/danube
Yujun Zhang [Tue, 28 Mar 2017 01:45:00 +0000 (01:45 +0000)]
Merge "Add unit tests for List and get in API." into stable/danube

8 years agoMerge "add qtip installation in Dockerfile" into stable/danube
Yujun Zhang [Sun, 26 Mar 2017 14:02:46 +0000 (14:02 +0000)]
Merge "add qtip installation in Dockerfile" into stable/danube

8 years agoMerge "bugfix: regex for dpi" into stable/danube
Yujun Zhang [Sun, 26 Mar 2017 14:02:34 +0000 (14:02 +0000)]
Merge "bugfix: regex for dpi" into stable/danube

8 years agoUpdate CLI docs. 53/31753/1
Taseer [Fri, 24 Mar 2017 06:09:13 +0000 (11:09 +0500)]
Update CLI docs.

- Update command to execute runner
- Include reporter

JIRA: QTIP-231

Change-Id: I834ac94821cea7221078fbb6160ef7467b2bd4cf
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
8 years agoadd qtip installation in Dockerfile 45/31745/1
wu.zhihui [Fri, 24 Mar 2017 09:14:19 +0000 (17:14 +0800)]
add qtip installation in Dockerfile

Docker build successfully on local. And QTIP cli works well.

Change-Id: I0916c73e67808ae170ff7b290b8e03b605be8e69
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 8c325e64ada6fb2cb4377e592fa204170c7d8513)

8 years agobugfix: regex for dpi 43/31743/1
wu.zhihui [Fri, 24 Mar 2017 08:47:31 +0000 (16:47 +0800)]
bugfix: regex for dpi

see: https://build.opnfv.org/ci/view/qtip/job/
qtip-os-nosdn-kvm-ha-zte-pod3-daily-danube/3/console

Previous regex cann't match with log like:
"nDPI throughput:       943.34 K pps / 8.86 Gb/sec".
For pps, there are two type of unit: K and M.
Same with bps.

Change-Id: I247c8b6049cc8b264fe894538cd4f89ba544c0b8
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 6ee214ad9487dfaa121c72d8487464f63992c5ff)

8 years agoIntegrate cli, runner and reporter. 75/31675/2
Taseer [Thu, 23 Mar 2017 09:26:49 +0000 (14:26 +0500)]
Integrate cli, runner and reporter.

- Execute runner via a shell command
- Change format of qtip result directory to qtip-timestamp
- Add path option in reporter to match with runner

JIRA: QTIP-229

Change-Id: I7d8562fd7100b1f40cdc8d53b0daa6a06a55b495
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit c2bb13c460566a18e61a3c840bf12f7f717940c2)

8 years agoMerge "Cleanup DEVELOP.md" into stable/danube
Yujun Zhang [Fri, 24 Mar 2017 07:47:38 +0000 (07:47 +0000)]
Merge "Cleanup DEVELOP.md" into stable/danube

8 years agoAdd unit tests for List and get in API. 85/31485/1
akhilbatra898 [Sat, 18 Mar 2017 08:46:26 +0000 (14:16 +0530)]
Add unit tests for List and get in API.

 - refactor controllers
 - remove abspath and other irrelvant data in response
 - move fixtures
 - refactor decorators

JIRA: QTIP-226

Change-Id: I5fac5b1bc998da198098992e7ddb47ba49685f31
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
(cherry picked from commit bef693f40ad87170b7233b9fef62f2fd8abfc8d8)

8 years agoAdd missing license headers 83/31483/1
Yujun Zhang [Tue, 21 Mar 2017 10:23:39 +0000 (18:23 +0800)]
Add missing license headers

Change-Id: Idd76277c84a6afc9a545d6e2bba39aae6e7f5d71
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
(cherry picked from commit 29df737b48ccf31f555d0e4c08a65e14ecb66331)

8 years agoCleanup DEVELOP.md 51/31151/2
Yujun Zhang [Tue, 21 Mar 2017 09:04:31 +0000 (17:04 +0800)]
Cleanup DEVELOP.md

- remove unecessary content
- move CLI develop guide to rst document

Change-Id: I20b6f458aa13f1feb1764e6c4d096ec8a9dddf49
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agocorrect the path of .ansible.cfg 91/31391/1
wu.zhihui [Wed, 22 Mar 2017 05:20:54 +0000 (13:20 +0800)]
correct the path of .ansible.cfg

In qtip container, /home/opnfv/ is HOME path. So the customized
.ansible.cfg should be put under this directory.

Change-Id: Ie0cddab9dac72fc45c14d7d3652b6863c5748260
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 8ecff917366390b8a8ddf268aea98c6f82a7376c)

8 years agoMerge "provide get_one_exceptions to unify get_xx process" into stable/danube
Yujun Zhang [Wed, 22 Mar 2017 07:45:48 +0000 (07:45 +0000)]
Merge "provide get_one_exceptions to unify get_xx process" into stable/danube

8 years agoMerge "Remove installation and scenario guide" into stable/danube
Yujun Zhang [Wed, 22 Mar 2017 06:14:58 +0000 (06:14 +0000)]
Merge "Remove installation and scenario guide" into stable/danube

8 years agoMerge "Create archtecture design specification" into stable/danube
Yujun Zhang [Wed, 22 Mar 2017 06:14:52 +0000 (06:14 +0000)]
Merge "Create archtecture design specification" into stable/danube

8 years agoMerge "White space control in report." into stable/danube
Yujun Zhang [Tue, 21 Mar 2017 13:27:15 +0000 (13:27 +0000)]
Merge "White space control in report." into stable/danube

8 years agoMerge "correct a mistake for os.getenv()" into stable/danube
Yujun Zhang [Tue, 21 Mar 2017 10:08:50 +0000 (10:08 +0000)]
Merge "correct a mistake for os.getenv()" into stable/danube

8 years agoWhite space control in report. 75/31175/1
Taseer [Tue, 21 Mar 2017 07:14:05 +0000 (12:14 +0500)]
White space control in report.

- Flaw: System Info and metric results at same line
  Packets per Second: 1.45System Information:

Change-Id: I22790e4b2c65fd2ef555e1c20e602a51ea97eb3b
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit 06638bb68811dda1a3599c7ef0176c5a58d056c5)

8 years agocorrect a mistake for os.getenv() 59/31159/1
wu.zhihui [Wed, 15 Mar 2017 05:00:25 +0000 (13:00 +0800)]
correct a mistake for os.getenv()

os.getenv returns a string not a boolean.
Although you set environment variable 'CI_DEBUG=false',
the cleanup will not be executed.

Change-Id: I077b602069f026a4b9ef6019869ac6c29c401c21
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit b07a423d0fb1b6bfbdb851195097d6fda38bc20e)

8 years agoprovide get_one_exceptions to unify get_xx process 57/31157/1
SerenaFeng [Tue, 14 Mar 2017 02:06:41 +0000 (10:06 +0800)]
provide get_one_exceptions to unify get_xx process

add refactor get_metric()

Change-Id: I972c77e63a654eeb286c573d75efe842b2887c1d
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
(cherry picked from commit 9f87878becc36b19110e151e802180aa5f7fb305)

8 years agoRefactor reporter module 53/31153/1
Taseer [Thu, 9 Mar 2017 07:05:46 +0000 (12:05 +0500)]
Refactor reporter module

- Create templates for report format specific to each metric.
- Outputs the details of the specified metric across all the nodes
  in cluster.
- Timeline to be covered in a separate patch

JIRA: QTIP-199

Change-Id: Ic83749725b0c9cc5bd9a7f24f21b2cd113abe0e1
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit 04e50e57819bdf40a2fd7abdd3fc7be798771e0b)

8 years agoRemove installation and scenario guide 33/31133/3
Yujun Zhang [Tue, 21 Mar 2017 06:49:57 +0000 (14:49 +0800)]
Remove installation and scenario guide

Not applicable for non-installer projects

Change-Id: Id83898cd0da14b6a7339e6c2cd9fd5fb607bf443
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agomistaken delete usefuel public key 43/31143/1
wu.zhihui [Mon, 20 Mar 2017 02:52:49 +0000 (10:52 +0800)]
mistaken delete usefuel public key

Previously, cleanup_creds.sh will delete public keys which of
comment info is "root@$hostname". It could delete useful keys
by accident. In this patch, cleanup_creds.sh will only delete
the key which matches the key's content.

JIRA: QTIP-228

Change-Id: I1095de656570b816b7e170688acd01c27b98e74c
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit eaa225cf0c9b8b7bc63b35acdeef75dbacb8b905)

8 years agoCreate archtecture design specification 61/31061/2
Yujun Zhang [Mon, 20 Mar 2017 13:27:13 +0000 (21:27 +0800)]
Create archtecture design specification

JIRA: QTIP-148
Change-Id: I1d5d83e0bd59b1f504bbf3ad3bd4a5cc9a6ff022
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoCreate release note draft 73/30973/2
Yujun Zhang [Fri, 10 Mar 2017 05:07:37 +0000 (07:07 +0200)]
Create release note draft

release content to be retrieved from JIRA

Change-Id: Id15cb437019ac162b6737e9d9c49d79194c3f28d
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Create outline for documents to be released in Danube" into stable/danube
Yujun Zhang [Mon, 20 Mar 2017 11:08:30 +0000 (11:08 +0000)]
Merge "Create outline for documents to be released in Danube" into stable/danube

8 years agoCreate outline for documents to be released in Danube 71/30971/2
Yujun Zhang [Mon, 20 Mar 2017 01:55:14 +0000 (09:55 +0800)]
Create outline for documents to be released in Danube

- deprecated legacy document
- created content placeholders

Change-Id: I12de6467d1fed83a9670750e23ec070901deee63
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoImplement 'show' command. 15/30715/1
Taseer [Mon, 13 Mar 2017 16:13:45 +0000 (21:13 +0500)]
Implement 'show' command.

- Render the description via templates

JIRA: QTIP-205

Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956)

8 years agoAdd aarch64 patch 39/30539/1
Cristina Pauna [Thu, 9 Mar 2017 13:14:17 +0000 (15:14 +0200)]
Add aarch64 patch

This commit adds a patch that can be applied to the Dockerfile to adapt
it for aarch64. When applied from releng, a new Dockerfile.aarch64 is
created and an aarch64 qtip image is created.

The aarch64 qtip image will be build with the releng fix
https://gerrit.opnfv.org/gerrit/30181

JIRA: ARMBAND-219

Change-Id: I551ae7fa1d7fc23c6e5f6381d605b0b22dbec695
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
(cherry picked from commit 2935006a650f92255c8046d236e691360148d9ff)

8 years agoMerge "optimize console info" into stable/danube
Yujun Zhang [Wed, 15 Mar 2017 01:52:14 +0000 (01:52 +0000)]
Merge "optimize console info" into stable/danube

8 years agoMerge "add the cleanup step in runner.py" into stable/danube
Yujun Zhang [Wed, 15 Mar 2017 01:51:49 +0000 (01:51 +0000)]
Merge "add the cleanup step in runner.py" into stable/danube

8 years agoMerge "Miss \ in Dockerfile" into stable/danube
Yujun Zhang [Wed, 15 Mar 2017 01:51:22 +0000 (01:51 +0000)]
Merge "Miss \ in Dockerfile" into stable/danube

8 years agooptimize console info 99/30499/1
wu.zhihui [Mon, 13 Mar 2017 03:13:14 +0000 (11:13 +0800)]
optimize console info

- use QtipLogger instead of print
- delete useless print

Change-Id: I1e08382a5d78ce53cf455496363bce3762b81dd2
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 3391a3c6ab4f6b33e2f6d74e858a7bad573695b1)

8 years agoadd the cleanup step in runner.py 95/30495/1
wu.zhihui [Mon, 13 Mar 2017 09:16:50 +0000 (17:16 +0800)]
add the cleanup step in runner.py

Add the cleanup step in runner.py

Change-Id: I0016986485eab5d7ab45d4a7a393bea5fb6f96b5
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 57ec2e7a9757cbb1da8a1f73f0c55e8a5cb67bec)

8 years agoMerge "Implement the workflow of compute qpi" into stable/danube
zhihui wu [Wed, 15 Mar 2017 01:40:59 +0000 (01:40 +0000)]
Merge "Implement the workflow of compute qpi" into stable/danube

8 years agoMerge "parse benchmark result from logfile" into stable/danube
zhihui wu [Wed, 15 Mar 2017 01:37:25 +0000 (01:37 +0000)]
Merge "parse benchmark result from logfile" into stable/danube

8 years agoMiss \ in Dockerfile 91/30491/1
wu.zhihui [Sat, 11 Mar 2017 05:26:32 +0000 (13:26 +0800)]
Miss \ in Dockerfile

https://build.opnfv.org/ci/view/qtip/job/qtip-docker-build-push-master/250/console

Change-Id: If6d76c6a27cc61a1b3d468751932e21d32dff277
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit b14071b6bfb19920028dd45a8c78d57af872922c)

8 years agoMerge "Remove legacy code from stable branch" into stable/danube
zhihui wu [Wed, 15 Mar 2017 01:28:02 +0000 (01:28 +0000)]
Merge "Remove legacy code from stable branch" into stable/danube

8 years agoMerge "env cleanup" into stable/danube
zhihui wu [Wed, 15 Mar 2017 01:27:02 +0000 (01:27 +0000)]
Merge "env cleanup" into stable/danube

8 years agoImplement the workflow of compute qpi 35/30435/1
wu.zhihui [Fri, 10 Mar 2017 16:53:00 +0000 (00:53 +0800)]
Implement the workflow of compute qpi

Local test is ok.
The result will be written to report.json.

usage: runner.py [-h] -d DEST -b BENCHMARK

optional arguments:
  -d DEST, --dest DEST  the destination where results will be stored.
  -b BENCHMARK, --benchmark BENCHMARK
                        the benchmark you want to execute.

Change-Id: Ic3a70c65a5aa045bf9df34ce4d14957a7a1b3dcf
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 478cd02a9219f7c8b49d8529d1f809a04399ad0d)

8 years agoparse benchmark result from logfile 31/30431/1
wu.zhihui [Fri, 10 Mar 2017 16:29:41 +0000 (00:29 +0800)]
parse benchmark result from logfile

- Put all the regex rules in regex.yaml.
- According to benchmark name, we can find related regexes.

Change-Id: Ic15bd1c77b525be3751011fa94d582da077b0345
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit dc92e5ae19dd026bf6a14c1e0d2b9c50497845d5)

8 years agoSome modifications for ansible playbook 91/30291/3
wu.zhihui [Fri, 10 Mar 2017 16:26:29 +0000 (00:26 +0800)]
Some modifications for ansible playbook

- typo in ramspeed/run.yaml
- fix result logfile name for dhrystone and whetstone

Change-Id: Ic8456174a14d04c2207990eccb16601762c5a880
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit 764c2d3916f1390e2ee2ca3b3efbcc33050fd525)

8 years agoRemove legacy code from stable branch 03/30403/1
Yujun Zhang [Tue, 14 Mar 2017 09:26:28 +0000 (17:26 +0800)]
Remove legacy code from stable branch

Change-Id: I283f84dfcb3cd029739caaefb33ed5431114fae9
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Implement 'list' command." into stable/danube
zhihui wu [Mon, 13 Mar 2017 07:25:53 +0000 (07:25 +0000)]
Merge "Implement 'list' command." into stable/danube

8 years agoenv cleanup 97/30297/1
wu.zhihui [Sat, 11 Mar 2017 02:19:21 +0000 (10:19 +0800)]
env cleanup

If IF_DEBUG is True, there is not cleanup step.
If IF_DEBUG is False, host file and keypair will be
deleted on local  and public key will be removed from
remote nodes in the end of test.

Change-Id: I4a88acc2d428e41e4abaedacb011e27468b2cb57
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
(cherry picked from commit d37dad746e504e833abcf2ae058f2b81e2a9d365)

8 years agoImplement Retrieval of plans, QPIs, and metrics 95/30295/1
akhilbatra898 [Fri, 10 Mar 2017 10:05:04 +0000 (15:35 +0530)]
Implement Retrieval of plans, QPIs, and metrics

- All specs can be listed
- All specs can be individually retrieved
- API can be installed alongside qtip
- API can be hosted using command `qtip-api`

JIRA: QTIP-221
JIRA: QTIP-222

Change-Id: I1e80e6609cae1252cb2fcdc38c71b4bf6d02e8c9
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
(cherry picked from commit 15fceada86ad0d5dabe26365451aae9c95b36be1)

8 years agoImplement 'list' command. 93/30293/1
Taseer [Fri, 10 Mar 2017 12:18:22 +0000 (17:18 +0500)]
Implement 'list' command.

- Loads Qtip components from the default path.

JIRA: QTIP-205

Change-Id: Id87993d65c5cd6a23c199cf1049d75a0971b6354
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit 0bd051505c2851d61356e7c448d7802913ab785f)

8 years agoMerge "fill benchmarks"
zhihui wu [Fri, 10 Mar 2017 09:22:38 +0000 (09:22 +0000)]
Merge "fill benchmarks"

8 years agoMerge "bugfix benchmarks cannot be found"
zhihui wu [Fri, 10 Mar 2017 09:22:17 +0000 (09:22 +0000)]
Merge "bugfix benchmarks cannot be found"

8 years agofill benchmarks 33/30233/3
SerenaFeng [Fri, 10 Mar 2017 08:58:36 +0000 (16:58 +0800)]
fill benchmarks

Change-Id: I7ad5f504058b20db72c0878cf9618e6bff186b33
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agobugfix benchmarks cannot be found 27/30227/1
SerenaFeng [Fri, 10 Mar 2017 06:03:56 +0000 (14:03 +0800)]
bugfix benchmarks cannot be found

OSError: [Errno 2] No such file or directory:
'/Users/fengxiaowei/opnfv/qtip/.venv/lib/python2.7/
site-packages/qtip/cli/../../tests/data/benchmarks/plan'

Change-Id: I510a2beb215b3e5c93cfa5870fd892b0c7720f01
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "Add missing softwares"
zhihui wu [Fri, 10 Mar 2017 05:13:10 +0000 (05:13 +0000)]
Merge "Add missing softwares"

8 years agoMerge "modify logfile directory structure"
zhihui wu [Fri, 10 Mar 2017 04:14:45 +0000 (04:14 +0000)]
Merge "modify logfile directory structure"

8 years agoAdd missing softwares 71/30171/2
wu.zhihui [Thu, 9 Mar 2017 13:40:09 +0000 (21:40 +0800)]
Add missing softwares

Install iputils-ping for ping and rsync for synchronizing
files and directories.

Change-Id: I93ba44bcb04948bbe846fb179dc673aa86a6a92a
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMerge "Add basic swagger specifications and corresponding controllers"
Yujun Zhang [Fri, 10 Mar 2017 02:57:19 +0000 (02:57 +0000)]
Merge "Add basic swagger specifications and corresponding controllers"

8 years agoMerge "Adding Labels"
Yujun Zhang [Fri, 10 Mar 2017 02:56:37 +0000 (02:56 +0000)]
Merge "Adding Labels"

8 years agomodify logfile directory structure 03/30203/1
wu.zhihui [Thu, 9 Mar 2017 18:09:10 +0000 (02:09 +0800)]
modify logfile directory structure

After one qtip test execution, the logfiles will be stored like this:

`-- 2017-03-09-17-40
    `-- node-41
        |-- dhrystone
        |   |-- inxi.log
        |   |-- node-41.zte.com.cn-2017-03-09-01
        |   |-- node-41.zte.com.cn-2017-03-09-01.html
        |   |-- node-41.zte.com.cn-2017-03-09-01.log
        |   `-- top.log
        |-- dpi
        |   |-- dpi_dump.txt
        |   |-- inxi.log
        |   `-- top.log
        |-- ramspeed
        |   |-- Floatmem
        |   |-- Intmem
        |   |-- inxi.log
        |   `-- top.log
        |-- ssl
        |   |-- AES-128-CBC_dump
        |   |-- RSA_dump
        |   |-- inxi.log
        |   `-- top.log
        `-- whetstone
            |-- inxi.log
            |-- node-41.zte.com.cn-2017-03-09-01
            |-- node-41.zte.com.cn-2017-03-09-01.html
            |-- node-41.zte.com.cn-2017-03-09-01.log
            `-- top.log

Change-Id: I5889a0e5dbe99f28212d6e0cdf69b9c03d89a9fe
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoAdd basic swagger specifications and corresponding controllers 15/29815/8
akhilbatra898 [Mon, 6 Mar 2017 00:15:54 +0000 (05:45 +0530)]
Add basic swagger specifications and corresponding controllers

- Update specifications as per requirements
- map specifications with controllers
- make api installable

JIRA: QTIP-220

Change-Id: Id149fdcf68e869e31a00cf16d7e725e368d2b25f
Signed-off-by: akhilbatra898 <akhil.batra@research.iiit.ac.in>
8 years agoMerge "Implement ansible driver"
zhihui wu [Thu, 9 Mar 2017 07:19:42 +0000 (07:19 +0000)]
Merge "Implement ansible driver"

8 years agoMerge "Playbooks for unixbench"
zhihui wu [Thu, 9 Mar 2017 07:19:35 +0000 (07:19 +0000)]
Merge "Playbooks for unixbench"

8 years agoregexes for dpi/ramspeed/ssl 65/30065/5
wu.zhihui [Wed, 8 Mar 2017 13:44:18 +0000 (21:44 +0800)]
regexes for dpi/ramspeed/ssl

- Add dpi/ramspeed/ssl logfiles
- update regexes for dpi/ramspeed/ssl

result sample:
dpi: {
    "bps": "4.57",
    "pps": "1.55"
}
ramspeed:{
    "float_add": "9967.13",
    "float_copy": "7908.64",
    "float_scale": "7870.16",
    "float_triad": "10073.43",
    "float_average": "8954.84",
    "integer_add": "11649.55",
    "integer_copy": "11562.63",
    "integer_scale": "11563.77",
    "integer_triad": "11671.22",
    "integer_average": "11611.79"
}
ssl:{
    "aes_128_cbc_1024_bytes": "584568.83k",
    "aes_128_cbc_16_bytes": "533103.05k",
    "aes_128_cbc_256_bytes": "580021.25k",
    "aes_128_cbc_64_bytes": "570042.22k",
    "aes_128_cbc_8192_bytes": "599470.83k"
    "rsa_sign_1024": "3.9",
    "rsa_sign_2048": "1.4",
    "rsa_sign_4096": "0.8",
    "rsa_sign_512": "8.4",
    "rsa_verify_1024": "88397.9",
    "rsa_verify_2048": "26951.3",
    "rsa_verify_4096": "7633.7",
    "rsa_verify_512": "222903.5"
}

Change-Id: I6db22a699111dd55d9dc48c6e8c2cf148b345563
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMerge "playbook for ramspeed"
zhihui wu [Thu, 9 Mar 2017 01:00:44 +0000 (01:00 +0000)]
Merge "playbook for ramspeed"

8 years agoMerge "Refactor openssl playbook"
zhihui wu [Thu, 9 Mar 2017 01:00:20 +0000 (01:00 +0000)]
Merge "Refactor openssl playbook"

8 years agoMerge "Remove hardcode from some playbooks"
zhihui wu [Wed, 8 Mar 2017 10:13:22 +0000 (10:13 +0000)]
Merge "Remove hardcode from some playbooks"

8 years agoMerge "Refactor dpi playbook"
zhihui wu [Wed, 8 Mar 2017 10:13:10 +0000 (10:13 +0000)]
Merge "Refactor dpi playbook"

8 years agoImplement ansible driver 79/29779/7
wu.zhihui [Sat, 4 Mar 2017 12:33:22 +0000 (20:33 +0800)]
Implement ansible driver

- According to inputs parameters, setup test environment. If failed
during setupping, qtip will exited. If successful, execute metric
tests.
- Parameters(optional):
* keypair: the keypair to login/execute commands to the remote
  hosts. They can be automatically generated.
* hostfile: a inventory file. If not give, it can be
  automatically generated via installer.
* args: the parameters passed to playbook
- Use ansible python api to trigger ansible-playbook.

Unit test will be in a new patch.

Change-Id: I7470d348308f7cb6cb669bcc49063cf0f4da2111
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoRefactor openssl playbook 49/29849/6
wu.zhihui [Mon, 6 Mar 2017 12:22:19 +0000 (20:22 +0800)]
Refactor openssl playbook

Local test is ok.

Change-Id: I2800e364320697d436ed7b9202cc1baa3a893503
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoPlaybooks for unixbench 77/29977/6
wu.zhihui [Tue, 7 Mar 2017 16:11:00 +0000 (00:11 +0800)]
Playbooks for unixbench

Actually, both dhrystone and whether use unixbench tool
to get metric. Their playbook are too smiliar.
The playbooks under /unixbench can be used to measure
both of them.

Change-Id: I26e31c2b4ac4de35ff8b7ec6dea26b676d5078de
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoAdding Labels 43/30043/1
ShubhamRathi [Wed, 8 Mar 2017 09:22:43 +0000 (14:52 +0530)]
Adding Labels

Labels serve as anchors/ refs when referenced from other documents
This patch adds labels to docs/*/*/index.rst

Change-Id: Id23477c82231a1d02463802d60ee9d88a7fabc41
Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
8 years agoplaybook for ramspeed 05/30005/1
wu.zhihui [Wed, 8 Mar 2017 01:05:55 +0000 (09:05 +0800)]
playbook for ramspeed

These playbooks are successfully executed on Local.

Change-Id: Ie22ecb9b66364e6edf6ae0f59d0524603c4d46a9
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoRefactor dpi playbook 45/29845/5
wu.zhihui [Mon, 6 Mar 2017 10:21:34 +0000 (18:21 +0800)]
Refactor dpi playbook

Local test is ok.

Change-Id: I22a333eae940433a1ca228e6ee7f570b8d0c0fc9
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoRemove hardcode from some playbooks 83/29983/1
wu.zhihui [Tue, 7 Mar 2017 17:42:26 +0000 (01:42 +0800)]
Remove hardcode from some playbooks

Remove hardcode ($HOME/qtip_result) from these three
playbooks.

Change-Id: Iefcf0d4c6caf6be6b6888ff6abe4c36621666129
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMerge "rework env.py"
zhihui wu [Tue, 7 Mar 2017 08:51:56 +0000 (08:51 +0000)]
Merge "rework env.py"

8 years agoMerge "Add `subrepo` basic usage in developer guide."
Yujun Zhang [Tue, 7 Mar 2017 03:32:22 +0000 (03:32 +0000)]
Merge "Add `subrepo` basic usage in developer guide."

8 years agoMerge "Qtip command completion."
Yujun Zhang [Tue, 7 Mar 2017 03:31:56 +0000 (03:31 +0000)]
Merge "Qtip command completion."

8 years agoMerge "Implement debug option"
Yujun Zhang [Tue, 7 Mar 2017 03:30:14 +0000 (03:30 +0000)]
Merge "Implement debug option"

8 years agoMerge "Implement reporter module."
Yujun Zhang [Tue, 7 Mar 2017 03:29:29 +0000 (03:29 +0000)]
Merge "Implement reporter module."

8 years agoMerge "Create draft of report template in console"
Yujun Zhang [Tue, 7 Mar 2017 03:29:03 +0000 (03:29 +0000)]
Merge "Create draft of report template in console"

8 years agoAdd `subrepo` basic usage in developer guide. 31/29731/2
Yujun Zhang [Fri, 3 Mar 2017 14:37:05 +0000 (22:37 +0800)]
Add `subrepo` basic usage in developer guide.

Change-Id: I4e066d91c9d0775ba698584f561cce997d60ad6b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Switch License tool to develop branch"
Yujun Zhang [Tue, 7 Mar 2017 03:28:09 +0000 (03:28 +0000)]
Merge "Switch License tool to develop branch"

8 years agorework env.py 77/29777/3
wu.zhihui [Sat, 4 Mar 2017 10:32:17 +0000 (18:32 +0800)]
rework env.py

Create a new class AnsibleEnvSetup for setuping
test environment for ansible driver.

Change-Id: I5d2385b33e5666acb7bbac1a6d960a805d846a32
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMerge "bugfix on bash scripts"
zhihui wu [Sat, 4 Mar 2017 10:43:10 +0000 (10:43 +0000)]
Merge "bugfix on bash scripts"

8 years agoMerge "Refactor dhrystone playbook"
zhihui wu [Sat, 4 Mar 2017 10:43:03 +0000 (10:43 +0000)]
Merge "Refactor dhrystone playbook"

8 years agoImplement debug option 75/29775/3
Taseer Ahmed [Sat, 4 Mar 2017 07:52:50 +0000 (12:52 +0500)]
Implement debug option

Show traceback only when debug flag specified.

JIRA: QTIP-201

Change-Id: I9cc4b4ed5a2cb2d2efabd9c0eb3aac216321ebac
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
8 years agoMerge "Add missing license headers"
Yujun Zhang [Sat, 4 Mar 2017 04:20:52 +0000 (04:20 +0000)]
Merge "Add missing license headers"

8 years agoImplement reporter module. 57/29657/5
Taseer Ahmed [Thu, 2 Mar 2017 16:03:24 +0000 (21:03 +0500)]
Implement reporter module.

- Add cli module
- Implement timeline outline

JIRA: QTIP-199

Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Change-Id: I487b76123a785731c356143d1ae7f3123c11f398

8 years agoAdd missing license headers 35/29735/1
Yujun Zhang [Fri, 3 Mar 2017 15:08:45 +0000 (23:08 +0800)]
Add missing license headers

Change-Id: I33cdd3b1304c695b81d2e23434a70acfcc9a21f8
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoSwitch License tool to develop branch 23/29723/3
Yujun Zhang [Fri, 3 Mar 2017 15:01:02 +0000 (23:01 +0800)]
Switch License tool to develop branch

The default branch in the remote repository has been changed to develop.

-----------auto-generated by git-subrepo-------------
git subrepo pull --branch=develop third-party/License

subrepo:
  subdir:   "third-party/License"
  merged:   "88b1440"
upstream:
  origin:   "git@github.com:openzero-zte/License.git"
  branch:   "develop"
  commit:   "88b1440"
git-subrepo:
  version:  "0.3.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "988f8c8"
-------------------------------------------------------

Change-Id: I6efbee7217e1f04febeaf5b5079ee3e7eda797cd
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agobugfix on bash scripts 39/29639/3
wu.zhihui [Thu, 2 Mar 2017 12:22:22 +0000 (20:22 +0800)]
bugfix on bash scripts

When debugging on real environment, I found these two bugs.
Local test is ok.

Change-Id: I799afe6a4c24fcdf370d761c83376ca3f2ce43d2
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoRestructure docs 07/29707/2
Yujun Zhang [Fri, 3 Mar 2017 08:00:58 +0000 (16:00 +0800)]
Restructure docs

- Following the changes as in functest[1] since the guide[2] in wiki is a bit
  out of date
- Some folders are empty for now as a placeholder

Now:
 - release
    - release notes

 - testing
    - developer
       - design
       - overview
       - requirement

    - user
       - config guide
       - user guide
       - installation
       - scenarios

[1]: https://gerrit.opnfv.org/gerrit/#/c/29151/
[2]: https://wiki.opnfv.org/display/DOC/Documentation+Guide

Change-Id: I81b4597536c8bf02a925641d71d0969f6f5537f4
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoCreate draft of report template in console 81/29681/1
Yujun Zhang [Fri, 3 Mar 2017 01:25:45 +0000 (09:25 +0800)]
Create draft of report template in console

Change-Id: Ie6e626753c6562c361542c45e8504d177d624d2a
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoRefactor dhrystone playbook 29/29629/3
wu.zhihui [Thu, 2 Mar 2017 10:40:11 +0000 (18:40 +0800)]
Refactor dhrystone playbook

- Break previous one playbook into three playbooks:
    setup.yaml: setup test environment.
    run.yaml: execute test steps
    clean.yaml: cleanup test environment to restore
    environment
  The advantage is cleaning part will never be blocked by another.
- Just do testing on remote hosts, parse logfile on localhost.
- Use ansible module instead of shell command.
- Move up all files under /ansible and remove ansible directory.
  Under /ansible, ansible package cann't be imported.

Change-Id: I43c65be23869b7d42ca769994d4decb9a012d196
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoInstall latest requirment packages 49/29549/2
wu.zhihui [Wed, 1 Mar 2017 08:52:29 +0000 (16:52 +0800)]
Install latest requirment packages

When I debug code in qtip container, I found
the version of paramiko(1.16.0) is outdated.
There is a bug based on this version.[1]

Solution:
1. Pip install qtip requirment packages with -U.
2. Update dependent packages.[2][3]

And docker image is built successfully on local.

[1] http://stackoverflow.com/questions/42029415/
paramiko-futurewarning-ctr-mode-needs-counter-parameter
[2] http://www.paramiko.org/installing.html
[3] https://cryptography.io/en/latest/installation/

Change-Id: I9d90c49f7cf3048f4717a76ffcb19dab68a687d4
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoQtip command completion. 85/29485/5
Taseer Ahmed [Tue, 28 Feb 2017 14:15:59 +0000 (19:15 +0500)]
Qtip command completion.

Change-Id: I164150acd05eacf5ccdb182280b747495d34347d
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
8 years agoMerge "refactor code related with setup env"
zhihui wu [Wed, 1 Mar 2017 01:11:22 +0000 (01:11 +0000)]
Merge "refactor code related with setup env"

8 years agorefactor code related with setup env 17/29417/4
wu.zhihui [Mon, 27 Feb 2017 08:32:55 +0000 (16:32 +0800)]
refactor code related with setup env

- modify env.py and scripts
- add unit test

Change-Id: I416cd517bdddfeb907675705009d83ecada7f87c
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoRename test case to avoid possible name conflict 25/29325/2
Yujun Zhang [Fri, 24 Feb 2017 02:08:41 +0000 (10:08 +0800)]
Rename test case to avoid possible name conflict

pytest does not allow two test file have same name despite they are in
different folder.

Change-Id: I568fe042f6dbe99df336d0ce4d6ed9c78305fe74
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoDeprecate unused drivers sample and yardstick 85/29285/2
Yujun Zhang [Thu, 23 Feb 2017 13:59:07 +0000 (21:59 +0800)]
Deprecate unused drivers sample and yardstick

- yardstick driver will not be implemented in Danube release
- sample driver is no longer continued

Change-Id: I22a86fe22b08c85b2a18ef70443d725bc4a25246
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Fix bug when no paths is given for Plan constructor"
Yujun Zhang [Mon, 27 Feb 2017 13:44:21 +0000 (13:44 +0000)]
Merge "Fix bug when no paths is given for Plan constructor"