yardstick.git
7 years agoBugfix: Local Openstack Operation in HA test frameworks 47/34247/1 danube.2.0 danube.2.RC1
tjuyinkanglin [Thu, 4 May 2017 07:58:55 +0000 (15:58 +0800)]
Bugfix: Local Openstack Operation in HA test frameworks

JIRA: YARDSTICK-635

Change-Id: Ic27517714db9325e7a3b1ef623c49af61c36b2b5
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
(cherry picked from commit 2fb95fbb9380ea7ce92dcb32cd2f0789b9f91bdc)

7 years agoMerge "standardize ssh auth" into stable/danube
Jing Lu [Thu, 4 May 2017 12:59:04 +0000 (12:59 +0000)]
Merge "standardize ssh auth" into stable/danube

7 years agoUpdate release note for Danube.2.0 45/34245/1
JingLu5 [Thu, 4 May 2017 11:40:45 +0000 (11:40 +0000)]
Update release note for Danube.2.0

Change-Id: I573c156e86ce92eb82179a81d8106752e6421183
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agostandardize ssh auth 43/34243/1
Ross Brattain [Thu, 2 Mar 2017 01:28:46 +0000 (17:28 -0800)]
standardize ssh auth

we need to be following defautl paramiko rules,
first use pkey, then key_filenames (autodetecting ~/.ssh/ keys),
then password

We have too much boilerplate redudant code everywhere, we need
to standardize on a factory function that takes a node dict.

Using Python3 ChainMap we can layer overrides and defaults.

VNF descriptors have to default key_filename, password to Python None.
The only way to do this is to omit key values if the variable is not
defined, this way the dict will not have the value and it will
default to Python None

Add python2 chainmap backport

Updated unittest mocking to use ssh.SSH.from_node

Change-Id: I80b0cb606e593b33e317c9e5e8ed0b74da591514
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 99abbb424007da2e01762f3c040a39c0157cbe1f)

7 years agoStore packetsize in influxdb 41/34241/1
Jing Zhang [Thu, 30 Mar 2017 13:26:55 +0000 (09:26 -0400)]
Store packetsize in influxdb

This allows calculating throughput in Gbps.

Add: test_pktgen.py

Change-Id: I7e2132ec71985c14570ef18b952b2264ebf7abbc
JIRA: YARKSTICK-611
Signed-off-by: Jing Zhang <jing.c.zhang@nokia.com>
(cherry picked from commit 639450d91ab409f70b6f119291197da40b1d5f0b)

7 years agocyclictest: use raw strings to escape \[8 39/34239/1
Ross Brattain [Tue, 4 Apr 2017 06:46:51 +0000 (23:46 -0700)]
cyclictest: use raw strings to escape \[8

Change-Id: I36d93eacab2470f90af5653104ad5c07853411bf
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 4a16c5c592f48953d0b6678376f540b54135d51c)

7 years agoMerge "KVMFORNFV:Passing breaktrace option to cyclictest." into stable/danube
Jing Lu [Thu, 4 May 2017 12:32:19 +0000 (12:32 +0000)]
Merge "KVMFORNFV:Passing breaktrace option to cyclictest." into stable/danube

7 years agoattacker_general: fix logging to use %s 37/34237/1
Ross Brattain [Tue, 4 Apr 2017 06:43:56 +0000 (23:43 -0700)]
attacker_general: fix logging to use %s

Change-Id: Ib451d7883eb5df13cfe95477cea43c076ac0452a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 45f46d5220cbfa89224d55caf94a079fccd2679f)

7 years agoKVMFORNFV:Passing breaktrace option to cyclictest. 33/34233/1
kalyanreddy [Mon, 17 Apr 2017 05:16:23 +0000 (10:46 +0530)]
KVMFORNFV:Passing breaktrace option to cyclictest.

This patch is used to add breaktrace option to monitor the latency
values while executing cyclictest test cases as a part of kvmfornfv
verify and daily jobs.

Change-Id: I035ea72a8946a9d3db37a6ee33ffbf3ca67834a2
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
(cherry picked from commit 97c39be854022146b1c27fa2932bdc88a8781cf9)

