yardstick.git
8 years agorunning Parser Yang-to-Tosca module as a tool 39/5339/7
kubi [Tue, 29 Dec 2015 03:04:20 +0000 (11:04 +0800)]
running Parser Yang-to-Tosca module as a tool

with jnon and fatih's help, new docker image has been uploaded
so this part is about parser verify
validating output against expected outcome.

Change-Id: If50d241a5338888f14fd11a752dc72678e0c569b
JIRA:YARDSTICK-224
Signed-off-by: kubi <jean.gaoliang@huawei.com>
8 years agoAdd TC037 to POD test suites 45/5945/1
Jo¶rgen Karlsson [Fri, 8 Jan 2016 15:05:22 +0000 (16:05 +0100)]
Add TC037 to POD test suites

JIRA: YARDSTICK-213
Change-Id: I55ff36b02a0d0e0334505d68d361b8a14d36063c
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agosupport for ipv6 27/5727/3
kubi [Thu, 31 Dec 2015 06:38:49 +0000 (14:38 +0800)]
support for ipv6

JIRA:YARDSTICK-187

Change-Id: I1cecd400b4449a09d22d43f4a42e889f00dd4fe7
Signed-off-by: kubi <jean.gaoliang@huawei.com>
8 years agosupport lxml for parser in docker container 57/5857/2
kubi [Fri, 8 Jan 2016 04:36:14 +0000 (12:36 +0800)]
support lxml for parser in docker container

this is part1 of patch, this part is to define dockefile,and wait a docker image to be uploaded
JIRA:YARDSTICK-224
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Change-Id: Ia206c54ab2d964a94753abef0767b74d26259081

8 years agoupdate docs build dir names in .gitignore 51/5851/1
Ryota MIBU [Fri, 8 Jan 2016 02:45:15 +0000 (11:45 +0900)]
update docs build dir names in .gitignore

Change-Id: Id4b1e2e87ac51b67f392417357b2693c76def457
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agoRename folders in yardstick/docs 89/5789/1
Ana C [Thu, 7 Jan 2016 14:00:56 +0000 (15:00 +0100)]
Rename folders in yardstick/docs

Adapt the naming of the folders under yardstick/docs to the naming adopted by
the release documentation defined by opnfvdocs.

JIRA: -

Change-Id: Icc57720d585abbbf7252bcbf76e2f2a403cb1732
Signed-off-by: Ana C <ana.cunha@ericsson.com>
8 years agoFix description for TC037 and TC038 83/5783/1
Ana C [Thu, 7 Jan 2016 13:00:26 +0000 (14:00 +0100)]
Fix description for TC037 and TC038

Update rst files for TC037 and TC038 for latest template format.
Added TC037 and TC038 to index of test cases in 03-list-of-tcs.

JIRA: -

Change-Id: I32657b564ff1c393f8048a74e676b3f5791d6d0d
Signed-by: Ana C <ana.cunha@ericsson.com>
8 years agoFix glance yardstick-image cmd in installation doc 09/5309/2
Kristian Hunt [Mon, 28 Dec 2015 12:26:10 +0000 (14:26 +0200)]
Fix glance yardstick-image cmd in installation doc

Glance image-create command should use --os-image-api-version 1 flag
for the is-public argument.

JIRA: YARDSTICK-68

Change-Id: I43a60a7dac186ae7c586aa98b6e5de9821caee60
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
8 years agoAdd test case description and task file for TC038 89/5489/3
Jo¶rgen Karlsson [Mon, 4 Jan 2016 13:30:10 +0000 (14:30 +0100)]
Add test case description and task file for TC038

JIRA: YARDSTICK-214

Change-Id: I3a2358e8c36755a684f09524bd6fc8af9bf43f60
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdd test case description and task file for TC037 81/5481/5
Jo¶rgen Karlsson [Mon, 4 Jan 2016 12:53:36 +0000 (13:53 +0100)]
Add test case description and task file for TC037

JIRA: YARDSTICK-213

Change-Id: I3f1f521da6a824c96cbc8712a098c61ff6b0540d
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoStructure test case descriptions 81/5281/20
Ana C [Sat, 26 Dec 2015 14:50:13 +0000 (15:50 +0100)]
Structure test case descriptions

This commit structures the test case descriptions.

The file index.rst lists the subsequent chapters.
01-introduction.rst contains an overview of the project and deliverables.
02-methodology.rst describes the methodology for the generic test cases.
03-list-of-tcs.rst contains a list of merged generic test cases and a
sub-chapter for the feature test cases.
Glossary extracts definitions and abbreviations.

TC001, TC002, TC008, TC009, TC010, TC012 were adapted to work for pdf.
Template testcase_description_v2_template.rst was adapted to work for pdf.

Change-Id: Ia11e27e5d508f1a784e2a412b50739e32b13797f
Signed-off-by: Ana C <ana.cunha@ericsson.com>
8 years agoInfluxDB dispatcher add more tags 21/5721/1
QiLiang [Wed, 30 Dec 2015 14:58:53 +0000 (14:58 +0000)]
InfluxDB dispatcher add more tags

- add runner_id tag
- add test case name tag
- add task_id tag

JIRA: YARDSTICK-212

Change-Id: I75c27e23942a6e2189019e94bfe8026a5fd67621
Signed-off-by: QiLiang <liangqi1@huawei.com>
Conflicts:
yardstick/dispatcher/influxdb.py

8 years agoInitial InfluxDB dispatcher 41/5141/9
QiLiang [Wed, 23 Dec 2015 14:13:15 +0000 (22:13 +0800)]
Initial InfluxDB dispatcher

Supports:
    - Basic influxDB write with timestamp
    - Add general result format func
    - Add UT

TODO:
    - refine database schema (e.g. add more tags) plan in another patch

JIRA: YARDSTICK-212

Change-Id: I1526568bbd850f1343135420ec59ed1b833bb99f
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoFix ApexLake setup 95/5595/2
Vincenzo Riccobene [Tue, 5 Jan 2016 16:53:43 +0000 (16:53 +0000)]
Fix ApexLake setup

Changes the directories where to store apexlake data in order to
allow a non super user to run the setup.

JIRA: YARDSTICK-35

