qtip.git
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 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"

8 years agoMerge "Add reporter PoC"
Yujun Zhang [Mon, 27 Feb 2017 03:40:33 +0000 (03:40 +0000)]
Merge "Add reporter PoC"

8 years agoMerge "Refactoring qtip.runner"
Yujun Zhang [Mon, 27 Feb 2017 03:40:06 +0000 (03:40 +0000)]
Merge "Refactoring qtip.runner"

8 years agoFix bug when no paths is given for Plan constructor 77/29277/3
Yujun Zhang [Thu, 23 Feb 2017 12:51:38 +0000 (20:51 +0800)]
Fix bug when no paths is given for Plan constructor

FileLoader was trying to initialize abspath by finding a matched
name from abspath which will lead to an exception. Use default
paths of class instead.

Change-Id: I8ca2122e97edd734aa68b4c6b12196960842313b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Addition of detail viewing command."
Yujun Zhang [Thu, 23 Feb 2017 11:01:09 +0000 (11:01 +0000)]
Merge "Addition of detail viewing command."

8 years agoMerge "Update tox to produce coverage report"
zhihui wu [Thu, 23 Feb 2017 07:36:26 +0000 (07:36 +0000)]
Merge "Update tox to produce coverage report"

8 years agoMerge "add logger's unittest"
Yujun Zhang [Thu, 23 Feb 2017 06:11:27 +0000 (06:11 +0000)]
Merge "add logger's unittest"

8 years agoMerge "refactor logger to make unittest possible"
zhihui wu [Thu, 23 Feb 2017 05:55:02 +0000 (05:55 +0000)]
Merge "refactor logger to make unittest possible"

8 years agoMerge "guides for openssl issue in macOS"
zhihui wu [Thu, 23 Feb 2017 05:50:12 +0000 (05:50 +0000)]
Merge "guides for openssl issue in macOS"

8 years agoadd logger's unittest 09/29209/9
SerenaFeng [Wed, 22 Feb 2017 09:31:10 +0000 (17:31 +0800)]
add logger's unittest

Change-Id: I9a7d3c6afeff5432017f5bfd4a961a719c93c086
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoguides for openssl issue in macOS 37/29237/1
Julien [Wed, 22 Feb 2017 15:36:40 +0000 (23:36 +0800)]
guides for openssl issue in macOS

Change-Id: I61454e35db30050a4473ab9058ddcd9c7b44fcbe
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
8 years agorefactor logger to make unittest possible 13/29213/2
SerenaFeng [Wed, 22 Feb 2017 10:33:35 +0000 (18:33 +0800)]
refactor logger to make unittest possible

Change-Id: Ibb630ea34701e454aabf78821f4c40781d2607ed
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
8 years agoMerge "bugfix for grep"
zhihui wu [Wed, 22 Feb 2017 09:05:52 +0000 (09:05 +0000)]
Merge "bugfix for grep"

8 years agoAdd reporter PoC 03/29203/2
Yujun Zhang [Wed, 22 Feb 2017 08:57:48 +0000 (16:57 +0800)]
Add reporter PoC

Change-Id: I5134a0d95d75fcb3a75267a5f20b4ace8638156a
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Cover also tests folder"
Yujun Zhang [Wed, 22 Feb 2017 07:23:45 +0000 (07:23 +0000)]
Merge "Cover also tests folder"

8 years agoMerge "Add Api Basic framework skeleton"
Yujun Zhang [Wed, 22 Feb 2017 07:19:48 +0000 (07:19 +0000)]
Merge "Add Api Basic framework skeleton"

8 years agobugfix for grep 99/29199/2
wu.zhihui [Wed, 22 Feb 2017 07:16:37 +0000 (15:16 +0800)]
bugfix for grep

Change-Id: I1474a4e4f5884f17cbf3e6d62fae7e743921aae1
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoUpdate tox to produce coverage report 97/29197/1
Julien [Wed, 22 Feb 2017 06:20:00 +0000 (14:20 +0800)]
Update tox to produce coverage report

JIRA:QTIP-204

Change-Id: If77558ed2f6e454b4abebdbb185755925d91c963
Signed-off-by: Julien <zhang.jun3g@zte.com.cn>
8 years agoAdd Api Basic framework skeleton 35/29035/3
Akhil Batra [Sun, 19 Feb 2017 13:51:15 +0000 (19:21 +0530)]
Add Api Basic framework skeleton

- Requirements updated to remove flask and include connexion
- Api specifications will be added to specs file in swagger/
- controllers module will handle all requests and responses

JIRA: QTIP-213