7 years agoModify HA test cases and HA test script to support other installers 29/34229/1
tjuyinkanglin [Wed, 3 May 2017 13:53:09 +0000 (21:53 +0800)]
Modify HA test cases and HA test script to support other installers

JIRA: YARDSTICK-633

Change-Id: I65fd1ba11504dc61485f83c3bcc93bec4d41883b
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
(cherry picked from commit 27cc0643cf93f4b44c12fbdfcc3e0841d46214c4)

7 years agoMerge "fix ha issue when run tc050~tc054 in ci" into stable/danube
Jing Lu [Thu, 4 May 2017 11:46:40 +0000 (11:46 +0000)]
Merge "fix ha issue when run tc050~tc054 in ci" into stable/danube

7 years agoMerge "run ha test case in compass pod" into stable/danube
Jing Lu [Thu, 4 May 2017 11:26:44 +0000 (11:26 +0000)]
Merge "run ha test case in compass pod" into stable/danube

7 years agofix ha issue when run tc050~tc054 in ci 25/34225/1
rexlee8776 [Wed, 3 May 2017 07:58:12 +0000 (07:58 +0000)]
fix ha issue when run tc050~tc054 in ci

JIRA: YARDSTICK-634

Change-Id: I46681c7e8afe391eef9c5309470028167e911950
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit 71bbbdb18b5f8621b8b4ed9aa0e4fcc1e8882085)

7 years agorun ha test case in compass pod 23/34223/1
rexlee8776 [Wed, 3 May 2017 14:26:32 +0000 (14:26 +0000)]
run ha test case in compass pod

JIRA: YARDSTICK-634

Change-Id: I586d5177598efeda8ac3937d1eb04cd5b97b6ec6
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
(cherry picked from commit 5c4b29189bd69912c9bc356a15a46db764045537)

7 years agoBugfix: fix HA test case tc046 19/34219/1
JingLu5 [Thu, 4 May 2017 06:46:04 +0000 (06:46 +0000)]
Bugfix: fix HA test case tc046

The original way to kill keystone service didn't work anymore.
this patch uses killall -u to kill keystone processes.

Change-Id: I553b716f17a5ab7e57630468517642a92f06dd27
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit 909606466c50aab19017b6e6cedd3e213aff7c27)

7 years agoMerge "operation_general: fix logging to use %s" into stable/danube
Jing Lu [Thu, 4 May 2017 08:18:57 +0000 (08:18 +0000)]
Merge "operation_general: fix logging to use %s" into stable/danube

7 years agooperation_general: fix logging to use %s 13/34213/1
Ross Brattain [Tue, 4 Apr 2017 06:45:57 +0000 (23:45 -0700)]
operation_general: fix logging to use %s

Change-Id: I1b37cbf07e8858ca3e75bb74c57fe84485ff4989
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 37f600566c56542999529da47299c4caf54d073a)

7 years agoBugfix: fix multi-region support 11/34211/1
Ross Brattain [Wed, 26 Apr 2017 13:13:31 +0000 (15:13 +0200)]
Bugfix: fix multi-region support

When running with multiple regions we need to specify
the region when we select the endpoint.

the region is specified in the OS_REGION_NAME env variable

Change-Id: I37853dd42f6d9013d4475b5e3b2b9f97b6bdc8d0
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 90032ba61345752b014002dda629f84c42780e6c)

7 years agoMerge "Bugfix: fix HA testcases" into stable/danube
Jing Lu [Thu, 4 May 2017 03:15:03 +0000 (03:15 +0000)]
Merge "Bugfix: fix HA testcases" into stable/danube

7 years agoMerge "Bugfix: KeyError when using http dispatcher" into stable/danube
Jing Lu [Thu, 4 May 2017 02:21:03 +0000 (02:21 +0000)]
Merge "Bugfix: KeyError when using http dispatcher" into stable/danube

7 years agoMerge "cachestat: use raw strings to escape \d" into stable/danube
Jing Lu [Thu, 4 May 2017 02:20:53 +0000 (02:20 +0000)]
Merge "cachestat: use raw strings to escape \d" into stable/danube