Change-Id: I871b2ab793183887c86666bfe2241e3c26b4f427
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoFix some small things in ApexLake tests 89/5589/4
Vincenzo Riccobene [Tue, 5 Jan 2016 15:28:05 +0000 (15:28 +0000)]
Fix some small things in ApexLake tests

JIRA: YARDSTICK-35

Change-Id: I280365dd64d2f6c00befb984acd0d4c9ca2645bd
Signed-off-by: Vincenzo Riccobene <vincenzo.m.riccobene@intel.com>
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd yardstick daily suite config files for CI PODs 85/5685/1
Fatih Degirmenci [Wed, 6 Jan 2016 21:26:30 +0000 (22:26 +0100)]
Add yardstick daily suite config files for CI PODs

opnfv-jump-1: apex stable/brahmaputra branch
intel-pod5: joid stable/brahmaputra branch
intel-pod2: apex master branch
intel-pod6: joid master branch
intel-pod8: compass master branch

Change-Id: Ia659e10525863ee11854a266df58449c625c7f7c
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
8 years agoAdd test case description and task file for TC019 75/4175/4
wym_libra [Thu, 10 Dec 2015 07:09:59 +0000 (15:09 +0800)]
Add test case description and task file for TC019

Add test case description for Control node-OpenStack service down (TC019)
and test case .yaml task file.

** Please note that the SLA value has not yet been determined. **

JIRA: YARDSTICK-135

Change-Id: Id512159034929dc197d2c7fdf6cc672ecddfb996
Signed-off-by: wym_libra <yimin.wang@huawei.com>
8 years agoRemove data manager from ApexLake 75/5475/4
Vincenzo Riccobene [Mon, 4 Jan 2016 11:18:01 +0000 (11:18 +0000)]
Remove data manager from ApexLake

Since the InfluxBD dispatcher is used to store the data, the apexlake data manager is not required anymore

JIRA: YARDSTICK-35

Change-Id: I8d85161814d83a991ee149532af0437e9c248445
Signed-off-by: Vincenzo Riccobene <vincenzo.m.riccobene@intel.com>
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd test suite file for ZTE-NJ LAB. 27/5427/1
wu.zhihui [Mon, 4 Jan 2016 03:58:28 +0000 (11:58 +0800)]
Add test suite file for ZTE-NJ LAB.

JIRA: yardstick-210

Change-Id: Ib888b654e742761a8be1b263f643950ea02380f8
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
8 years agoAdd Dummy context and scenario type 85/5385/1
QiLiang [Thu, 31 Dec 2015 02:11:21 +0000 (02:11 +0000)]
Add Dummy context and scenario type

Dummy Context Usage:

- if no context specified in the task file then automatically use
  Dummy Context

- or specify the context with type Dummy in the task file, like

    context:
      type: Dummy

Note: context without type name default use Heat Context.
      (e.g. samples/fio.yaml)

JIRA: -

Change-Id: I7f798a7260bdd6ac24902e2c835a3b121319fd8c
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoFix small things for integration of ApexLake with Yardstick 97/5197/4
Vincenzo Riccobene [Thu, 24 Dec 2015 13:21:51 +0000 (13:21 +0000)]
Fix small things for integration of ApexLake with Yardstick

Changes small things required for the integration of ApexLake with Yardstick

JIRA: YARDSTICK-35

Change-Id: I6f92d738cb80e34108b76f900382e9c05ecabe70
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoComplete all the code and files required to run ApexLake 01/5201/4
Vincenzo Riccobene [Thu, 24 Dec 2015 14:08:58 +0000 (14:08 +0000)]
Complete all the code and files required to run ApexLake

Inludes the last files required by ApexLake for a complete execution.

JIRA: YARDSTICK-35

Change-Id: I4315b8081554c8fad98c8fa72f9e2796ecb9360b
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoadd scenario and sample file for Unixbench. 71/4571/6
kubi [Mon, 14 Dec 2015 11:51:45 +0000 (19:51 +0800)]
add scenario and sample file for Unixbench.

JIRA:YARDSTICK-184

Change-Id: Iedd4a3708e08305b1c8fa7a8e1766ceef03ab8bb
Signed-off-by: kubi <jean.gaoliang@huawei.com>
8 years agoAdd some other tests to ApexLake 43/5143/4
Vincenzo Riccobene [Wed, 23 Dec 2015 15:14:52 +0000 (15:14 +0000)]
Add some other tests to ApexLake

Include some other tests to reach the required coverage

JIRA: YARDSTICK-35

Change-Id: Ie47b0ca9451d4dcc0f5e31ba98f8c38923689475
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd Benchmarking Unit to ApexLake 39/5139/5
Vincenzo Riccobene [Wed, 23 Dec 2015 13:47:07 +0000 (13:47 +0000)]
Add Benchmarking Unit to ApexLake

Includes benchmarking unit to run benchmarks in ApexLake
Also includes tests.

JIRA: YARDSTICK-35

Change-Id: I67c62efd6cbe0883963e8c4ddc86d003b1d355ac
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd Deployment Unit to ApexLake 37/5137/3
Vincenzo Riccobene [Wed, 23 Dec 2015 13:26:15 +0000 (13:26 +0000)]
Add Deployment Unit to ApexLake

Includes the deployment unit module used for deployment by Apexlake
Also includes tests

JIRA: YARDSTICK-35

Change-Id: Ia5c89f3cd03d53b1fc4e418215955fd91aff9d03
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd API to configure and execute ApexLake 87/4887/5
Vincenzo Riccobene [Fri, 18 Dec 2015 16:03:29 +0000 (16:03 +0000)]
Add API to configure and execute ApexLake

Add python module providing API for Yardstick to configure and execute
ApexLake and the test cases for the virtual Traffic Classifier.
Includes documentation.

JIRA: YARDSTICK-215

Change-Id: I87af59c715d789ac78c836123e9ed3d8e0036eec
Signed-off-by: Vincenzo Riccobene <vincenzo.m.riccobene@intel.com>
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd test case description and task file for TC010 91/4791/4
Kristian Hunt [Thu, 10 Dec 2015 13:35:59 +0000 (14:35 +0100)]
Add test case description and task file for TC010

Add test case description for Memory Latency (TC010) and test case
.yaml task file.

JIRA: YARDSTICK-94