Change-Id: Icfec15ddeff7d53c53ce64910ae2bddd4fc0f260
Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
8 years agoRefactoring qtip.runner 93/29193/1
Yujun Zhang [Wed, 22 Feb 2017 03:41:07 +0000 (11:41 +0800)]
Refactoring qtip.runner

- deprecate current PoC
- cover it with test

Change-Id: Ia1a43c195781fdd09e7d925ed3bf4509f226916f
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Refactoring qtip.base.error"
Yujun Zhang [Wed, 22 Feb 2017 03:08:21 +0000 (03:08 +0000)]
Merge "Refactoring qtip.base.error"

8 years agoAddition of detail viewing command. 85/29185/3
Taseer Ahmed [Wed, 22 Feb 2017 01:45:45 +0000 (06:45 +0500)]
Addition of detail viewing command.

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

8 years agoMerge "Implement the collector regex for system info logfile."
zhihui wu [Tue, 21 Feb 2017 11:49:43 +0000 (11:49 +0000)]
Merge "Implement the collector regex for system info logfile."

8 years agoMerge "Include third party script for license checking and amending"
Yujun Zhang [Tue, 21 Feb 2017 09:00:03 +0000 (09:00 +0000)]
Merge "Include third party script for license checking and amending"

8 years agoRefactoring qtip.base.error 05/29005/7
Yujun Zhang [Sat, 18 Feb 2017 04:14:43 +0000 (12:14 +0800)]
Refactoring qtip.base.error

- move method make_tbd to qtip.util.dev
- add suffix Error to follow the Python naming convention
- rename arguments of NotFoundError to make it generic

Change-Id: I81e406b7fa10c3b40004434f6a9c2e7bbf7603ee
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoCover also tests folder 51/29051/3
Yujun Zhang [Mon, 20 Feb 2017 07:32:43 +0000 (15:32 +0800)]
Cover also tests folder

This is to ensure all test code is reached to detect bugs like #28955 [1].
The loop of in the tests were not reached before the fix.

[1]: https://gerrit.opnfv.org/gerrit/#/c/28955/

Change-Id: I2f9e52cf7df1b94c9412f6edb6ce6f9e137d9b54
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Move coverage config to .coveragerc"
Yujun Zhang [Tue, 21 Feb 2017 08:48:17 +0000 (08:48 +0000)]
Merge "Move coverage config to .coveragerc"

8 years agoImplement the collector regex for system info logfile. 61/29061/6
wu.zhihui [Mon, 20 Feb 2017 07:59:00 +0000 (15:59 +0800)]
Implement the collector regex for system info logfile.

I commented sone lines. Because these part can't be supported
well by grep_in_file().

Change-Id: Ifc0ab1b6f40180e40c150b2c80eeaa6c72274ac9
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMove coverage config to .coveragerc 31/29031/7
Yujun Zhang [Sat, 18 Feb 2017 17:45:32 +0000 (01:45 +0800)]
Move coverage config to .coveragerc

.coveragerc will be used by tox, pytest, PyCharm and etc

Change-Id: I1f128231cda5f3ebffff9e99b1de9134c78fcc00
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agosupport multi-line search in grep parser 53/29053/8
wu.zhihui [Tue, 21 Feb 2017 08:35:41 +0000 (16:35 +0800)]
support multi-line search in grep parser

use finditer with multiline mode

JIRA: QTIP-211

Change-Id: Ib8854f749a0258f6b6775be9b80573f6ac8e47db
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoInclude third party script for license checking and amending 19/29119/2
Yujun Zhang [Tue, 21 Feb 2017 08:08:42 +0000 (16:08 +0800)]
Include third party script for license checking and amending

The following commit message are generated automatically by git-subrepo
-----------------------------------------------------------------------------
git subrepo clone git@github.com:openzero-zte/License.git third-party/License

subrepo:
  subdir:   "third-party/License"
  merged:   "61489da"
upstream:
  origin:   "git@github.com:openzero-zte/License.git"
  branch:   "master"
  commit:   "61489da"
git-subrepo:
  version:  "0.3.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "988f8c8"
-----------------------------------------------------------------------------
Change-Id: I8eab86a8ce3f26995af3e3535f31f361b4826a8b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoAdd licence header according to OPNFV contribution guidelines[1] by script[2] 29/29029/3
Yujun Zhang [Tue, 21 Feb 2017 07:22:44 +0000 (15:22 +0800)]
Add licence header according to OPNFV contribution guidelines[1] by script[2]

[1]: https://wiki.opnfv.org/display/DEV/Contribution+Guidelines
[2]: https://github.com/Justin-chi/Lab/blob/master/add_license.sh