7 years agoMerge "bugfix: fix HA testcases" into stable/danube
Jing Lu [Thu, 4 May 2017 01:34:28 +0000 (01:34 +0000)]
Merge "bugfix: fix HA testcases" into stable/danube

7 years agoBugfix: KeyError when using http dispatcher 87/34187/1
chenjiankun [Wed, 3 May 2017 01:05:01 +0000 (01:05 +0000)]
Bugfix: KeyError when using http dispatcher

JIRA: YARDSTICK-632

When we use http dispatcher to output yardstick result.
It can upload data, but when we query the data, it get a KeyError.

Change-Id: I5410c207c68cff2621ff8184ae17daa4c286cea5
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit 1f59f2e6769cc7ae6f3b73eb1ce8ee09f2929f72)

7 years agocachestat: use raw strings to escape \d 85/34185/1
Ross Brattain [Tue, 4 Apr 2017 06:46:21 +0000 (23:46 -0700)]
cachestat: use raw strings to escape \d

Change-Id: Iff40f7c938af0d7c148c708eed19095b140ccb8b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
(cherry picked from commit 6bdf476e43200fefb09a11ea1f6312ca8735fd52)

7 years agoBugfix: fix HA testcases 83/34183/1
JingLu5 [Thu, 27 Apr 2017 07:49:02 +0000 (07:49 +0000)]
Bugfix: fix HA testcases

Change-Id: Ic930c59fcf3d7e53d385016051596b6563dca0d7
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit 01261850ea2ea2cb92572c9cfcb2c64bfafe9cbe)

7 years agobugfix: fix HA testcases 81/34181/1
JingLu5 [Thu, 27 Apr 2017 12:46:40 +0000 (12:46 +0000)]
bugfix: fix HA testcases

Change-Id: Ib38e94610a108ff7195cefdfaf048e0f4fd894e8
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit 6604cb5f2d6e3c819cb8488f1ad3468184822cf9)

7 years agoBugfix: yardstick env prepare cmd do not support other installer 79/34179/1
chenjiankun [Thu, 27 Apr 2017 02:27:39 +0000 (02:27 +0000)]
Bugfix: yardstick env prepare cmd do not support other installer

JIRA: YARDSTICK-629

Currently yardstick env prepare do not support other installer.
I will add follow support:
1. Environment variable already exists: then do not fetch openrc file
and do not add EXTERNAL_NETWORK variable.
2. Already have openrc file in /etc/yardstick/openstack.creds: only
source this file in API.
3.Environment variable not exists and openrc file not in
/etc/yardstick/openstack.creds: fetch openrc file and append
EXTERNAL_NETWORK variable.

Change-Id: I4ce98f2e17ef8e0a0a1c33c3862ca301c53bb6c2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit 48ad9b5dfa80c8d05d07c6f7fa12d53deddcf3a2)

7 years agoMerge "Bugfix: Make tc019 abd tc025 accept --task-args options to change pod.yaml...
Kubi [Thu, 27 Apr 2017 06:02:01 +0000 (06:02 +0000)]
Merge "Bugfix: Make tc019 abd tc025 accept --task-args options to change pod.yaml" into stable/danube

7 years agoUpdate virtualenv installation step in userguide 91/33791/1
JingLu5 [Sat, 22 Apr 2017 02:28:44 +0000 (02:28 +0000)]
Update virtualenv installation step in userguide

Change-Id: I0b3e8f22b6878c3b2cf1a54f3c39f2888406c508
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit f6e13de54c5b71f9112c38b12f6c327af743d68a)

7 years agoBugfix: Make tc019 abd tc025 accept --task-args options to change pod.yaml 53/33753/1
xudan [Tue, 25 Apr 2017 07:01:23 +0000 (07:01 +0000)]
Bugfix: Make tc019 abd tc025 accept --task-args options to change pod.yaml

JIRA: YARDSTICK-628

Change-Id: I7d1b84232a7477a2854ef1625cc63521999eff65
Signed-off-by: xudan <xudan16@huawei.com>
(cherry picked from commit 3f7829f0f28ce4d517ea8654122ee0d686fddf3e)