Change-Id: If7fb120868c9901fe097f310aa249e1fbc8a94ee
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
8 years agoFix lmbench memory read latency stop size 79/4779/3
Kristian Hunt [Thu, 17 Dec 2015 11:15:32 +0000 (12:15 +0100)]
Fix lmbench memory read latency stop size

Stop size parameter's type should be float to allow for performing
measurements on only L1 and L2 cache if needed.

JIRA: -

Change-Id: Ibc4d052c343e9dcccf6101c6c949172bb5a0f9e1
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
8 years agoTo avoid breaking tests when monitor is set 05/4805/4
Per Holmgren [Thu, 17 Dec 2015 15:15:50 +0000 (16:15 +0100)]
To avoid breaking tests when monitor is set

Two runners, Arithemic and Sequence, broke running tests
even if SLA "monitor" was set. Changed these two runners
to work in similar fashion as the other two, i.e. that only
None can break. "assert" still asserts, and "monitor"
just logs but then continues.

Change-Id: Ic441761cad8747e5ecfcd0babe719c1aa23981e7
JIRA: -

8 years agoAdd yardstick daily task suite for Ericsson POD2 49/4949/1
Fatih Degirmenci [Mon, 21 Dec 2015 11:54:23 +0000 (12:54 +0100)]
Add yardstick daily task suite for Ericsson POD2

Change-Id: Ic0f7261dc07eb38d014a8790ac13e5310ec4ef8a
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
8 years agoMerge "Rewrite the HA test case (1)"
qi liang [Mon, 21 Dec 2015 01:57:03 +0000 (01:57 +0000)]
Merge "Rewrite the HA test case (1)"

8 years agoAdds new Yardstick test case TC009, Network Performance, Packet Loss 45/4445/4
Per Holmgren [Fri, 11 Dec 2015 12:49:55 +0000 (13:49 +0100)]
Adds new Yardstick test case TC009, Network Performance, Packet Loss

Similar to Yardstick TC001. Main difference is that each packet size
is run 10 times before next packet size.

JIRA: YARDSTICK-87

Change-Id: If0f59590dff9c8e5b86760667f01a373afe8aff0

8 years agoAdds Yardstick test case TC008, Network Performance Extended Tests 43/4443/4
Per Holmgren [Fri, 11 Dec 2015 12:12:04 +0000 (13:12 +0100)]
Adds Yardstick test case TC008, Network Performance Extended Tests

New test case using pktgen tool. Based on TC001, but with additional
packet sizes and more repetitions of each test combination,
respectively. Test case takes approx.3 hours to complete.

Change-Id: Iba2de5efa33d6e2c960772fa5345595f6d7ab4e6
JIRA: YARDSTICK-80

8 years agoAdd test case description and task file for TC025 33/4833/2
wym_libra [Fri, 18 Dec 2015 08:09:50 +0000 (16:09 +0800)]
Add test case description and task file for TC025

Add test case description for HA of OpenStack Controll Node abnormally
shutdown (TC025) and the sample  .yaml task file.

** Please note that the SLA value has not yet been determined. **

JIRA: YARDSTICK-135

Change-Id: I70f1afb0c9cfa5446aac08b7b13e543a9ec20898
Signed-off-by: wym_libra <yimin.wang@huawei.com>
8 years agoChanges Arithmetic runner to accept several step parameters 61/4761/3
Per Holmgren [Thu, 17 Dec 2015 08:29:21 +0000 (09:29 +0100)]
Changes Arithmetic runner to accept several step parameters

The Arithmetic runner is modified to accept several named
parameters to iterate over in each scenario. Possible to chose
either to iterate through them in a nested-for-loop fashion
(default) or in a tupled loop fashion (combine i:th element
of each input). Still possible to only provide one parameter
to step/iterate over, as before.

All existing yaml files with Arithmetic types have been modified
to run the tests as before, and to provide same results as before
this change. The only change is in sample file pktgen.yaml to
provide a valid example of how to use this modification.

It is also possible to step backwards, i.e. start > stop, with
a negative step parameter value.

(Noticed that tests are terminated when there is SLA error
problems in "monitor" mode. Should be fixed in another commit)

Change-Id: Ib2ebd24b71dd55d6817cee8e67026a0dd13a9e17
JIRA: -

8 years agoAdd utility tools to ApexLake 85/4685/4
Vincenzo Riccobene [Wed, 16 Dec 2015 15:14:21 +0000 (15:14 +0000)]
Add utility tools to ApexLake

Add utility tools and related tests to ApexLake
Fix also small things in all tests

JIRA: YARDSTICK-35

Change-Id: I76ab79b3b7ba3b48633517477b262f5bcdc743f0
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoRewrite the HA test case (1) 07/4007/4
wym_libra [Mon, 7 Dec 2015 08:02:18 +0000 (16:02 +0800)]
Rewrite the HA test case (1)

refactor the attacker implement.
1) BaseAttacker is added
2) a simple attacker named "kill-process" inherit the BaseAttacker
3) serviceha.py selects an attacker through the BaseAttacker by attacker name

JIRA: YARDSTICK-149

Change-Id: Ib718d5edc6b5e14bc3ea0592e0146468ff70b43e
Signed-off-by: wym_libra <yimin.wang@huawei.com>
8 years agoAdd TC001 and TC012 to POD test suites 09/4609/2
Jo¶rgen Karlsson [Tue, 15 Dec 2015 18:01:36 +0000 (19:01 +0100)]
Add TC001 and TC012 to POD test suites

Change-Id: I39d589bfc0652d51b7e6d9e139b83160bf7f3692
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdapt documentation to latest guidelines 53/4353/8
Ana C [Fri, 11 Dec 2015 14:56:08 +0000 (15:56 +0100)]
Adapt documentation to latest guidelines

Adapt Yardstick documentation according to the latest guidelines from the
Releng project.

The only change in test case description TC001 and TC002 is to remove logo.
The same for the test case description v2 template.

The previous version of test case description is deleted from repo.

The Yardstick_task_template is edited to keep line lenght 80 char.

This commit also adds index for docs/yardstick and for
docs/user_guides/framework.

The overview for the vTC .rst file has been fixed to enable the .pdf
generation.