Change-Id: I5b77394a104857bb4ee9addbe973ed239b7a59f3
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Migrate to Danube document guide"
Yujun Zhang [Tue, 21 Feb 2017 06:35:35 +0000 (06:35 +0000)]
Merge "Migrate to Danube document guide"

8 years agoMerge "Fix error in loader test"
Yujun Zhang [Tue, 21 Feb 2017 06:33:43 +0000 (06:33 +0000)]
Merge "Fix error in loader test"

8 years agoMerge "Clean up tests folder"
Yujun Zhang [Tue, 21 Feb 2017 06:33:34 +0000 (06:33 +0000)]
Merge "Clean up tests folder"

8 years agoMerge "Move api server to legacy code."
zhihui wu [Tue, 21 Feb 2017 01:28:51 +0000 (01:28 +0000)]
Merge "Move api server to legacy code."

8 years agoMerge "Deprecate options not sourceable to environment via Python. JIRA: QTIP-205"
Yujun Zhang [Mon, 20 Feb 2017 15:11:49 +0000 (15:11 +0000)]
Merge "Deprecate options not sourceable to environment via Python. JIRA: QTIP-205"

8 years agoMerge "code refactor: ansible playbook about system info"
zhihui wu [Mon, 20 Feb 2017 02:52:13 +0000 (02:52 +0000)]
Merge "code refactor: ansible playbook about system info"

8 years agocode refactor: ansible playbook about system info 21/28021/8
wu.zhihui [Sat, 4 Feb 2017 04:22:19 +0000 (12:22 +0800)]
code refactor: ansible playbook about system info

- use module yum and apt instead of shell command
- break sys_info_pbook.yaml into some small playbooks

Change-Id: I33b36fa826c0e668e4a74846ad4da7f4a245a33f
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoMove api server to legacy code. 11/29011/3
Akhil Batra [Sat, 18 Feb 2017 10:15:02 +0000 (15:45 +0530)]
Move api server to legacy code.

Change-Id: Idda8a48bc8cecac5aff4a1f99b8e4e0b58855fff
Signed-off-by: Akhil Batra <akhil.batra@research.iiit.ac.in>
8 years agoFix error in loader test 55/28955/3
Yujun Zhang [Fri, 17 Feb 2017 13:52:02 +0000 (21:52 +0800)]
Fix error in loader test

Change-Id: Idac7d0ec77941974a5f93108fd5f450eef05a5ad
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoClean up tests folder 29/28929/2
Yujun Zhang [Fri, 17 Feb 2017 10:39:28 +0000 (18:39 +0800)]
Clean up tests folder

- remove __init__.py as recommended in pytest docs[1]
- rename cli test files for a consistent naming style
- remove empty test files

[1]: http://docs.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules

Change-Id: Idfb5d8a8fb7a590ef988a761991b8e313089e9bc
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMigrate to Danube document guide 25/29025/1
Yujun Zhang [Sat, 18 Feb 2017 15:50:47 +0000 (23:50 +0800)]
Migrate to Danube document guide

https://wiki.opnfv.org/display/DOC

Change-Id: I85535f158022fe0aeb7c888273dc81fbbf4ddeda
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoDeprecate options not sourceable to environment via Python. 81/28781/2
Taseer Ahmed [Thu, 16 Feb 2017 06:42:47 +0000 (11:42 +0500)]
Deprecate options not sourceable to environment via Python.
JIRA: QTIP-205

Change-Id: I991ba64e95227fd61b5809393439ef5e7fe05be2
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
8 years agoImplement logfile collector and grep parser 51/28051/10
Yujun Zhang [Sun, 5 Feb 2017 04:24:30 +0000 (12:24 +0800)]
Implement logfile collector and grep parser

JIRA: QTIP-207
JIRA: QTIP-208
Change-Id: Icc14d3097fb305e59df716636ef87504490c9d1b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoRefactoring collector initialization in plan loader 25/28325/3
Yujun Zhang [Thu, 9 Feb 2017 02:12:39 +0000 (10:12 +0800)]
Refactoring collector initialization in plan loader

- move ClassProps to module
- collectors should be array in plan definition

Change-Id: I37d85dbc977c91aa1bb81de45b5e1c41660e6d1f
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoAdd test for yaml_file loader 31/28631/2
Yujun Zhang [Tue, 14 Feb 2017 07:20:16 +0000 (15:20 +0800)]
Add test for yaml_file loader

Change-Id: I997ceeed17bd35889f6b0f3465bbe75df256b71e
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
8 years agoMerge "Add test coverage to contributing guide"
Yujun Zhang [Tue, 14 Feb 2017 22:54:27 +0000 (22:54 +0000)]
Merge "Add test coverage to contributing guide"