Jing Lu [Sat, 1 Apr 2017 08:52:04 +0000 (08:52 +0000)]
Merge "Set work directory in Yardstick container" into stable/danube
JingLu5 [Fri, 31 Mar 2017 09:17:26 +0000 (09:17 +0000)]
Refine documentation
Change-Id: Ic9a84954fdb18ac97afde01541b4c84157df8441
Signed-off-by: JingLu5 <lvjing5@huawei.com>
JingLu5 [Thu, 30 Mar 2017 11:50:02 +0000 (11:50 +0000)]
add yardstick_user_interface chapter in userguide
JIRA: YARDSTICK-618
Change-Id: I690c24d665016a381ae1ed7d8fa94d5a34bc1b1b
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
0ce79677b81b47a7f66e43af896cfa9632da6bee)
JingLu5 [Tue, 28 Mar 2017 01:21:20 +0000 (01:21 +0000)]
Bugfix: Error validating value 'cirros-0.3.5'
JIRA: YARDSTICK-607
some scenarios come with a Cirros-0.3.5 image, Yardstick's load_images.sh will
load a second cirros-0.3.5 image, causing the following error:
2017-03-27 07:42:58,317 yardstick.orchestrator.heat heat.py:449 INFO Creating stack 'demo-
2ada98f3'
error: failed to deploy stack: 'ERROR: Property error: : resources.ares.demo-
2ada98f3.properties.image: : Error validating value 'cirros-0.3.5': No images unique match found for
{'name': u'cirros-0.3.5'}
This patch fixs this error by skipping load cirros image if there already exist
one in the glance.
Change-Id: I4d43d82d331f6575efd4560be9b6be175e03cd1b
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
3f70095d15afb86567f885cbfbd89183d857f671)
JingLu5 [Thu, 30 Mar 2017 06:36:29 +0000 (06:36 +0000)]
Bugfix: Add test suite for opnfv_os-odl_l3-ovs-ha_daily scenario
JIRA: YARDSTICK-617
Apex has a new scenario 'opnfv_os-odl_l3-ovs-ha_daily' in CI.
This patch add yardstick test suite for this scenario.
Change-Id: I50eb84fb506e7cf87cbd6bcb67f3df6d185d8b6b
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
0e930373273dc76db929e8e885beb97e04636ad2)
JingLu5 [Tue, 28 Mar 2017 01:43:21 +0000 (01:43 +0000)]
Refine documentation
Change-Id: I0d3387a520e3decf51bb0f7db53996f148a611d0
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
2347f3977823bfd0c4b1fa832d9046b8a625596b)
rexlee8776 [Thu, 9 Mar 2017 17:40:30 +0000 (01:40 +0800)]
Adding Labels
Labels serve as anchors/ refs when referenced from other documents
This patch adds labels to docs/*/*/index.rst
Change-Id: I046277771130cc6298636fb30f9d6dae7de224cf
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit
6509a1b7ce0cd16f17ea3116af25794938c93566)
rajesh_4k [Mon, 27 Feb 2017 12:39:00 +0000 (18:09 +0530)]
Yardstick: User interface for Yardstick.
Currently Yardstick doesnt have any UI which gives detail analysis
of the test-results.
This commit generates a HTML page after the execution of a command
"yardstick report generate <task-ID> <TC-name>" which intern
can be executed after the execution of test-case.
Used: Highcharts.js for the graphs.
JIRA: YARDSTICK-280
Change-Id: Ic98cc348719f3922bff178f52e7944a4a931763a
Signed-off-by: Rajesh K <4k.rajesh@gmail.com>
(cherry picked from commit
25b21add71fcf7c2c795bd950b5117d69fac68fb)
Michael Polenchuk [Fri, 24 Mar 2017 13:55:39 +0000 (17:55 +0400)]
Update cirros image to latest version
Change-Id: Iffa1e4529e5b6e9664ac503a5815ea9a034d7515
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
(cherry picked from commit
043727feabaf7cabb719dbd3d52274bcd0dbea66)
JingLu5 [Tue, 28 Mar 2017 03:15:35 +0000 (03:15 +0000)]
Set work directory in Yardstick container
JIRA: YARDSTICK-608
Set the work directory to /home/opnfv/repos in yardstick docker container to
help users better understand file structure.
This is a improvement related with document improvement.
Change-Id: Ief4b76e6d6898ceab4a546574f5a09d51eb0d945
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
343970dc9c6193e28863e4ab8bae801b5060ae6a)
chenjiankun [Tue, 28 Mar 2017 13:51:42 +0000 (13:51 +0000)]
Bugfix: improper license header in swagger docs
JIRA: YARDSTICK-609
In the patch:
https://gerrit.opnfv.org/gerrit/#/c/28833/
It update the license header, but it is improper to swagger yaml file.
The license information will show in swagger docs.
So I remove it.
Change-Id: Ib87f0f43a95e3b2145c4b59059c4573000f1997c
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit
6e77001bcd07f30f9edcf4103528002f4c4ec536)
JingLu5 [Thu, 23 Mar 2017 07:53:10 +0000 (07:53 +0000)]
Bugfix:add storperf flavor for TC074
JIRA: YARDSTICK-604
the storperf container now uses a flavor called "storperf", if this flavor is
absent, stack creating process will fail. also the openstack variables that
passed to the storperf container also needs a update
Change-Id: Iab4be6491cc9b24526948e5571f0476ec885a93d
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
0691766d310e00d7f1cec763427db271076b5633)
Jing Lu [Mon, 27 Mar 2017 04:47:33 +0000 (04:47 +0000)]
Merge "Bugfix:HA test cases rely on dynamic ip addresses in fuel pods" into stable/danube
chenjiankun [Mon, 27 Mar 2017 02:18:05 +0000 (02:18 +0000)]
pathspec 'master' did not match any file(s) known to git
JIRA: YARDSTICK-605
On stable branch, exec_tests.sh will also try to git checkout master
branch, which cause error "pathspec 'master' did not match any file(s)
known to git." This is a remianing bug from the previous release.
see at:
https://build.opnfv.org/ci/view/yardstick/job/yardstick-apex-lf-pod1-daily-danube/62/console
This error occur in line 48.
But the reason is 'set -e'
If we set 'set -e':
'git checkout master && git pull' return 1 but it will go on executing;
but 'git checkout master' will return 1 and terminate immediately.
If we do not set, it will return 1 but will terminate immediately.
Actually we not need 'git checkout master' here because it is already in
stable/danube branch.
So I remove it.
Change-Id: I106a1da28cf2deee90ebcb25adaf638a210928ee
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
JingLu5 [Sat, 25 Mar 2017 01:17:53 +0000 (01:17 +0000)]
Bugfix:HA test cases rely on dynamic ip addresses in fuel pods
JIRA: YARDSTICK-602
change HA test cases to rely on dynamical generated pod.yaml in fuel pods
Change-Id: I0efb01489eb2dd94babf1a45bff2fbf6adef5f6e
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
6c414e6f46861f71aa68db43ffabcad2305f3f32)
Jing Lu [Sat, 25 Mar 2017 04:09:27 +0000 (04:09 +0000)]
Merge "yardstick offline support" into stable/danube
Jing Lu [Sat, 25 Mar 2017 04:00:47 +0000 (04:00 +0000)]
Merge "Add CPU pinning support for node context" into stable/danube
Jing Lu [Sat, 25 Mar 2017 04:00:38 +0000 (04:00 +0000)]
Merge "Add NUMA pinning support for node context" into stable/danube
chenjiankun [Mon, 20 Mar 2017 01:37:44 +0000 (01:37 +0000)]
yardstick offline support
JIRA: YARDSTICK-597
Currently yardstick can not run offline.
The reason is yardstick will pull the latest code when run in CI.
Actually we need not pull the latest code because the code in yardstick
is already the latest code.
So I remove them.
Change-Id: Ief87c529625ccaa26e758a2206318b3797bbfd74
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit
52634e40e5668e2d8c031781d1b15b482b0511f4)
JingLu5 [Wed, 15 Mar 2017 09:56:09 +0000 (09:56 +0000)]
Update yardstick framework architecture in userguide
JIRA: YARDSTICK-590
This patch update the yardstick framework architecture in the userguide,
also fix some rst grammar mistakes
Change-Id: I84e7c24b4cd936a01f4c191e9f530f15f9f711de
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
7150e6bc49098937edcac0fa9fa108329c74af4a)
JingLu5 [Tue, 21 Mar 2017 07:35:17 +0000 (07:35 +0000)]
Bugfix: Could not load EntryPoint.parse when using 'openstack -h'
JIRA: YARDSTICK-599
Python-openstackclient 3.7.0 has a issus that cause -help info can not be
loaded properly when executing 'openstack -h' command.
Change-Id: I0a5f7a0943d56764b1c4d5d7335aa67b30f39b4c
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
ff3501f28a80537cb9a2453708e2d3d62c4a3292)
Jing Lu [Thu, 23 Mar 2017 03:29:07 +0000 (03:29 +0000)]
Merge "Bugfix: TC002 image error in fuel-arm pod scenarios" into stable/danube
JingLu5 [Thu, 23 Mar 2017 01:14:43 +0000 (01:14 +0000)]
Bugfix: TC002 image error in fuel-arm pod scenarios
JIRA: YARDSTICK-601
This error is cause because the TC 002 configuration file has been modified in
image section, the old sed command in load_images.sh
"sed -i 's/image: cirros-0.3.3/image: TestVM/g' tests/opnfv/test_cases/opnfv_yardstick_tc002.yaml samples/ping.yaml" didn't work properly.
Change-Id: Ie897213622d05bb267f94b466eb2529e797d484e
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
2fb078e21a3cd0dc69732f33b5a6ecc422eb577d)
Matei Valeanu [Mon, 20 Mar 2017 19:19:32 +0000 (20:19 +0100)]
aarch64: Improve arch detection snippet
Get the arch from a compute node
Also move code that depends on YARD_IMG_ARCH,
after YARD_IMG_ARCH gets set
JIRA: YARDSTICK-591
Change-Id: I5ed3ef9cfa92e5bf9e6ada21396d18643cf1a55c
Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
(cherry picked from commit
13d68ab65475ec556383480a17dbaf63e3ab140c)
Ross Brattain [Thu, 9 Mar 2017 04:17:40 +0000 (20:17 -0800)]
Bugfix: load_images cleanup, shellcheck fixes
We should have run shellcheck on this.
This is why we don't use the shell, too many
obscure gotchas.
shellcheck: load_images.sh:25:75: warning: sudo doesn't affect redirects. Use .. | sudo tee -a file [SC2024]
sudo echo foo >> /etc/foo won't work,
the >> will be run in the current shell,
replace with:
echo foo | sudo tee -a /etc/foo
shellcheck: load_images.sh:47:15: warning: Declare and assign separately to avoid masking return values. [SC2155]
replace local cmd='a' with two line version
shellcheck: load_images.sh:141:32: error: [ .. ] can't match globs. Use [[ .. ]] or grep. [SC2081]
use [[ ]]
Change-Id: I14d9768612ea147eaf139603f7eb8753e979ba2c
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit
892d2e536e46a6e6427c061931c58f80b542589d)
Ross Brattain [Mon, 20 Mar 2017 08:52:25 +0000 (01:52 -0700)]
Bugfix: remove vivid as it is EOL
Vivid is end of life, and thus not supported.
Change-Id: Ia293fcd6fd2a3279a642a6dbbb7ad1811334c3e1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit
14172bb39e8e30f37ec5bb80be6b187ab6858e88)
Ross Brattain [Thu, 9 Mar 2017 08:53:12 +0000 (00:53 -0800)]
ubuntu-server-cloudimg-modify.sh: shellcheck fixes
fixes for shellcheck warning
ubuntu-server-cloudimg-modify.sh:51:23: warning: Quote this to prevent word splitting. [SC2046]
ubuntu-server-cloudimg-modify.sh:51:30: note: Double quote to prevent globbing and word splitting. [SC2086]
Change-Id: I6cff0713a0471e5ce94211d42a7c8b45e3761c4d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit
8a2b7cdb29ff6a56d06e8f83fc098def40e1ed51)
Jing Lu [Wed, 22 Mar 2017 07:49:14 +0000 (07:49 +0000)]
Merge "aarch64: Fix missing qemu-aarch64-static in chroot" into stable/danube
Paul Vaduva [Tue, 21 Mar 2017 14:36:46 +0000 (15:36 +0100)]
aarch64: Fix missing qemu-aarch64-static in chroot
During recent rework, we lost the explicit copy of qemu-aarch64-static
from docker to chroot; so when trying to execute AArch64 binaries
inside chroot, no emulator was present to handle it.
This change brings back (inside chroot) the missing emulator binary.
JIRA: YARDSTICK-595
Change-Id: I146e2eeec2e9452a0db36f0bf0a466a8affc2005
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
(cherry picked from commit
742ee6f3249a6204a351fe02c1334c9b14213e51)
JingLu5 [Fri, 17 Mar 2017 03:23:34 +0000 (03:23 +0000)]
Refine test case description for tc076
JIRA: YARDSTICK-594
Change-Id: Ieaf13a875d00c279d4da57dcdba5bcfb09f44e8f
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
f83a3a15d16333c422ba15b745e94d64712d73bb)
Paul Vaduva [Fri, 17 Mar 2017 14:25:23 +0000 (15:25 +0100)]
Dockerfile: Use qemu-user-static from xenial
qemu-user-static from Trusty crashes when ssl is used in chroot.
JIRA: YARDSTICK-592
Change-Id: I81e8f04d7469082ceb6512cb09e11dfa672e5e98
Signed-off-by: Paul Vaduva <Paul.Vaduva@enea.com>
(cherry picked from commit
9d9925c30e9c7ad477041c28251b411432457568)
JingLu5 [Mon, 20 Mar 2017 02:32:51 +0000 (02:32 +0000)]
update lxd image disk format for openstack CLI
JIRA: YARDSTICK-598
As we have replaced 'glance image-create' command with 'openstack image create'
command, we also need to update the disk-format for openstack CLI. the
'root-tar' is no longer a valid choice. (choose from 'ami', 'ari', 'aki',
'vhd', 'vmdk', 'raw', 'qcow2', 'vhdx', 'vdi', 'iso', 'ploop')
Change-Id: I53f839f658c5a6f216f5bb942b1c4f4dcdbf9814
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
d64fbf2f276a98a7cc37d92c57f5b7f3517286b8)
Jing Lu [Tue, 21 Mar 2017 01:56:13 +0000 (01:56 +0000)]
Merge "Bugfix: replace MD5SUM with SHA256SUMs" into stable/danube
Jing Lu [Tue, 21 Mar 2017 01:33:54 +0000 (01:33 +0000)]
Merge "add missing test suite files for new scenarios" into stable/danube
Ross Brattain [Mon, 20 Mar 2017 08:49:18 +0000 (01:49 -0700)]
Bugfix: replace MD5SUM with SHA256SUMs
MD5 is broken and should not be used
Change-Id: Ib168932387f58f0a538d865f8ef4e3cda046a35a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit
fe655f15b0838b41c8c91543898ceebf23f1494c)
chenjiankun [Mon, 20 Mar 2017 10:31:40 +0000 (10:31 +0000)]
Bugfix: netperf_bottleneck execute failed because is_same_heat_context return True
JIRA: YARDSTICK-600
Bugfix: netperf_bottleneck execute failed because is_same_heat_context return True
So it exit without warning.
I will remove the 'return True' from it.
Change-Id: I48d62bd15ec359e2121f236c48d9d349174f2c10
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
JingLu5 [Mon, 20 Mar 2017 01:10:39 +0000 (01:10 +0000)]
add missing test suite files for new scenarios
JIRA: YARDSTICK-589
Change-Id: I1690d4e2bd741fe1514c8496ee6ff10b72158859
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
f7371c36ff26ae9a8f526d0b76d13020a2239a23)
JingLu5 [Wed, 8 Mar 2017 03:28:27 +0000 (03:28 +0000)]
Add CPU pinning support for node context
JIRA: YARDSTICK-573
Since the yardstick framework now has supported an improved node type context,
this patch adds support for VM vcpu pinning ability in the node type context.
It provides several scripts that can be used to configurate the controller and
compute nodes.
Change-Id: If2c6e7b1b85ff78b9d2a5997bf03bdc6877aaf74
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
f138b480ea4c9954d107555d7a46ec3d4375653f)
JingLu5 [Wed, 8 Mar 2017 08:10:01 +0000 (08:10 +0000)]
Add NUMA pinning support for node context
JIRA: YARDSTICK-574
Since the yardstick framework now has supported an improved node type context,
this patch adds support for VM NUMA pinning ability in the node type context.
It provides several scripts that can be used to configurate the controller and
compute nodes
Change-Id: If5eafdca6df1b1196bc17bfdd12aea9f4016752f
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
be4fad1e486f6c4bf993335f0aecaa3682a37da8)
JingLu5 [Wed, 15 Mar 2017 01:30:23 +0000 (01:30 +0000)]
add missing test suite files for new scenarios
JIRA: YARDSTICK-589
Some new scenarios, e.g, opnfv_k8-nosdn-nofeature-noha_daily, have been added
in the Danube release, test suite files for these scenarios should be added.
Change-Id: If3f4ef233b7b1516e182ed28f15feece1728e6d9
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
94d0c6200c8f39988911eedffea703f8b4737fcf)
JingLu5 [Fri, 17 Mar 2017 02:08:55 +0000 (02:08 +0000)]
Bugfix: yardstick-image built without test tools
JIRA: YARDSTICK-593
The yardstick-image now built dosen't have test tools in it.
This patch aims to fix this issus.
Change-Id: I9863a933106236835c16e21f84aa107ffd554df7
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit
bd90c394fe223c5d465d70fb24076ef1d9258c91)
Kubi [Fri, 17 Mar 2017 09:07:37 +0000 (09:07 +0000)]
Merge "Bugfix: network_utilization: parse error" into stable/danube
Guo Ruijing [Tue, 14 Mar 2017 23:41:25 +0000 (07:41 +0800)]
fix fuel plugin installation issue
Change-Id: Ie17ba0ac941d1b96148ee23ed9522a93309f56c5
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
chenjiankun [Mon, 13 Mar 2017 09:25:19 +0000 (09:25 +0000)]
Bugfix: fatal: destination path '/opt/tempT' already exists and is not an empty directory.
JIRA: YARDSTICK-588
ubuntu-server-cloudimg-modify.sh: fixes and cleanup
https://build.opnfv.org/ci/view/fuel/job/yardstick-fuel-virtual-daily-master/1233/console
saw this in an error log, not sure if it is a real error
+ [[ amd64 = \a\r\m\6\4 ]]
+ git clone https://github.com/kdlucas/byte-unixbench.git /opt/tempT
fatal: destination path '/opt/tempT' already exists and is not an empty
directory.
+ error_trap
+ local rc=128
+ set +e
+ '[' -z '' ']'
+ exitcode=128
workaround by deletign /opt/tempT always before cloning
also improve ln with relative symlink and forcing filename target
Change-Id: Ia9c35a877207494623055b1b2134f7834fadedf8
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit
f31b7d56c07c17607df605aacc9b60bf786428e0)
chenjiankun [Thu, 9 Mar 2017 08:59:29 +0000 (08:59 +0000)]
Bugfix: network_utilization: parse error
JIRA: YARDSTICK-586
When run tc072, there is a bug: network_utilization: parse error, see the log:
ERROR ('network_utilization: parse error', [], [u'05:10:46', u'IFACE',
u'rxpck/s', u'txpck/s', u'rxkB/s', u'txkB/s', u'rxcmp/s',
u'txcmp/s', u'rxmcst/s', u'%ifutil'])
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/runners/duration.py",
line 69, in _worker_process
method(data)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/networking/netutilization.py",
line 191, in run
result.update(self._get_network_utilization())
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/networking/netutilization.py",
line 182, in _get_network_utilization
result = self._filtrate_result(raw_result)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/networking/netutilization.py",
line 146, in _filtrate_result
fields, line)
RuntimeError: ('network_utilization: parse error', [], [u'05:10:46',
u'IFACE', u'rxpck/s', u'txpck/s', u'rxkB/s', u'txkB/s',
u'rxcmp/s', u'txcmp/s', u'rxmcst/s', u'%ifutil'])
Maybe the tool has some changes.
Change-Id: I6c4fe3fe9f749ec942fb5fbd799b8f4ab9a5c16c
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Fri, 10 Mar 2017 10:43:28 +0000 (10:43 +0000)]
Bugfix: yardstick https support
JIRA: YARDSTICK-587
When run in https environment, there is a bug:
error: failed to deploy stack: '_init_() got an unexpected keyword argument 'ca_cert''
The reason is the key pass to Session() is cacert, but the key should be
verify.
Change-Id: Ia9fc1d7908c2fca9d827a5f64deac7cd333d5c07
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit
747e3c5f8a882b07b6876aae61c84d05a8b832f4)
Rex Lee [Fri, 10 Mar 2017 06:15:58 +0000 (06:15 +0000)]
Merge "Bugfix: Using the right trex version to support both py2.7 & py3"
Rex Lee [Thu, 9 Mar 2017 17:56:59 +0000 (17:56 +0000)]
Merge "Bugfix: Failed executing command: 'free -s 1 -c 10'"
Deepak S [Thu, 9 Mar 2017 14:03:42 +0000 (19:33 +0530)]
Bugfix: Using the right trex version to support both py2.7 & py3
Updating the trex version and downloading the right version for vnf testing :)
Change-Id: Iaca74ce627a05128a60bdc331968d2c56c06522f
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Ross Brattain [Thu, 9 Mar 2017 04:17:22 +0000 (20:17 -0800)]
Bugfix: load_images missing space before =
load_images.sh arm64 change had issue with shell
load_images.sh: line 34: [: amd64=: unary operator expected
https://build.opnfv.org/ci/view/yardstick/job/yardstick-compass-baremetal-daily-master/894/console
Change-Id: I14f0b8628db7ac90a4966f85e9e7e27a0e0fae02
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
chenjiankun [Thu, 9 Mar 2017 02:54:47 +0000 (02:54 +0000)]
Bugfix: Failed executing command: 'free -s 1 -c 10'
JIRA: YARDSTICK-585
In CI when run tc070, there is a error: Failed executing command: 'free -s 1 -c 10'
Here it is the log:
Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/runners/duration.py",
line 69, in _worker_process
method(data)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/compute/memload.py",
line 126, in run
result.update(self._get_mem_usage())
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/compute/memload.py",
line 116, in _get_mem_usage
result = self._execute_command(cmd)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/scenarios/compute/memload.py",
line 70, in _execute_command
cmd, stderr)
RuntimeError: ('Failed executing command: ', 'free -s 1 -c 10',u"free: seconds argument `1' failed\n")
And it is a bug of free. the -c option should in front of -s, so change the position will solve
this problem.
Also it has another bug:
'KeyError', there no 'cached' keyword, so I change it to 'buff/cache'.
Change-Id: I0ca16e8d8cc11c6a3b2f364cadbdb3ea367eee53
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Kubi [Thu, 9 Mar 2017 01:28:07 +0000 (01:28 +0000)]
Merge "Yardstick Preliminary Documentation"
Rex Lee [Thu, 9 Mar 2017 01:26:35 +0000 (01:26 +0000)]
Merge "Bugfix: don't use jsonutils.load, use loads()"
Rex Lee [Thu, 9 Mar 2017 01:26:13 +0000 (01:26 +0000)]
Merge "Record test case names when run a task using API"
Rex Lee [Thu, 9 Mar 2017 01:25:49 +0000 (01:25 +0000)]
Merge "update trex version for constants.so import bug"
Rex Lee [Thu, 9 Mar 2017 01:25:24 +0000 (01:25 +0000)]
Merge "move external_network auto-assign to Heat context"
Rex Lee [Thu, 9 Mar 2017 01:25:03 +0000 (01:25 +0000)]
Merge "Bugfix: yardstick will create stacks with the same name when run using API in parallel"
Ross Brattain [Thu, 26 Jan 2017 00:39:59 +0000 (16:39 -0800)]
fixes: use isinstance, fix logging, use dict literal
isinstance allows for matching with list and dict subclasses
as well and list and dict themselves
Use collections.Mapping for dict
We still have to use list, because iterable is too generic,
strings are iterable for example.
use dict literal for point
fix logging to use deferred interpolation
Change-Id: I4c9b27fd07b57139e86315e39f58d54cc18e402d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
chenjiankun [Sat, 25 Feb 2017 00:48:07 +0000 (00:48 +0000)]
Bugfix: yardstick will create stacks with the same name when run using API in parallel
JIRA: YARDSTICK-575
Currently yardstick will create stacks with the same name when run using
API in parallel.
The reason is there is a global variable in context base and the core
will always deploy the first context in Context.list. When run in
parallel, it will run in the one process. So yardstick will deploy
stacks with the same name.
The solution is do not use Context.list in yardstick core. And using a
local variable instead.
BTW, if we use API to call yardstick core, we can not config the output
way. So I parse yardstick.conf when task start. And I think we can
include scenario_cfg, context_cfg, yardstick_cfg in one config object
later so that we can get all config in one object.
Change-Id: I1ada4ef486bd252e78c3a2e49c6a39b3f8f16a7c
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Wed, 1 Mar 2017 06:50:40 +0000 (22:50 -0800)]
Bugfix: don't use jsonutils.load, use loads()
It looks like jsonutils.load uses a codec reader
to read from the file, but we already are using
Python 3.5 open() which should already do the UTF-8
decode itself.
return json.load(codecs.getreader(encoding)(fp), **kwargs)C
When we use jsonutils.load() we get a TypeErorr when concating
str and bytes
2017-02-28 16:42:38,431 yardstick.cmd.commands.task task.py:61 ERROR
Traceback (most recent call last):
File "yardstick/yardstick/cmd/commands/task.py", line 58, in do_start
self._finish()
File "yardstick/yardstick/cmd/commands/task.py", line 69, in _finish
result = read_json_from_file(self.output_file).get('result')
File "yardstick/yardstick/common/utils.py", line 136, in read_json_from_file
return jsonutils.load(f)
File "yardstick_venv3/lib/python3.5/site-packages/oslo_serialization/jsonutils.py", line 241, in load
return json.load(codecs.getreader(encoding)(fp), **kwargs)
File "/usr/lib/python3.5/json/__init__.py", line 265, in load
return loads(fp.read(),
File "yardstick_venv3/lib/python3.5/codecs.py", line 497, in read
data = self.bytebuffer + newdata
TypeError: can't concat bytes to str
So switch back to jsonutils.loads() which does nothing if the
bytes are already decoded.
JIRA: YARDSTICK-584
Change-Id: I36acfda3df2b46d16a87f2741a04fe7ee8e8d89b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Rex Lee [Wed, 8 Mar 2017 07:17:05 +0000 (07:17 +0000)]
Merge "Add uefi image support for yardstick"
rexlee8776 [Wed, 8 Mar 2017 07:12:55 +0000 (07:12 +0000)]
Yardstick Preliminary Documentation
JIRA: YARDSTICK-554
align with opnfvdocs path structure about testing projects
Change-Id: I6c2f2d37e41447dccd76b9f4426d00fd85cb1e3b
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Ross Brattain [Mon, 6 Mar 2017 07:30:13 +0000 (23:30 -0800)]
update trex version for constants.so import bug
Previously before we disabled Trex in the unittests
we were hitting an error when running Python3.5,
see full description in 28209
https://gerrit.opnfv.org/gerrit/#/c/28209/
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/cython/__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: cannot import name 'constants'
It looks like this was an actual upstream Trex bug
and it was fixed in
https://github.com/cisco-system-traffic-generator/trex-core/commit/
9808fce2b0b3b5b7c9b28303e99486501a1cc10d
zmq: fix wrong constants.so (was used from 3.5 to both versions)
Yaroslav Brustinov <ybrustin@cisco.com>
This Trex fix should be in v2.20.
We don't test Trex in unitests, but people running
Trex on Python3 should hit this issue.
Change-Id: Ic914e48819d7fd3e951628f7c3d3778849da7d94
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Catalina Focsa [Mon, 20 Feb 2017 12:55:23 +0000 (13:55 +0100)]
Add uefi image support for yardstick
Add support for downloading and building an uefi single part image.
Keep three part image support if needed.
Keep modifications required for arm64, when using vivid.
Install and use parted required for GPT partitioning.
Change-Id: I1a9a20701e2fe1f6f644f2c687c5da2e09b69d89
Signed-off-by: Catalina Focsa <catalina.focsa@enea.com>
Rex Lee [Fri, 3 Mar 2017 06:54:07 +0000 (06:54 +0000)]
Merge "Split reporting_target from http_target in yardstick_verify"
rexlee8776 [Wed, 1 Mar 2017 06:55:55 +0000 (06:55 +0000)]
env prepare check openrc already sourced
env prepare should check if openrc is sourced before
using os_fetch_utils to fetch openrc
JIRA: YARDSTICK-577
Change-Id: I0efb0bae3b408156b1133812c29583ab8c58d94b
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Kubi [Wed, 1 Mar 2017 01:55:56 +0000 (01:55 +0000)]
Merge "fix: remove headers from generated files"
Kubi [Wed, 1 Mar 2017 01:55:28 +0000 (01:55 +0000)]
Merge "heat: replace dict key checking with .get()"
Rex Lee [Wed, 1 Mar 2017 01:27:41 +0000 (01:27 +0000)]
Merge "Re-enable floating IP tests for bgpvpn"
Ross Brattain [Mon, 13 Feb 2017 19:30:47 +0000 (11:30 -0800)]
move external_network auto-assign to Heat context
if there are no external networks defined
then assign the external network to the first
network as determined by standard sorting
Change-Id: I9d32eca258f8e7de3d44cec4124c0e8c020c0b85
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
chenjiankun [Tue, 28 Feb 2017 03:42:48 +0000 (03:42 +0000)]
Split reporting_target from http_target in yardstick_verify
JIRA: YARDSTICK-576
Currently the reporting_target reuse the http_target.
But if we want to custom reporting_target, the http_target is also change,
and the yardstick result will store in mongoDB.
So I add reporting_target to split them.
Change-Id: Ib0e4e8ec9a55f49027f9776931fdaa7dc194654b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
rexlee8776 [Mon, 27 Feb 2017 10:49:57 +0000 (10:49 +0000)]
stream default INFO, filehdr default DEBUG
The DEBUG log can be stored as file and pushed into artifacts.
Default sys.out level should be INFO. Stream level can be
changed to DEBUG if cli "-d" is enabled.
remove "-v" since it's not useful for a test framework
JIRA: YARDSTICK-507
Change-Id: I3caafd31a2caac73b0e3f33c2762c090e76c707e
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Romanos Skiadas [Fri, 24 Feb 2017 10:17:42 +0000 (12:17 +0200)]
Re-enable floating IP tests for bgpvpn
Change-Id: I46e4e21787a9b0a3104b2a684d62f50681258205
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
Ross Brattain [Mon, 27 Feb 2017 02:57:46 +0000 (18:57 -0800)]
heat: replace dict key checking with .get()
We init all the fields to None, so the default value
is None, which is what .get() returns when the key
is not present it the dictionary.
Replace
if key in dict:
self.val = dict[key]
with
self.val = dict.get(key)
This also has the added beneifit of re-initializing
default values to None.
In idiomatic Python we do not check a dictionary twice
if we can avoid it. Either use dict.get() with a default
value or catch the KeyError and do the correct thing.
Change-Id: If8d1caeb7288f888f02622d62e8db9f59f50717a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Mon, 27 Feb 2017 03:26:46 +0000 (19:26 -0800)]
fix: remove headers from generated files
experiment_[12].yaml are generated from templates
during the unittest, so they will be overwritten.
yardstick/vTC/apexlake/tests/data/generated_templates/vTC.yaml
was submitted by Vincenzo Riccobene in gerrit
https://gerrit.opnfv.org/gerrit/#/c/11333/
so assign copyright to Intel instead of invalid
user@TRAFCLASS-PACKET1.fuel.local
Change-Id: If516037c4f4c859e417ca12e6d5300e4e0a3817c
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Rex Lee [Mon, 27 Feb 2017 03:12:35 +0000 (03:12 +0000)]
Merge "BugFix: Adopt to latest result structure while parsing the results"
Rex Lee [Mon, 27 Feb 2017 03:10:35 +0000 (03:10 +0000)]
Merge "ci in huawei-pod1 do not run test case after tc074"
Kubi [Mon, 27 Feb 2017 03:08:37 +0000 (03:08 +0000)]
Merge "BugFix: update to paramiko 1.18.0 to fix TypeError"
rexlee8776 [Tue, 14 Feb 2017 02:53:25 +0000 (02:53 +0000)]
heat context support affinity and anti-affinity
JIRA: YARDSTICK-566
Current Heat context support affinity and availability arguments
but not support affinity and anti-affinity.
Enhance Heat context to support affinity and anti-affinity:
1. can create heat server group with affinity/anti-affinity
2. each server could be specified which server group they are in
Change-Id: I46e7376fd116c6e109cb5dcb1c168460918e6d43
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
chenjiankun [Mon, 20 Feb 2017 16:05:29 +0000 (16:05 +0000)]
Add common method of openstack in openstack_utils
JIRA: YARDSTICK-569
We have much redundancy code when using nova/neutron/glance... python client.
So I write this code in openstack_utils for calling.
Change-Id: I322b7577de4933246a15e6742ae5a28bea16eb02
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Mon, 16 Jan 2017 02:42:14 +0000 (02:42 +0000)]
Record test case names when run a task using API
JIRA: YARDSTICK-509
Currently we use influxdb as database and will not record test case name
when run a test suite. So if we must offer test case name if we want to
get result from API.
I will record test case name when run a test suite. So we needn't
offer test case any more when call for get result API.
Change-Id: I87ea4770422cbc46aa6671bfcc53bd4498825eef
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Rex Lee [Thu, 23 Feb 2017 02:09:06 +0000 (02:09 +0000)]
Merge "Update missing license headers"
Rex Lee [Thu, 23 Feb 2017 01:38:11 +0000 (01:38 +0000)]
Merge "improving if conditions :)"
Rex Lee [Thu, 23 Feb 2017 01:33:48 +0000 (01:33 +0000)]
Merge "collectd: typo and call super()"
Rex Lee [Thu, 23 Feb 2017 01:19:28 +0000 (01:19 +0000)]
Merge "Add python-pip & flake8 package to install.sh"
Ross Brattain [Wed, 22 Feb 2017 17:03:16 +0000 (09:03 -0800)]
BugFix: update to paramiko 1.18.0 to fix TypeError
with python 3 there is a paramiko error
due to .keys() usages in python 3
File "python3.5/site-packages/paramiko/ssh_exception.py", line 166, in __init__
body = ', '.join([x[0] for x in addrs[:-1]
TypeError: 'dict_keys' object is not subscriptable
paramiko 1.16.0 tries to index addr.keys() but
addr.keys() is not a dict view in Python 3 and not a list
so we need to convert .keys() to a list, using sorted()
This was most recently fixed in
https://github.com/paramiko/paramiko/commit/
0411010d55755913fa7bd5b0a9c719c8548549f4
which should be in paramiko 1.18.0
Change-Id: I6b10664611cab3b21d3aa33ecf1343ff134f59a1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Jing Lu [Wed, 22 Feb 2017 02:53:03 +0000 (02:53 +0000)]
Merge "add grafana dashboard for os-nosdn-nofeature-ha"
rexlee8776 [Tue, 21 Feb 2017 10:57:51 +0000 (10:57 +0000)]
add grafana dashboard for os-nosdn-nofeature-ha
JIRA: YARDSTICK-401
Change-Id: Ibe8eaaf6bf9d283e51ee3fb2a3062344179a11c6
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Signed-off-by: root <limingjiang@huawei.com>
chenjiankun [Tue, 21 Feb 2017 07:26:51 +0000 (07:26 +0000)]
Create Grafana dashboards according config file under root_path/dashboard
JIRA: YARDSTICK-570
Currently we only create ping Grafana dashboard when create Grafana
docker container.
Actually we need to create some default dashboards.
Change-Id: Icee975ad8c1c960b27625274c775f1716edfa03e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
liyin [Tue, 21 Feb 2017 09:36:44 +0000 (17:36 +0800)]
bottlenecks: stress ping yaml file bug fix
JIRA:YARDSTICK-565
This will remove the limit of "sla"
The "sla" will cause a error of bottlenecks.
so this patch will change it,
so bottlenecks could find the system bottleneck.
Change-Id: I8634e34841677a2032cebd26f1b40f6a0cb2bd39
Signed-off-by: liyin <liyin11@huawei.com>
chenjiankun [Tue, 21 Feb 2017 08:27:28 +0000 (08:27 +0000)]
ci in huawei-pod1 do not run test case after tc074
JIRA: YARDSTICK-568
https://build.opnfv.org/ci/view/yardstick/job/yardstick-compass-baremetal-daily-master/814/consoleFull
the test case tc075 and tc027 after tc074 does not run in the ci, which
is not correct.
the logs shows the suite quit after tc074 finishes.
The reason is:
In this patch: https://gerrit.opnfv.org/gerrit/#/c/26763/
I add a task_id to the context name, but in tc074, it do not have a
name.
It will cause a keyError.
Change-Id: I09608675d9dadcc3ff0d825ca63db3be5e414120
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Deepak S [Sat, 18 Feb 2017 12:36:56 +0000 (18:06 +0530)]
improving if conditions :)
Change-Id: I2fad46b07b252f898acfe116dd6542946b8a26a8
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Kubi [Mon, 20 Feb 2017 10:43:54 +0000 (10:43 +0000)]
Merge "Docs: Adding preliminary documentation for Network Service Benchmarking."
Deepak S [Sat, 18 Feb 2017 12:14:16 +0000 (17:44 +0530)]
Add python-pip & flake8 package to install.sh
On a fresh system, we need "python-pip & flake8" to run
yardstick. Adding same to install.sh
Change-Id: I3e13ffdf53eed7e976e55e2b23afd1b1ea50ec33
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Mon, 13 Feb 2017 08:35:33 +0000 (00:35 -0800)]
Docs: Adding preliminary documentation for Network Service Benchmarking.
This patch adds overview & installation instruction to get started on
VNF testing.
Change-Id: I73c9616d7154f701f542ff9a49c32a9516902ff4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Kubi [Sat, 18 Feb 2017 06:40:45 +0000 (06:40 +0000)]
Merge "yardstick ping testcase yaml update"
Deepak S [Fri, 17 Feb 2017 12:39:49 +0000 (18:09 +0530)]
Update missing license headers
Change-Id: I063fd37fe25754c94d164ae5a209d15b69322093
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Kubi [Fri, 17 Feb 2017 07:31:38 +0000 (07:31 +0000)]
Merge " add scenario to solve apex ci fail"
Kubi [Fri, 17 Feb 2017 07:31:34 +0000 (07:31 +0000)]
Merge "solve apex ci problem (new scenario)"
Kubi [Fri, 17 Feb 2017 07:31:25 +0000 (07:31 +0000)]
Merge "tc076 rst documentation"