Change-Id: Ib6480c3c29ce0f0ee22c9ad717439f6a293ab842
Signed-off-by: Ana C <ana.cunha@ericsson.com>
8 years agoAdd run_in_background attribute to scenarios 57/4357/8
Jo¶rgen Karlsson [Fri, 11 Dec 2015 14:50:22 +0000 (15:50 +0100)]
Add run_in_background attribute to scenarios

This change adds the possibility to run scenarios as "background
tasks".

Background scenarios/tasks:
  - are started before all "normal scenarios"
  - runs in parallel with "normal scenarios"
  - terminates when all "normal scenarios" have completed
    their tasks

They are intended as a way to perform background tasks, e.g. collect
data such as cpuload etc, in parallel with the execution of normal
benchmarking scenarios.

Note that we already have the 'run_in_parallel' attribute but
this attribute has a couple of issues and do not solve all the
uses cases.

Change-Id: I9c5230bfdbbb66030f57b658ce1db87ff2c2d62b
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdd test case description and task file for TC012 71/3971/5
Kristian Hunt [Mon, 9 Nov 2015 15:24:03 +0000 (16:24 +0100)]
Add test case description and task file for TC012

Add test case description for Memory Bandwidth (TC012) and test case
.yaml task file.

JIRA: YARDSTICK-113

Change-Id: I6f2b0bb8c920f3ece3a41bac744cc1ec1fd35cbc
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
8 years agoAdd support to the test case required by YARDSTICK-146 89/4389/4
Vincenzo Riccobene [Fri, 11 Dec 2015 22:00:14 +0000 (22:00 +0000)]
Add support to the test case required by YARDSTICK-146

Add supporto to ApexLake for the test case to validate the vTC instantiation on OpenStack

JIRA: YARDSTICK-146

Change-Id: Ib154bac19ec1c32a508682235478a3c7fc530299
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd support to the test case required by YARDSTICK-145 87/4387/6
Vincenzo Riccobene [Fri, 11 Dec 2015 21:42:20 +0000 (21:42 +0000)]
Add support to the test case required by YARDSTICK-145

Add support to ApexLake to the test case that validates the instantiation of the virtual Traffic Classifier within OpenStack

JIRA: YARDSTICK-145

Change-Id: I533712de36de4e40fdec15b2be2348fbb8c29dfc
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdds new test case 001 for network performance 03/3703/2
Per Holmgren [Wed, 11 Nov 2015 16:11:53 +0000 (17:11 +0100)]
Adds new test case 001 for network performance

This commit contains almost all of Jira #79. Misses still to collect
all results in one single .json file, now everything is written to
/tmp/yardstick.out. However, this may not be needed at all once the
database for test result collection is in place.

Change-Id: I210a477c3b5a110e97a6220e68d3ddc31ccce93a
JIRA: YARDSTICK-79

8 years agoadd test suite for huawei us bare lab 25/4525/1
kubi [Tue, 15 Dec 2015 02:10:20 +0000 (10:10 +0800)]
add test suite for huawei us bare lab

JIRA:YARDSTICK-

Change-Id: I6e43383c1eafa13314ab7678d0e1d42ed063c57f
Signed-off-by: kubi <jean.gaoliang@huawei.com>
8 years agoAdd support to the test case required by YARDSTICK-36 85/4385/2
Vincenzo Riccobene [Fri, 11 Dec 2015 21:24:56 +0000 (21:24 +0000)]
Add support to the test case required by YARDSTICK-36

Add support to ApexLake for the calculation of the throughput of the vTC in case of
noisy neighbors deployment, through the DPDK pktgen.

JIRA: YARDSTICK-36

Change-Id: I00950f967cac1f12f733a05af8166c757dc02e0a
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd support to the test case required by YARDSTICK-35 83/4383/4
Vincenzo Riccobene [Fri, 11 Dec 2015 21:20:40 +0000 (21:20 +0000)]
Add support to the test case required by YARDSTICK-35

Add to ApexLake the support to the calculation of the throughput for the vTC using DPDK pktgen.

JIRA: YARDSTICK-35

Change-Id: I2ead9522648d6955f64fd18c543dabf7f26e2490
Signed-off-by: Vincenzo Riccobene <vincenzo.m.riccobene@intel.com>
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoMerge "Rename daily test suite files to match slave names on Jenkins"
Jörgen Karlsson [Mon, 14 Dec 2015 12:23:09 +0000 (12:23 +0000)]
Merge "Rename daily test suite files to match slave names on Jenkins"

8 years agoAdd bash script to change VLAN tag on packets 73/4373/1
Vincenzo Riccobene [Fri, 11 Dec 2015 16:49:43 +0000 (16:49 +0000)]
Add bash script to change VLAN tag on packets

JIRA: YARDSTICK-35

Change-Id: I8cb5c05a0d33aac2bc90aa037843db67d2ab0e36
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoAdd Constant traffic generation LUA script for DPDK and PCAP files 59/4359/2
Vincenzo Riccobene [Fri, 11 Dec 2015 15:13:24 +0000 (15:13 +0000)]
Add Constant traffic generation LUA script for DPDK and PCAP files

Inlcude a LUA script that generates constant rate traffic for DPDK pktgen
Also include PCAP files of requested size (64, 128, 256, 512, 1024, 1280, 1518)

JIRA: YARDSTICK-35

Change-Id: I25c1a6a8763bd14fdf25450619a5e5bbd8e978db
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoCreate yardstick nova flavor for CI testing 57/4157/2
Jo¶rgen Karlsson [Wed, 9 Dec 2015 16:46:08 +0000 (17:46 +0100)]
Create yardstick nova flavor for CI testing

Change-Id: I8aa3128fae8058551df3d1213e2eb234960477fb
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoMerge "Add full support to the DPDK packet generator"
Jörgen Karlsson [Fri, 11 Dec 2015 11:40:35 +0000 (11:40 +0000)]
Merge "Add full support to the DPDK packet generator"

8 years agoAdd 'nodes' attribute to the scenario definition 49/4049/4
wym_libra [Tue, 8 Dec 2015 07:47:26 +0000 (15:47 +0800)]
Add 'nodes' attribute to the scenario definition

Defining the 'nodes' attribute which can include more node
not only 'host' and 'target'

Design etherpad link:
    https://etherpad.opnfv.org/p/yardstick_framework

JIRA:-