7 years agoYardstick virtualenv support 43/33643/1
chenjiankun [Mon, 10 Apr 2017 11:01:57 +0000 (11:01 +0000)]
Yardstick virtualenv support

JIRA: YARDSTICK-620

In the patch, I separate python-setuptools from install.sh
and separate appdirs from requirements.txt because there will be
error when install them in virtualenv.
Also I will update the documentation when this patch merged;

Change-Id: I99a532d1851983775869e7c5e8e65fd0229e86df
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit bb365d411d88a71871993b4ed803c2ffbbcb79bf)

7 years agoBugfix: fix typo 27/33627/1
JingLu5 [Mon, 27 Mar 2017 02:15:00 +0000 (02:15 +0000)]
Bugfix: fix typo

Change-Id: I9b7cd5f94b1663af3b807ce24c941868b10d85d1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit a84dfcb92e1de313fea7841224be5a374a2d2184)

7 years agoMerge "Bugfix: fix ubuntu image name typo" into stable/danube
Jing Lu [Thu, 6 Apr 2017 07:47:16 +0000 (07:47 +0000)]
Merge "Bugfix: fix ubuntu image name typo" into stable/danube

7 years agoBugfix: fix ubuntu image name typo 47/33047/1
JingLu5 [Thu, 6 Apr 2017 01:56:48 +0000 (01:56 +0000)]
Bugfix: fix ubuntu image name typo

Change-Id: I8722f2ddd096bc784f45d4bcf58ea6a84d319fb2
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit 571ee6afca03120c393def421eb35a466f9a940b)

7 years agoBugfix: fix query job status in TC074 45/33045/1
JingLu5 [Wed, 5 Apr 2017 06:11:16 +0000 (06:11 +0000)]
Bugfix: fix query job status in TC074

JIRA: YARDSTICK-621
The storperf job status query in TC074 didn' work properly. The cause is the
"type: status" is not passed in the URL. This patch also update storperf VM
image to xenial.

Change-Id: Idd9f501416b24612f6045a57ba2a95e2ed3a9572
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit b2fb23ca8ccc1acedaa9156552af4ba347f24103)

7 years agopip install yardstick failed in Apex 43/33043/1
JingLu5 [Thu, 6 Apr 2017 05:02:12 +0000 (05:02 +0000)]
pip install yardstick failed in Apex

JIRA: YARDSTICK-625

In Apex, yardstick uninstall and install via pip failed.
This bug blocks yardstick CI jobs.
This patch enables pip install yardstick in editable mode.
So the install_yardstick() in yardstick_verify is unnecessary.

Change-Id: If290dac5fee5584601064ae9753ae2340643d3ca
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit d2cb7ce7331d8da4c3b5b70b09dac49cf65d1710)

7 years agoMerge "Yardstick virtualenv support" into stable/danube
Jing Lu [Thu, 6 Apr 2017 07:01:18 +0000 (07:01 +0000)]
Merge "Yardstick virtualenv support" into stable/danube

7 years agoYardstick virtualenv support 39/33039/1
chenjiankun [Sat, 1 Apr 2017 01:19:16 +0000 (01:19 +0000)]
Yardstick virtualenv support

JIRA: YARDSTICK-620

Currently we recommend using docker to run yardstick.
And it is hard to use virtualenv to install yardstick.
So I modify install.sh in yardstick root path.
It will support using virtualenv to install yardstick(including API) in
linux.
In this patch, I make yardstick support read yardstick configuration
have priority over constants.

Change-Id: I9ea1241b228532a6497451e6c8f232173ddb783e
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit b74d875134b988a26441d559a9e700aaa68d6a0c)

7 years agoyardstick offline support 37/33037/1
chenjiankun [Tue, 28 Mar 2017 07:58:49 +0000 (07:58 +0000)]
yardstick offline support

JIRA: YARDSTICK-597

Currently yardstick can not run offline.
In some case this will block the process, causing yardstick job failed
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.
Also I check the environment variable and yardstick-image when fetch
openrc file and load images.

