summaryrefslogtreecommitdiffstats
path: root/qtip
AgeCommit message (Collapse)AuthorFilesLines
2017-04-07bugfix in regex of ssl.zhihui wu1-4/+4
Change-Id: Ifa5c958bc87d241b6c5c61765d30b0735ea51269 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn> (cherry picked from commit 416fced9589281019e1646ad3990a9e6a160faf7)
2017-03-28Merge "Add unit tests for List and get in API." into stable/danubeYujun Zhang6-89/+58
2017-03-26Merge "bugfix: regex for dpi" into stable/danubeYujun Zhang1-2/+2
2017-03-25bugfix: regex for dpiwu.zhihui1-2/+2
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)
2017-03-24Integrate cli, runner and reporter.Taseer6-17/+28
- 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)
2017-03-23Add unit tests for List and get in API.akhilbatra8986-89/+58
- 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)
2017-03-23Add missing license headersYujun Zhang2-1/+10
Change-Id: Idd76277c84a6afc9a545d6e2bba39aae6e7f5d71 Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn> (cherry picked from commit 29df737b48ccf31f555d0e4c08a65e14ecb66331)
2017-03-22Merge "provide get_one_exceptions to unify get_xx process" into stable/danubeYujun Zhang2-9/+22
2017-03-21Merge "White space control in report." into stable/danubeYujun Zhang1-3/+2
2017-03-21Merge "correct a mistake for os.getenv()" into stable/danubeYujun Zhang1-1/+1
2017-03-21White space control in report.Taseer1-3/+2
- 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)
2017-03-21correct a mistake for os.getenv()wu.zhihui1-1/+1
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)
2017-03-21provide get_one_exceptions to unify get_xx processSerenaFeng2-9/+22
add refactor get_metric() Change-Id: I972c77e63a654eeb286c573d75efe842b2887c1d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 9f87878becc36b19110e151e802180aa5f7fb305)
2017-03-21Refactor reporter moduleTaseer9-35/+108
- 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)
2017-03-21mistaken delete usefuel public keywu.zhihui2-8/+14
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)
2017-03-16Implement 'show' command.Taseer7-3/+45
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com> (cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956)
2017-03-15Merge "optimize console info" into stable/danubeYujun Zhang2-21/+18
2017-03-15optimize console infowu.zhihui2-22/+19
- 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)
2017-03-15add the cleanup step in runner.pywu.zhihui4-9/+27
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)
2017-03-15Merge "Implement the workflow of compute qpi" into stable/danubezhihui wu2-18/+137
2017-03-15Merge "parse benchmark result from logfile" into stable/danubezhihui wu3-2/+195
2017-03-15Merge "env cleanup" into stable/danubezhihui wu2-0/+28
2017-03-14Implement the workflow of compute qpiwu.zhihui2-18/+137
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)
2017-03-14parse benchmark result from logfilewu.zhihui3-2/+195
- 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)
2017-03-14Some modifications for ansible playbookwu.zhihui3-5/+13
- 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)
2017-03-13Merge "Implement 'list' command." into stable/danubezhihui wu4-6/+36
2017-03-11env cleanupwu.zhihui2-0/+28
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)
2017-03-11Implement Retrieval of plans, QPIs, and metricsakhilbatra8985-31/+173
- 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)
2017-03-11Implement 'list' command.Taseer4-6/+36
- 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)
2017-03-10Merge "modify logfile directory structure"zhihui wu13-72/+54
2017-03-10Merge "Add basic swagger specifications and corresponding controllers"Yujun Zhang5-2/+278
2017-03-10modify logfile directory structurewu.zhihui13-72/+54
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>
2017-03-09Add basic swagger specifications and corresponding controllersakhilbatra8985-2/+278
- 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>
2017-03-09Merge "Implement ansible driver"zhihui wu3-14/+143
2017-03-09Merge "Playbooks for unixbench"zhihui wu6-81/+118
2017-03-09Merge "playbook for ramspeed"zhihui wu3-0/+137
2017-03-09Merge "Refactor openssl playbook"zhihui wu3-0/+159
2017-03-08Merge "Remove hardcode from some playbooks"zhihui wu3-3/+9
2017-03-08Merge "Refactor dpi playbook"zhihui wu4-0/+172
2017-03-08Implement ansible driverwu.zhihui3-14/+143
- 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>
2017-03-08Refactor openssl playbookwu.zhihui3-0/+159
Local test is ok. Change-Id: I2800e364320697d436ed7b9202cc1baa3a893503 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Playbooks for unixbenchwu.zhihui6-81/+118
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>
2017-03-08playbook for ramspeedwu.zhihui3-0/+137
These playbooks are successfully executed on Local. Change-Id: Ie22ecb9b66364e6edf6ae0f59d0524603c4d46a9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Refactor dpi playbookwu.zhihui4-0/+172
Local test is ok. Change-Id: I22a333eae940433a1ca228e6ee7f570b8d0c0fc9 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-08Remove hardcode from some playbookswu.zhihui3-3/+9
Remove hardcode ($HOME/qtip_result) from these three playbooks. Change-Id: Iefcf0d4c6caf6be6b6888ff6abe4c36621666129 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-03-07Merge "rework env.py"zhihui wu1-45/+132
2017-03-07Merge "Implement debug option"Yujun Zhang1-21/+8
2017-03-07Merge "Implement reporter module."Yujun Zhang3-5/+39
2017-03-07Merge "Create draft of report template in console"Yujun Zhang1-0/+22
2017-03-04rework env.pywu.zhihui1-45/+132
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>