Change-Id: Ida18ebcda1c73c88d208aa11a10696d1063134ef
Signed-off-by: wym_libra <yimin.wang@huawei.com>
8 years agoAdd full support to the DPDK packet generator 27/4327/3
Vincenzo Riccobene [Fri, 11 Dec 2015 10:09:00 +0000 (10:09 +0000)]
Add full support to the DPDK packet generator

Add packet generator base class (to support extensions of packet generators
Add the DPDK packet gen python wrapper and tests

JIRA: YARDSTICK-35

Change-Id: I2072801bcf077586b6abb45c5d452a346e2efe70
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoRename daily test suite files to match slave names on Jenkins 97/4197/2
Fatih Degirmenci [Thu, 10 Dec 2015 14:32:51 +0000 (15:32 +0100)]
Rename daily test suite files to match slave names on Jenkins

Change-Id: Ic4ee5d21f09fd324583f8a2c55e99684fbddd70b
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
8 years agoupdates to use new doc toolchain 07/4307/1
Ryota MIBU [Fri, 11 Dec 2015 06:30:46 +0000 (15:30 +0900)]
updates to use new doc toolchain

Change-Id: I5657d5b8758141ed1928e563ba7f99f3fb6a1133
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
8 years agoFix for DNS problems on LF POD2 when building glance image 83/4183/2
Jo¶rgen Karlsson [Thu, 10 Dec 2015 11:55:05 +0000 (12:55 +0100)]
Fix for DNS problems on LF POD2 when building glance image

Add google DNS servers.

Change-Id: If365ff3940a87d64db88482a1354059f75284412
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdds new test case descriptions 79/2879/3
Per Holmgren [Tue, 27 Oct 2015 14:34:13 +0000 (15:34 +0100)]
Adds new test case descriptions

Adds test case descriptions for JIRA issues number 6 (Network
Performance) and number 8 (Network Latency) in accordance to
version 2 of the test case description template.

Jira:YARDSTICK-6
Jira:YARDSTICK-8

Signed-off-by: Per Holmgren <per.q.holmgren@ericsson.com>
Change-Id: Ib6f4d08a1f7c6ba10f3f220d2bb3998311ecf203

8 years agoDocker image cleanup 23/4023/8
Jo¶rgen Karlsson [Mon, 7 Dec 2015 17:51:22 +0000 (18:51 +0100)]
Docker image cleanup

 - Renamed docker image 'opnfv/yardstick-ci' -> 'opnfv/yardstick'
   as recommended by project.
 - Added cirros image and releng repo to docker image in order to
   make it more usable in offline mode.
 - Renamed run_benchmarks to run_tests.sh
 - Moved some environment setups to a new file prepare_env.sh
 - Added daily test suites file for ericsson and LF pods.

Docker image is now built and pushed by releng script:
https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=blob;f=jjb/opnfv/opnfv-docker.sh

The ci/docker/Makefile file is not used by releng to build yardstick
image but the makefile can still be used to build and test docker
images locally.

Change-Id: If9d6740b39e91d145c587d8d5e2bd372d09a46a9
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdd netifaces to dependencies 39/4039/2
Jo¶rgen Karlsson [Tue, 8 Dec 2015 01:20:55 +0000 (02:20 +0100)]
Add netifaces to dependencies

Netifaces package is used by oslo.utils but is not installed
automatically:

$ cd yardstick/
$ git checkout master
$ git pull
$ mkvirtualenv YS
$ easy_install -U setuptools
$ python setup.py develop
$ glance image-list
No module named netifaces
$ nova image-list
Traceback (most recent call last):
  File "/home/uabjnon/.virtualenvs/YS/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient', 'console_scripts', 'nova')()
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 568, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2720, in load_entry_point
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2380, in load
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 2386, in resolve
  File "/home/uabjnon/.virtualenvs/YS/local/lib/python2.7/site-packages/python_novaclient-2.35.0-py2.7.egg/novaclient/shell.py", line 46, in <module>
    from novaclient import client
  File "/home/uabjnon/.virtualenvs/YS/local/lib/python2.7/site-packages/python_novaclient-2.35.0-py2.7.egg/novaclient/client.py", line 38, in <module>
    from oslo_utils import netutils
  File "/home/uabjnon/.virtualenvs/YS/local/lib/python2.7/site-packages/oslo.utils-3.1.0-py2.7.egg/oslo_utils/netutils.py", line 25, in <module>
    import netifaces
ImportError: No module named netifaces

Change-Id: Ie5e3dfad073d816ad982a56543eb3b77a818e029
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdds Heat Manger and tests to ApexLake 31/3931/4
Vincenzo Riccobene [Thu, 3 Dec 2015 17:47:25 +0000 (17:47 +0000)]
Adds Heat Manger and tests to ApexLake

Adds to ApexLake a module that manages the connection with OpenStack Heat to trigger instantiation and termination of stacks.
Also Moves tests and bin directory in the right place.

JIRA: YARDSTICK-35

Change-Id: I0ea407a3129625a238fb4187896c65a2bcd02700
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoFix network property validation error 07/3507/3
Jo¶rgen Karlsson [Sun, 22 Nov 2015 22:56:44 +0000 (23:56 +0100)]
Fix network property validation error

Fix for the validation error on port.properties.network
when deploying using OS Kilo or later.

Change-Id: I761cc958573d6eb8c909a08f186486f3ac93e816
JIRA: -
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdd scenario for reading processor load 93/3493/5
Jo¶rgen Karlsson [Fri, 20 Nov 2015 16:42:59 +0000 (17:42 +0100)]
Add scenario for reading processor load

This scenario reads processor and system load statistics
and does not run any benchmark tests.

The scenario is intended to be run in parallell with
other scenarios in order to collect processor and system
load statistics.

System load is read from /proc/loadavg.

Processor usage stats is read using the 'mpstat' utility if
it has been installed on the host.

If 'mpstat' is not installed on the host processor usage stats
is read from /proc/stats.

Change-Id: I7156e0c941100023571db750de7540786a4fedb8
JIRA: YARDSTICK-181
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdds script to run tests and test for heat template generation 31/3831/3
Vincenzo Riccobene [Tue, 1 Dec 2015 16:07:02 +0000 (16:07 +0000)]
Adds script to run tests and test for heat template generation

Adds to ApexLake the script to run the tests for the python modules of the project (they will be added later on).
It also adds the tests for heat template generation

JIRA: YARDSTICK-35

Change-Id: I3c7fcfe044b33130dd6a5d1285f3d6522eac58c6
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoRemove etc and source folder from yardstick documentation 15/3915/2
Fatih Degirmenci [Thu, 3 Dec 2015 13:13:16 +0000 (14:13 +0100)]
Remove etc and source folder from yardstick documentation

conf.py and logo will come from releng which is common for all projects.
The directory structure in docs folder has not been decided yet so this
change does not require you to change your current way of working.

Once this directory structure is decided by opnfvdocs and releng, the changes
need to be reflected back to all projects, including yardstick.

Change-Id: If0558474a819f4a44e34f790d26c5486751b8266
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
8 years agoAdd initial installation documentation 55/2955/4
Kristian Hunt [Wed, 28 Oct 2015 14:57:58 +0000 (15:57 +0100)]
Add initial installation documentation

This .rst file describes how to install Yardstick on Ubuntu14.04
or by using a Docker image.

JIRA: YARDSTICK-68

Change-Id: I9c5b3b2883c1e2bbbd3325ec40711fd9fec97cdb
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
8 years agoMerge "A initial HA test case"
qi liang [Tue, 17 Nov 2015 02:37:57 +0000 (02:37 +0000)]
Merge "A initial HA test case"

8 years agoAdd heat template generation module with required constants 31/2831/3
Vincenzo Riccobene [Tue, 27 Oct 2015 10:58:48 +0000 (10:58 +0000)]
Add heat template generation module with required constants

Adds to ApexLake the support to the generation of the all the possible configurations and related heat templates.
Files containing constants have been added as well to support the module. They will also be useful for other modules of the framework.

JIRA: YARDSTICK-35

Change-Id: I9d33d5b11c586d40dbff199c21e428113bf3cdeb
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
8 years agoA initial HA test case 91/2791/8
wym_libra [Mon, 26 Oct 2015 07:54:31 +0000 (07:54 +0000)]
A initial HA test case

1)stop an openstack service
2)then monitor the corresponding api and check the availability of it
3)recovery the openstack service