Change-Id: I797da272932ab5292aa40585c82c119aa71b8849
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
(cherry picked from commit 38df788fc4a683717a6e7cbd498fad1e7cbe7209)

7 years agoAdd opnfv_os-ovn-nofeature-noha_daily test suite 79/32979/1
JingLu5 [Wed, 5 Apr 2017 01:43:50 +0000 (01:43 +0000)]
Add opnfv_os-ovn-nofeature-noha_daily test suite

JIRA: YARDSTICK-624

Change-Id: Ia783bec53e4d889736db7e510d28c32377d4f9b2
Signed-off-by: JingLu5 <lvjing5@huawei.com>
(cherry picked from commit da47f4de9d57f40ecc7cedeac18c0d061bd21c84)

7 years agoBugfix: take test case modification into effect in load_images.sh 59/32859/1
JingLu5 [Sat, 1 Apr 2017 08:03:24 +0000 (08:03 +0000)]
Bugfix: take test case modification into effect in load_images.sh

JIRA: YARDSTICK-622

Bug log: https://build.opnfv.org/ci/view/armband/job/yardstick-fuel-armband-baremetal-daily-danube/24/console

This error is because the file changes done in the load_images.sh is not updated.
After file modification, pip install -U . is required to tack changes into effect.

Change-Id: I8be3ffc963e3d5cec861b68a33efc2fa5bdabbd2
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoMerge "Set work directory in Yardstick container" into stable/danube
Jing Lu [Sat, 1 Apr 2017 08:52:04 +0000 (08:52 +0000)]
Merge "Set work directory in Yardstick container" into stable/danube

7 years agoRefine documentation 53/32753/1 danube.1.0
JingLu5 [Fri, 31 Mar 2017 09:17:26 +0000 (09:17 +0000)]
Refine documentation

Change-Id: Ic9a84954fdb18ac97afde01541b4c84157df8441
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoadd yardstick_user_interface chapter in userguide 51/32651/1
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)

7 years agoBugfix: Error validating value 'cirros-0.3.5' 03/32503/1
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)

7 years agoBugfix: Add test suite for opnfv_os-odl_l3-ovs-ha_daily scenario 75/32475/1
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)

7 years agoRefine documentation 39/32439/1
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)

7 years agoAdding Labels 37/32437/1
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)

7 years agoYardstick: User interface for Yardstick. 31/32431/1
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)

7 years agoUpdate cirros image to latest version 11/32411/1
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)

7 years agoSet work directory in Yardstick container 17/32117/1
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)

7 years agoBugfix: improper license header in swagger docs 07/32107/1
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)

7 years agoBugfix:add storperf flavor for TC074 71/31971/1
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)

7 years agoMerge "Bugfix:HA test cases rely on dynamic ip addresses in fuel pods" into stable...
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

7 years agopathspec 'master' did not match any file(s) known to git 39/31839/1
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>
7 years agoBugfix:HA test cases rely on dynamic ip addresses in fuel pods 09/31809/1
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)

7 years agoMerge "yardstick offline support" into stable/danube
Jing Lu [Sat, 25 Mar 2017 04:09:27 +0000 (04:09 +0000)]
Merge "yardstick offline support" into stable/danube

7 years agoMerge "Add CPU pinning support for node context" 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

7 years agoMerge "Add NUMA 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

7 years agoyardstick offline support 59/31759/1
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)

7 years agoUpdate yardstick framework architecture in userguide 11/31511/1
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)

7 years agoBugfix: Could not load EntryPoint.parse when using 'openstack -h' 77/31477/1
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)

7 years agoMerge "Bugfix: TC002 image error in fuel-arm pod scenarios" into stable/danube
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

7 years agoBugfix: TC002 image error in fuel-arm pod scenarios 63/31463/1
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)

7 years agoaarch64: Improve arch detection snippet 61/31461/1
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)

7 years agoBugfix: load_images cleanup, shellcheck fixes 57/31457/1
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)

7 years agoBugfix: remove vivid as it is EOL 27/31327/1
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)

