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"
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>
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>
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>
Jörgen Karlsson [Fri, 11 Dec 2015 11:40:35 +0000 (11:40 +0000)]
Merge "Add full support to the DPDK packet generator"
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
qi liang [Tue, 17 Nov 2015 02:37:57 +0000 (02:37 +0000)]
Merge "A initial HA test case"
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>
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>
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>
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>
Hou Jingwen [Thu, 5 Nov 2015 09:03:09 +0000 (09:03 +0000)]
Merge "part 2 :add coverage report in Jenkins for Yardstick"
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>
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>
qi liang [Tue, 3 Nov 2015 02:49:57 +0000 (02:49 +0000)]
Merge "Avoid the ValueError exception for a ping timeout."
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
QiLiang [Thu, 15 Oct 2015 01:38:55 +0000 (01:38 +0000)]
Merge "Support general configuration file"
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>
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>
Jo¶rgen Karlsson [Wed, 14 Oct 2015 14:41:41 +0000 (14:41 +0000)]
Merge "Docker container for Yardstick CI"
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>
houjingwen [Wed, 14 Oct 2015 02:08:00 +0000 (02:08 +0000)]
Merge "Fio scenario support sla"
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>
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>
jean.gaoliang@huawei.com [Thu, 8 Oct 2015 13:27:14 +0000 (21:27 +0800)]
add a key check to fix bug
JIRA:YARDSTICK-160
Change-Id: I2cfe91b30d0c906417234d5bf7787fb5dc568921
Signed-off-by: jean.gaoliang@huawei.com <jean.gaoliang@huawei.com>
wym_libra [Wed, 23 Sep 2015 03:56:15 +0000 (11:56 +0800)]
Add testing packet delay variation between VMs
1)create test case("iperfs-jitter") for measuring packet delay variation
2)and modify "iperf3.py" to support it
JIRA:YARDSTICK-131
Change-Id: Ic3416a713b69dc7687f6f85ecc0b79da8dfb7ed9
Signed-off-by: wym_libra <yimin.wang@huawei.com>
Ana C [Thu, 24 Sep 2015 12:50:08 +0000 (14:50 +0200)]
Add QiLiang as committer
QiLiang email added to INFO file.
JIRA:-
Change-Id: I1703df8fb02f2570ddb47c9aaa5f4db362ed43ff
Signed-off-by: Ana C <ana.cunha@ericsson.com>
Julien-zte [Wed, 23 Sep 2015 13:16:56 +0000 (21:16 +0800)]
Fix the bug described in YARDSTICK-142
Delete two line codes in setup.py.
And add "easy_install -U setuptools" in README.rst.
JIRA: YARDSTICK-142
Change-Id: I254589b776a209e3ca9a18e76d910d7f49e2a01a
Kristian Hunt [Mon, 21 Sep 2015 10:21:49 +0000 (12:21 +0200)]
Add missing YAML document start boundaries
This patch adds YAML document start boundaries (YAML spec 4.3.2)
to samples, where the boundaries are missing.
JIRA: -
Change-Id: I6e67d4d73a449ad901392c017220a61f642716ac
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
kubi [Tue, 15 Sep 2015 07:37:14 +0000 (03:37 -0400)]
Add functional tests in verify and merge
As Ana said ,"The first functional test should be as simple as a "Hello world",
it shall be possible to run the "Hello world" test without using OpenStack."
so i just finish functional test framework and do functional test for subcommand
"runner"and"scenario" without using Openstack.
JIRA:YARDSTICK-103
Change-Id: I673ae61f9922536a685d32ae62e5ad5165472f9d
Signed-off-by: kubi <jean.gaoliang@huawei.com>
houjingwen [Wed, 16 Sep 2015 11:19:15 +0000 (11:19 +0000)]
Fix bug in fio scenario
1) when duration>3600s in fio.yaml, ssh time out
2) sometimes the latency value in test result is null
3) update plot.py, fit for code update in fio.py
4) small bug in file.py (result output dump)
Add --output-format=json in default args, so fio command
can return json format data.
JIRA: YARDSTICK-143
Change-Id: Ie02977b8c9f11986a1eed66896b84d18db3d2211
Signed-off-by: houjingwen <houjingwen@huawei.com>
Kristian Hunt [Mon, 21 Sep 2015 08:49:51 +0000 (10:49 +0200)]
Modify iperf sample to use yardstick testing image
This patch will make the iperf sample test case consistent with other
test cases by using the yardstick-trusty-server image and making it
possible to run this test case "out of the box" without requiring the
modification of the sample file.
Change-Id: I9b0da0d94f9c33f07bca79067a1eb5d615e2c15a
JIRA: YARDSTICK-148
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Jo¶rgen Karlsson [Wed, 16 Sep 2015 18:18:14 +0000 (20:18 +0200)]
Structure output and make it less redundant
Note: this commit replaces:
https://gerrit.opnfv.org/gerrit/#/c/976/8
Adjusts the JSON output of the runners to follow a different structure,
laid out below. It is based upon the patch above but is not using the
output manager.
The purpose is to provide a unified basic layout (as already existed),
while making long data series much less repetitive and more space
efficient.
OUTPUT FORMAT:
------------------------------------------------------------------------
RUNNER PREP - printed exactly once per runner per scenario.
Runner MUST print this before sending any RUNNER DATA output
{
runner_id: <int>
scenario_cfg: {
<scenario and runner config>
}
}
where
runner_id: ID of the runner sending this block
scenario_cfg: scenario and runner configuration
------------------------------------------------------------------------
RUNNER DATA
runner may print any number of these AFTER having printed a RUNNER PREP
{
runner_id: <int>
benchmark: {
<measurements>
}
}
------------------------------------------------------------------------
The runner_id currently is not unique across runners as it is assigned
by noting the runner process id in the underlying operating system.
A possible improvement would be to assign runner_id an UUID value
according to RFC 4122 (e.g. uuid.uuid4() in python).
------------------------------------------------------------------------
Other changes/cleanups in this patch:
- Removed the context argument from _worker_process as it was
redundant. It contained a dictionary with the runner configuration
but the same dictionary was already in included in the scenario_args argument.
- For clarity renamed scenario_args to scenario_cfg. scenario_cfg was
the original name used in task.py and it changed name across function calls.
Change-Id: I17d96f37c7d3e24b0747d23fcad7509fa949d662
JIRA: YARDSTICK-59
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Hou Jingwen [Fri, 18 Sep 2015 01:30:32 +0000 (01:30 +0000)]
Merge "Remove setting logger level to debug in scenarios"
Aric Gardner [Fri, 11 Sep 2015 19:59:04 +0000 (15:59 -0400)]
Move documentation to new sphinx build
TODO: Reorganize documentation into properly named subfolders
TODO: Add logos to documentation (see index.rst for example)
Note you can see the results of this change via a link in the gerrit
comments below
NOTE: The merge job for your project has not been enabled, this code
will not go to the artifacts page upon a merge. you can merge it and
work on it in your own time, please contact me to enable the merge
(the merge job will make this documentation avaliable to the public on
artifacts.opnfv.org)
JIRA:RELENG-15
Change-Id: I8fd519393416e2ac2b3ada6fe0670aa4d038fc87
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Kristian Hunt [Wed, 16 Sep 2015 08:34:33 +0000 (10:34 +0200)]
Remove setting logger level to debug in scenarios
Logging level should be specified using a command line flag -v or -d
when running yardstick, rather than hardcoded into source code. If the
message is to be displayed whenever yardstick is executed regardless
of the verbosity level, then the message should be logged to warning
or error levels, instead of debug.
JIRA: YARDSTICK-95
Change-Id: Idc9b81b583f4999bfbc57893f0ab3c3675c70f71
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Hou Jingwen [Tue, 15 Sep 2015 06:39:37 +0000 (06:39 +0000)]
Merge "Add test result dispatcher"
Hou Jingwen [Mon, 14 Sep 2015 02:26:14 +0000 (02:26 +0000)]
Merge "add coverage report in Jenkins for Yardstick."
Jo¶rgen Karlsson [Thu, 10 Sep 2015 13:28:44 +0000 (15:28 +0200)]
Force apt-get to use ipv4 addresses
Workaround to prevent apt-get from using ipv6 addresses on LF POD.
JIRA: -
Change-Id: I58e31a01f03271cb716a76e5abed18d67d87a0a7
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
kubi [Thu, 10 Sep 2015 03:58:38 +0000 (23:58 -0400)]
add coverage report in Jenkins for Yardstick.
since coverage report based on master, coverage configure file should be merged to master at first
then coverage shell script will be committed after coverage conf
As first part, this patch only include two configure files and one init file :
.testr.conf , .coveragerc, __init__.py
Change-Id: I073e65b641144e4878595f073cd37081e4a4940b
JIRA:YARDSTICK-108
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Jo¶rgen Karlsson [Wed, 9 Sep 2015 08:56:40 +0000 (10:56 +0200)]
Add support for building images on CentOS
This is a workaround for building on CentOS.
CentOS don't have nbd so guestfstool is used to mount the
ubuntu image.
The http sources has been changed to ftp as the apt-get
tool inside the Ubuntu image dont work well with http
sources when running on CentOS.
Change-Id: I23679ff034ea76782dcc73d3283cb70ebace5ee8
JIRA: YARDSTICK-136
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
QiLiang [Mon, 27 Jul 2015 10:39:24 +0000 (10:39 +0000)]
Support to config external network by shell env
Example invocation:
$ export EXTERNAL_NETWORK=net04_ext
$ yardstick task start samples/ping.yaml
The default external network is "net04_ext"
external_net should not be possible set in yaml anymore.
JIRA: YARDSTICK-54
Change-Id: I8c7b2850801f312c6878e9a363b06cdc8ade09bf
Signed-off-by: QiLiang <liangqi1@huawei.com>
Kristian Hunt [Thu, 23 Jul 2015 08:44:18 +0000 (10:44 +0200)]
Add unit test for iperf3
Sample output from the iperf3 is read from a pre-generated json file.
Change-Id: I6e04c6bd2e61b841c7e5673cfa78aeb17220a5f9
JIRA:-
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
kubi [Wed, 19 Aug 2015 10:19:25 +0000 (06:19 -0400)]
add support for Jinja2 in task file
Add support in task file for the template syntax based on Jinja2.
JIRA:YARDSTICK-101
Change-Id: I24be133ba590510612d97a1fce6c024e6edb57e4
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Kristian Hunt [Thu, 6 Aug 2015 10:50:10 +0000 (12:50 +0200)]
Add unit test for logical model
Add unit tests for logical model (model.py). This test suite does not
include tests for unfinished functionality - some parts of methods or
in some cases whole methods with unresolved TODOs are not tested.
This test suite is not complete, for most methods only the default
case is tested.
JIRA:-
Change-Id: I0984fb3655513f5ad67dcc7436461990da9296e7
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Thu, 13 Aug 2015 12:48:30 +0000 (14:48 +0200)]
Add script for running yardstick tasks back-to-back
This script enables to run multiple yardstick tasks in the yardstick
daily build without having to change the Jenkins job in the releng
repository.
This script should be executed from the main yardstick directory just
as run_tests.sh.
If at least one of the tasks listed returns a non-zero value then the
script continues executing, but in the end will exit with value 1.
JIRA: YARDSTICK-106
Change-Id: I8a6bb7e6c03ec551709ff66a45aad7257fb36e92
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
houjingwen [Tue, 25 Aug 2015 08:40:22 +0000 (16:40 +0800)]
FIO support variable iodepth
FIO storage performance varification support variable iodepth.
JIRA: YARDSTICK-119
Change-Id: Ib6af55c5fbcaa7727a7541b13053b5e4ce8d3203
Signed-off-by: houjingwen <houjingwen@huawei.com>
Hou Jingwen [Wed, 26 Aug 2015 07:43:41 +0000 (07:43 +0000)]
Merge "Add unit test for fio"
Kristian Hunt [Mon, 10 Aug 2015 11:52:13 +0000 (13:52 +0200)]
Add unit test for utils
Unit test case for utility function itersubclasses is from rally.
A separate test case is created for each utility function.
Running of unittest from run_test.sh is NOT enabled.
Change-Id: I47a8020a05b19eb3f1edcebde1042c732bff5561
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
QiLiang [Sun, 9 Aug 2015 16:48:17 +0000 (00:48 +0800)]
Add test result dispatcher
This patch is the initial implementation of DB result storage.
Having implemented a dispathcer which enable user select different ways
to store test results according to different requirements. This patch
can support not only local file storage, but also remote storage by
using http request(it will call common-db-api when available). Later,
local DB sotrage will be supported.
This patch is raw and simple, which is implemented with reference to
openstack ceilometer.
Any comment is welcome.
JIRA: YARDSTICK-61
Change-Id: Icaf8369edfab5d05f0819eb02d5b05dc8a04d69d
Signed-off-by: QiLiang <liangqi1@huawei.com>
Kristian Hunt [Tue, 28 Jul 2015 08:42:41 +0000 (10:42 +0200)]
Add unit test for template_format.py
Unit test file for template_format.py originates from
python-heatclient. Dependency for testscenarios module is removed and
testtools module is replaced with python native unittest module.
Running of unittest from run_test.sh is NOT enabled.
JIRA: -
Change-Id: I14e77ce04763b503cc757fe7098d2c704a7ae22c
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Tue, 28 Jul 2015 11:41:01 +0000 (13:41 +0200)]
Add unit test for ssh
Unit test file for ssh.py originates from rally. It is modified to
be consistent with the ssh module used in yardstick - some tests for
missing functionality are removed and naming convention is changed
(ssh in yardstick vs sshutils in rally).
Running of unittest from run_test.sh is NOT enabled.
JIRA:-
Change-Id: I3ea554e3fbe6f1f906778f88ddd859424331c8df
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Jörgen Karlsson [Wed, 19 Aug 2015 15:18:15 +0000 (15:18 +0000)]
Merge "Add unit test for pktgen"
Hans Feldt [Mon, 17 Aug 2015 11:32:32 +0000 (11:32 +0000)]
Merge "Add iteration type for Runner"
Kristian Hunt [Wed, 29 Jul 2015 12:18:34 +0000 (14:18 +0200)]
Add dependencies to dev-env section in README.rst
Add paragraph for installing required dependencies to README.rst to
make setting up a new development environment easier and documented.
Moved existing command to install virtualenv to the new paragraph to
maintain integrity.
JIRA:-
Change-Id: I356611fbb92a5d2a556675e779a11308c22a8ceb
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
kubi [Sat, 25 Jul 2015 09:08:14 +0000 (09:08 +0000)]
Add iteration type for Runner
A Iteration runner is roughly the same as a Duration runner but runs
for a configurable number of times/iterations instead of time.
Basically just the termination condition is different.
modify the unit and default value of iteration.
rename iteration to iterations
JIRA:YARDSTICK-49
Change-Id: I67f4014dc3cf923cd31cc2e990e2f7219bce40fe
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Kristian Hunt [Wed, 15 Jul 2015 08:43:09 +0000 (10:43 +0200)]
Add support for generating graphs from output
Command line tool yardstick-plot is to be used to visualize results
gathered from yardstick framework's output file. Currently supports
plotting graphs from ping, pktgen, iperf3 and fio tests.
Yardstick-plot takes two arguments - input file and output folder
and both of them have defaults to fall to if left unspecified.
Supports having multiple different scenario types in an input file,
while assuming that all results from the same scenario type belong
to one graph. Thus, results plotted from a single scenario type
with different parameters are currently non-informative.
yardstick-plot is declared as an extra for yardstick in setup.py as
it is not required for all use cases of the yardstick framework.
It can be installed for example using command:
$ pip install -e .[plot]
from the folder where setup.py is located.
Example invocation: yardstick-plot -i /tmp/yardstick.out -o /tmp/plots/
JIRA: YARDSTICK-65
Change-Id: Ic436ca360ba2496aa829ca817b1d9d5f3c944c6c
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Tue, 14 Jul 2015 11:13:47 +0000 (13:13 +0200)]
Add perf scenario and sample
Supports using perf software event counters. No hardware events are
currently supported. It is possible to add some load to the system
using the load parameter, otherwise the system will sleep while the
measurements are collected.
It is possible to configure SLA for any event measured.
Change-Id: Ic413d940093aadd10dc32888ea416aa94316a6fe
JIRA: YARDSTICK-51
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Jörgen Karlsson [Thu, 13 Aug 2015 12:47:26 +0000 (12:47 +0000)]
Merge "Add lmbench scenario and sample"
Kristian Hunt [Tue, 21 Jul 2015 12:29:10 +0000 (14:29 +0200)]
Add lmbench scenario and sample
Supports measuring memory read latency using Lmbench.
SLA can be verified for maximum latency time in nanoseconds
compared against results from every measurement taken.
Change-Id: Ia187e68eaa03341ba14b6e9eb986afb1d00dd0f6
JIRA: YARDSTICK-89
JIRA: YARDSTICK-92
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Wed, 12 Aug 2015 11:33:54 +0000 (13:33 +0200)]
Make run_tests.sh verbose and enable unit tests
By default output from run_tests is verbose. This enables seeing the
error messages in Jenkins' console output when a job fails.
Output can alternatively be captured to a log file using an -f flag.
Example invocation for logging output to a file: $ ./run_tests.sh -f
Running of unittest from run_test.sh is enabled.
JIRA: YARDSTICK-102
YARDSTICK-104
Change-Id: I3be7d7873cf75247980d97c3fbdf0bfdbabe53ad
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
raindirve [Thu, 6 Aug 2015 10:54:59 +0000 (12:54 +0200)]
Fix typo in runner output
Sequence and Arithmetic runners have an extra colon
in their 'sargs:' output. This commit removes that
unnecessary and incorrect character.
Change-Id: I9bb1af5397812318e94e3bd71c680605c4917c1a
JIRA: YARDSTICK-98
Signed-off-by: raindirve <seanw@kth.se>
Hou Jingwen [Wed, 5 Aug 2015 09:23:07 +0000 (09:23 +0000)]
Merge "Update pbr requirement version in setup.py"
QiLiang [Sat, 25 Jul 2015 08:37:45 +0000 (08:37 +0000)]
Update pbr requirement version in setup.py
JIRA: YARDSTICK-96
Change-Id: Ic7e918b6d287725e2451da93aa8a36ec2b09ca0a
Signed-off-by: QiLiang <liangqi1@huawei.com>
Hou Jingwen [Tue, 4 Aug 2015 04:18:22 +0000 (04:18 +0000)]
Merge "Update example invocation of yardstick in main.py"
kubi [Tue, 28 Jul 2015 09:17:02 +0000 (09:17 +0000)]
Fix a bug for algorithm of arithmetic runner.
since value will overstep the stop value under some condition
JIRA:YARDSTICK-97
Change-Id: I11656206fc9b576283d243a3be249276dba03759
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Kristian Hunt [Tue, 28 Jul 2015 07:05:09 +0000 (09:05 +0200)]
Add unit test for fio
Sample output from fio_benchmark.bash is read from a string.
Running of unittest from run_test.sh is NOT enabled.
JIRA:-
Change-Id: If4f4d00cf215fa1d332260817a8a3e702e72fd7e
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Mon, 27 Jul 2015 08:40:29 +0000 (10:40 +0200)]
Add unit test for pktgen
Sample output from pktgen_benchmark.bash is read from a string.
Running of unittest from run_test.sh is NOT enabled.
JIRA:-
Change-Id: I51391df0726ed9e7486775d2cdd5583b305ea8e0
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Kristian Hunt [Wed, 22 Jul 2015 08:30:49 +0000 (10:30 +0200)]
Update example invocation of yardstick in main.py
Example invocation in main.py is in accordance with change
40f49a4
JIRA:-
Change-Id: Id3b07e83db768c6d43f6a5bddc954448c9f1e6c4
Signed-off-by: Kristian Hunt <kristian.hunt@gmail.com>
Hou Jingwen [Thu, 16 Jul 2015 08:29:16 +0000 (08:29 +0000)]
Merge "Fix yardstick.out overwritten bug"
Ana C [Tue, 14 Jul 2015 09:13:31 +0000 (11:13 +0200)]
Add test case description template
Template states mandatory information for each
test case to be delivered by Yardstick Project.
JIRA: YARDSTICK-2
Change-Id: I16b98acc6689e24f8e6a85c356ee1b8991bd5276
Signed-off-by: Ana C <ana.cunha@ericsson.com>
panghao1 [Tue, 30 Jun 2015 04:10:11 +0000 (04:10 +0000)]
Fix yardstick.out overwritten bug
The output of scenarios will be appended to the yardstick.out file.
JIRA: YARDSTICK-45
Change-Id: I185c6d2a8a534c8bb2b731bb84c47bdf4bad4427
Signed-off-by: panghao1 <shamrock.pang@huawei.com>