JIRA: YARDSTICK-149

Change-Id: Id7b77d2f5c71844729c04f37442c8cfaa270ab12
Signed-off-by: wym_libra <yimin.wang@huawei.com>
8 years agoUpdate /etc/hosts in yardstick cloud image 17/3217/1
Jo¶rgen Karlsson [Wed, 11 Nov 2015 17:56:53 +0000 (18:56 +0100)]
Update /etc/hosts in yardstick cloud image

Adding the hostname to /etc/hosts prevents
some 'unable to resolve host' error messages.

Change-Id: I1fd16007955287d436e895d53db6ce19b0b6fe3e
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
8 years agoAdd cleanup trap to yardstick-img-modify 79/3179/1
Jo¶rgen Karlsson [Tue, 10 Nov 2015 13:55:00 +0000 (14:55 +0100)]
Add cleanup trap to yardstick-img-modify

Fixes a problem with loopback devices not
beeing detached when the image build fails.

Change-Id: I3e422be4fb0157289a032c14700e184f58d544d9
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
9 years agoMerge "part 2 :add coverage report in Jenkins for Yardstick"
Hou Jingwen [Thu, 5 Nov 2015 09:03:09 +0000 (09:03 +0000)]
Merge "part 2 :add coverage report in Jenkins for Yardstick"

9 years agoDocker container for Yardstick CI part 2 09/2909/7
Jo¶rgen Karlsson [Thu, 29 Oct 2015 15:16:36 +0000 (16:16 +0100)]
Docker container for Yardstick CI part 2

Added test suit selection and an option to use
the HTTP Result API.

Part 1: https://gerrit.opnfv.org/gerrit/#/c/2201/

Change-Id: I1c25d07e46cd44e25f448706ff2dfc3b31cd7208
JIRA:-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
9 years agoSecond commit of the vTC 01/2701/8
Akis Kourtis [Wed, 21 Oct 2015 14:36:22 +0000 (10:36 -0400)]
Second commit of the vTC

JIRA: Yardstick-37
JIRA: Yardstick-137

The git clone process from the bitbucket repository is done using OAuth2 authentication now.
Various build bugs have been fixed.
Documentation has been updated, an architecture graph has been for better understanding.
README.rst has been moved to docs/source/vTC
along with an abbreviations.rst

Change-Id: I864a90026df81779f7935f33acfa26ac9fb7c50c
Signed-off-by: Akis Kourtis <akis.kourtis@iit.demokritos.gr>
9 years agoMerge "Avoid the ValueError exception for a ping timeout."
qi liang [Tue, 3 Nov 2015 02:49:57 +0000 (02:49 +0000)]
Merge "Avoid the ValueError exception for a ping timeout."

9 years agoAvoid the ValueError exception for a ping timeout. 75/2975/3
wu.zhihui [Mon, 2 Nov 2015 08:11:54 +0000 (16:11 +0800)]
Avoid the ValueError exception for a ping timeout.

In ping.py:
If ping a ip address timeout, the return value "stdout"
is null. And the code "rtt=float(stdout)" raises a
ValueError exception. The better handle is to avoid the
exception and log a ping timeout.

Change-Id: Ia2a3ff44c35dda1a700a5109f8e642a636e89bc6
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
9 years agoSupport NodeContext type 81/2781/4
QiLiang [Sun, 25 Oct 2015 14:47:37 +0000 (14:47 +0000)]
Support NodeContext type

Initial NodeContext implementation to support BareMetal,
Controller, Compute scenarios.

Usage:

0) install yardstick
1) mkdir -p /etc/yardstick/nodes
2) cp <yardstick_repo>/etc/yardstick/nodes/pod.yaml.sample \
       /etc/yardstick/nodes/pod.yaml
3) edit /etc/yardstick/nodes/pod.yaml (make show ip, username,
       ssh key are configured correctly)
4) yardstick -d task start \
       <yardstick_repo>/samples/ping-node-context.yaml
5) cat /tmp/yardstick.out

Design etherpad link:
    https://etherpad.opnfv.org/p/yardstick_framework

JIRA: YARDSTICK-169