7 years agoubuntu-server-cloudimg-modify.sh: shellcheck fixes 25/31325/1
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)

7 years agoMerge "aarch64: Fix missing qemu-aarch64-static in chroot" into stable/danube
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

7 years agoaarch64: Fix missing qemu-aarch64-static in chroot 21/31321/1
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)

7 years agoRefine test case description for tc076 17/31317/1
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)

7 years agoDockerfile: Use qemu-user-static from xenial 31/31131/1
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)

7 years agoupdate lxd image disk format for openstack CLI 15/31115/1
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)

7 years agoMerge "Bugfix: replace MD5SUM with SHA256SUMs" into stable/danube
Jing Lu [Tue, 21 Mar 2017 01:56:13 +0000 (01:56 +0000)]
Merge "Bugfix: replace MD5SUM with SHA256SUMs" into stable/danube

7 years agoMerge "add missing test suite files for new scenarios" 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

7 years agoBugfix: replace MD5SUM with SHA256SUMs 13/31113/1
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)

7 years agoBugfix: netperf_bottleneck execute failed because is_same_heat_context return True 11/31111/1
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>
7 years agoadd missing test suite files for new scenarios 09/31109/1
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)

7 years agoAdd CPU pinning support for node context 09/31009/1
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)

7 years agoAdd NUMA pinning support for node context 07/31007/1
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)

7 years agoadd missing test suite files for new scenarios 05/30905/1
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)

7 years agoBugfix: yardstick-image built without test tools 49/30849/1
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)

7 years agoMerge "Bugfix: network_utilization: parse error" into stable/danube
Kubi [Fri, 17 Mar 2017 09:07:37 +0000 (09:07 +0000)]
Merge "Bugfix: network_utilization: parse error" into stable/danube

7 years agofix fuel plugin installation issue 17/30517/1
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>
7 years agoBugfix: fatal: destination path '/opt/tempT' already exists and is not an empty direc... 69/30369/1
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)

7 years agoBugfix: network_utilization: parse error 21/30321/1
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>
7 years agoBugfix: yardstick https support 19/30319/1
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)

7 years agoMerge "Bugfix: Using the right trex version to support both py2.7 & py3"
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"

7 years agoMerge "Bugfix: Failed executing command: 'free -s 1 -c 10'"
Rex Lee [Thu, 9 Mar 2017 17:56:59 +0000 (17:56 +0000)]
Merge "Bugfix: Failed executing command: 'free -s 1 -c 10'"

7 years agoBugfix: Using the right trex version to support both py2.7 & py3 77/30177/1
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>
7 years agoBugfix: load_images missing space before = 07/30107/2
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>
7 years agoBugfix: Failed executing command: 'free -s 1 -c 10' 05/30105/3
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>
7 years agoMerge "Yardstick Preliminary Documentation"
Kubi [Thu, 9 Mar 2017 01:28:07 +0000 (01:28 +0000)]
Merge "Yardstick Preliminary Documentation"

7 years agoMerge "Bugfix: don't use jsonutils.load, use loads()"
Rex Lee [Thu, 9 Mar 2017 01:26:35 +0000 (01:26 +0000)]
Merge "Bugfix: don't use jsonutils.load, use loads()"

7 years agoMerge "Record test case names when run a task using API"
Rex Lee [Thu, 9 Mar 2017 01:26:13 +0000 (01:26 +0000)]
Merge "Record test case names when run a task using API"

7 years agoMerge "update trex version for constants.so import bug"
Rex Lee [Thu, 9 Mar 2017 01:25:49 +0000 (01:25 +0000)]
Merge "update trex version for constants.so import bug"

7 years agoMerge "move external_network auto-assign to Heat context"
Rex Lee [Thu, 9 Mar 2017 01:25:24 +0000 (01:25 +0000)]
Merge "move external_network auto-assign to Heat context"

7 years agoMerge "Bugfix: yardstick will create stacks with the same name when run using API...
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"

7 years agofixes: use isinstance, fix logging, use dict literal 81/27581/9
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>
7 years agoBugfix: yardstick will create stacks with the same name when run using API in parallel 71/29371/4
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>