Change-Id: I3f6ade8243e68d88326f23ed213edb32c638ed32
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoExtend lmbench scenario to measure memory bandwidth 23/2623/3
Kristian Hunt [Tue, 13 Oct 2015 14:38:56 +0000 (16:38 +0200)]
Extend lmbench scenario to measure memory bandwidth

Lmbench scenario has now two scripts and will choose between them,
based on whether the intention is to run memory latency or bandwidth
tests. Added also unit test file for this scenario.

JIRA: YARDSTICK-113

Change-Id: I2ba4dbef31f3cafbdb3c583ece5ed9512a906896
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
9 years agopart 2 :add coverage report in Jenkins for Yardstick 37/1537/8
kubi [Mon, 14 Sep 2015 06:50:50 +0000 (02:50 -0400)]
part 2 :add coverage report in Jenkins for Yardstick

this part is focus on script on run coverage test,not only show missing lines
but also show diff between your patch and master,
actually,it produce a html for coverage,but now ,it just on your local machine
extra missing lines is 10-lines,final target is 4-lines

JIRA:YARDSTICK-108

Change-Id: I550dff51d6f89562447e12127646155325e38a4a
Signed-off-by: kubi <jean.gaoliang@huawei.com>
9 years agorecord the total time of test case running 83/2783/3
kubi [Fri, 16 Oct 2015 03:38:12 +0000 (11:38 +0800)]
record the total time of test case running

total time and one task time both will be put into console

JIRA:YARDSTICK-166

Change-Id: I1422355c5ca0228c11e6334c13bb13554bdca4af
Signed-off-by: kubi <jean.gaoliang@huawei.com>
9 years agoHeat context code refactor part 2 93/2693/9
QiLiang [Wed, 21 Oct 2015 12:29:53 +0000 (12:29 +0000)]
Heat context code refactor part 2

Heat context code refactor to cater for the evolution of the
Yardstick framework.

Refactor runner_cfg host/target info handle, as specified at
https://etherpad.opnfv.org/p/yardstick_framework
step 4. Get general Context info (use Context.get).

Before this refactor host and target vm must have the same user name
and ssh key, that is not general enough for later extension.

test_case.yaml do NOT need to change.

JIRA: YARDSTICK-168

Change-Id: I5cfe868f3c6f633214ef550bc9676fe1de0709db
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoAdd updated version for template 41/2141/4
Ana C [Wed, 30 Sep 2015 11:49:44 +0000 (13:49 +0200)]
Add updated version for template

This patch adds a second version for the template for test case
description, in table format.
Minor updates in the original version, opnfv logo added.

Jira:YARDSTICK-2

Change-Id: Ia9b2ba9c237d0ce8493e512663f95b73df210175
Signed-off-by: Ana C <ana.cunha@ericsson.com>
9 years agoadd lua script for RFC 2544 throughput on dpdk packet generator 97/2497/3
Vincenzo Riccobene [Tue, 13 Oct 2015 12:54:57 +0000 (13:54 +0100)]
add lua script for RFC 2544 throughput on dpdk packet generator

First commit for ApexLake: the vTC Characterization Framework
The included file is a lua script for the calculation of the throughput for dpdk_pktgen

JIRA: YARDSTICK-35

Change-Id: I02d015cee5f6b0593d668498439893f9091f5a8b
Signed-off-by: Vincenzo Riccobene <vincenzox.m.riccobene@intel.com>
9 years agoUpdate sla check for scenarios 15/2615/4
houjingwen [Mon, 19 Oct 2015 07:37:06 +0000 (15:37 +0800)]
Update sla check for scenarios

This patch modify the question that SLA check result is not complete.

JIRA: YARDSTICK-172

Change-Id: I10438390baee92caf00dbfcdbdb833823ff8ce31
Signed-off-by: houjingwen <houjingwen@huawei.com>
9 years agofix for timeout on LF-POD2 (CI) 95/2695/1
Jo¶rgen Karlsson [Wed, 21 Oct 2015 12:33:04 +0000 (14:33 +0200)]
fix for timeout on LF-POD2 (CI)

Change-Id: Ie2e72db9e7b88a4470ffda51dfc472959fe1bc8e
JIRA:-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
9 years agoHeat context code refactor 49/2549/5
QiLiang [Thu, 15 Oct 2015 06:24:27 +0000 (14:24 +0800)]
Heat context code refactor

Heat context code refactor to cater for the evolution of the
Yardstick framework.

At test_case.yaml context segment add "type" to indicate the
context type, see samples/ping-heat-context.yaml for an example.
And the default context type is Heat, so the existing yaml file
do not need to change.

JIRA: YARDSTICK-168

Change-Id: Ida0ce12c17cd9b88d7acfb4c9eb1ac6986394b38
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoFix for netperf install in glance image 97/2597/1
Jo¶rgen Karlsson [Fri, 16 Oct 2015 13:27:54 +0000 (15:27 +0200)]
Fix for netperf install in glance image

Fixes two issues in the chrooted environment:

- /proc must be mounted when installing certain packages.

- prevent services from starting when installing or updating
packages.

JIRA :-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Change-Id: Ia7180c190bf93c173ea93207ed323ca96662c029

9 years agoUse result_collection_api to store test result 11/2411/5
QiLiang [Sat, 10 Oct 2015 09:39:22 +0000 (17:39 +0800)]
Use result_collection_api to store test result

Execute a sample task file from Yardstick, push the test results
to MongodB provided by Releng using the common result api
provided by Functest.

Usage:

0) install yardstick

1) config yardstick
mkdir /etc/yardstick
cat << EOF >> /etc/yardstick/yardstick.conf
[DEFAULT]
debug = True
dispatcher = http

[dispatcher_http]
timeout = 5
target = http://213.77.62.197/results
EOF

2) run test
yardstick task start sample/fio.yaml

3) fetch result from remote result_collection_api
curl "http://213.77.62.197/results?case=Fio&installer=compass"

JIRA: YARDSTICK-132

Change-Id: I0996c6487c1900704380feb895555057a3f184e9
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoadd error handling when given failing script calls 87/2487/3
wym_libra [Tue, 13 Oct 2015 08:19:01 +0000 (16:19 +0800)]
add error handling when given failing script calls

JIRA:YARDSTICK-100

Change-Id: I1986b5e443abf186ef9c0235b66ada26c8574af1
Signed-off-by: wym_libra <yimin.wang@huawei.com>
9 years agoReorganize documentation in new structure 99/2099/3
Ana C [Tue, 29 Sep 2015 07:41:53 +0000 (09:41 +0200)]
Reorganize documentation in new structure

Remove the to-be-reorganized folder and reorganize
documentation in properly named subfolders.

Modified conf.py to reflect yardstick project name.

Modified index.rst with introduction about yardstick.

Templates were moved to new subfolder, no changes in
the content.

Jira:YARDSTICK-133

Change-Id: Iea5948733c57ff57eb946f44739b69d0e7291356
Signed-off-by: Ana C <ana.cunha@ericsson.com>
9 years agoAdd Cyclictest scenario and sample 10/1410/7
QiLiang [Mon, 7 Sep 2015 13:55:29 +0000 (21:55 +0800)]
Add Cyclictest scenario and sample

Support measuring operating system's high resolution by using Cyclictest.

JIRA: YARDSTICK-122

Change-Id: I2e00ce117e263deaaf52cd2d663b845bd5b65432
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoMerge "Support general configuration file"
QiLiang [Thu, 15 Oct 2015 01:38:55 +0000 (01:38 +0000)]
Merge "Support general configuration file"

9 years agoSupport general configuration file 83/2383/2
QiLiang [Tue, 29 Sep 2015 06:50:12 +0000 (14:50 +0800)]
Support general configuration file

Use openstack library oslo_config for parsing configuration options
from the command line and configuration files.
Refer http://docs.openstack.org/developer/oslo.config/ or rally
source code for more info on oslo_config library usage.

This patch is initially for test result dispatcher configuration,
but it is very general to use.

Usage:
  0) install yardstick
  1) mkdir /etc/yardstick
  2) cp <repo_root_dir>/etc/yardstick/yardstick.conf.sample \
        /etc/yardstick/yardstick.conf
  3) edit /etc/yardstick/yardstick.conf
  4) run `yardstick task start xxx` cmd

JIRA: YARDSTICK-61

Change-Id: I01677ef6e9ab7c1975aa193799195e850da73478
Signed-off-by: QiLiang <liangqi1@huawei.com>
9 years agoSupport for netperf 77/2477/5
kubi [Tue, 13 Oct 2015 07:22:20 +0000 (15:22 +0800)]
Support for netperf

As agreed in the IRC meeting, use iperf for YARDSTICK-112;
support for netperf shall also be included in the framework (Yardstick-121).
bulk data test and req/rsp test are supportted by netperf

JIRA:YARDSTICK-121
Change-Id: I0e934dc067802c2792d751a19a187cd00ad8741b
Signed-off-by: kubi <jean.gaoliang@huawei.com>
9 years agoMerge "Docker container for Yardstick CI"
Jo¶rgen Karlsson [Wed, 14 Oct 2015 14:41:41 +0000 (14:41 +0000)]
Merge "Docker container for Yardstick CI"

9 years agoDocker container for Yardstick CI 01/2201/10
Jo¶rgen Karlsson [Fri, 2 Oct 2015 08:18:17 +0000 (10:18 +0200)]
Docker container for Yardstick CI

The Docker container is intended to be run by the CI pipeline but it
may also be used stand alone.

Building the docker image:
$ cd yardstick/ci/docker
$ make clean && make

Pushing image to docker hub:
$ docker login ... (credentials needed)
$ docker push opnfv/yardstick-ci (need to connect your account to opnfv)

The docker image must be manually built and pushed to the docker Hub.
This will probably be handled by gerrit triggers in the
future (including revision handling and tagging of images).

Example invocation:

            docker run \
               --privileged=true \
                -t \
                -e "INSTALLER_TYPE=fuel" \
                -e "INSTALLER_IP=10.20.0.2" \
                -e YARDSTICK_BRANCH="refs/changes/01/2201/7" \
                -e RELENG_BRANCH="master" \
                opnfv/yardstick-ci \
                run_benchmarks

Basic steps performed by the container:

    1. clone yardstick and releng repos
    2  setup OS credentials (releng scripts)
    3. install yardstick and dependencies
    4. build yardstick cloud image and upload it to glance
    5. upload cirros-0.3.3 cloud image to glance
    6. run yardstick test scenarios

If anything goes wrong in any of the steps above a non-zero exit
status is returned.

Some limitations:

Scenario results (yardstick.out) are currently discarded. A future
patch will take care of dumping the result to a database.

Currently the container only runs the ping sample scenario. Testsuite
execution (and selection) will be added in a future patch.

The container has only been tested against fuel installations.

Change-Id: I0bd29035082d3e283429c7392de8fc11b9fd777f
JIRA: YARDSTICK-136
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
9 years agoMerge "Fio scenario support sla"
houjingwen [Wed, 14 Oct 2015 02:08:00 +0000 (02:08 +0000)]
Merge "Fio scenario support sla"

9 years agoAdd test suite functionality to task commands 43/1743/4
Kristian Hunt [Mon, 7 Sep 2015 11:37:58 +0000 (13:37 +0200)]
Add test suite functionality to task commands

This patch proposes a more permanent solution to replace the already
existing one (YARDSTICK-106).

A test suite is a .yaml file which consists of multiple task files which
are meant to run as a one set. Each test case in the test suite has to
specify the location of the test .yaml task file and can specify additional
task arguments or a task arguments file.

It is possible to specify the directory where the task files are located
in the suite file. If it is left unspecified then it defaults to
tests/opnfv/test_cases according to https://etherpad.opnfv.org/p/yardstick_folders

A Command line argument --suite is added to the task command. This
argument indicates that the intention is to run a test suite.

JIRA: YARDSTICK-107

Change-Id: I69508b3b536dd592b6240a2a32dd5d665e0ac4b4
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
9 years agoFio scenario support sla 37/2337/3
houjingwen [Thu, 8 Oct 2015 09:31:36 +0000 (09:31 +0000)]
Fio scenario support sla

JIRA: YARDSTICK-34

Change-Id: I782ba5845f8bd54a19bad078fe7be546400f7524
Signed-off-by: houjingwen <houjingwen@huawei.com>