yardstick.git
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 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>
7 years agoBugfix: don't use jsonutils.load, use loads() 33/29533/3
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>
7 years agoMerge "Add uefi image support for yardstick"
Rex Lee [Wed, 8 Mar 2017 07:17:05 +0000 (07:17 +0000)]
Merge "Add uefi image support for yardstick"

7 years agoYardstick Preliminary Documentation 13/30013/1
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>
7 years agoupdate trex version for constants.so import bug 27/29827/1
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>
7 years agoAdd uefi image support for yardstick 73/29073/3
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>
7 years agoMerge "Split reporting_target from http_target in yardstick_verify"
Rex Lee [Fri, 3 Mar 2017 06:54:07 +0000 (06:54 +0000)]
Merge "Split reporting_target from http_target in yardstick_verify"

7 years agoenv prepare check openrc already sourced 35/29535/2
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>
7 years agoMerge "fix: remove headers from generated files"
Kubi [Wed, 1 Mar 2017 01:55:56 +0000 (01:55 +0000)]
Merge "fix: remove headers from generated files"

7 years agoMerge "heat: replace dict key checking with .get()"
Kubi [Wed, 1 Mar 2017 01:55:28 +0000 (01:55 +0000)]
Merge "heat: replace dict key checking with .get()"

7 years agoMerge "Re-enable floating IP tests for bgpvpn"
Rex Lee [Wed, 1 Mar 2017 01:27:41 +0000 (01:27 +0000)]
Merge "Re-enable floating IP tests for bgpvpn"

7 years agomove external_network auto-assign to Heat context 31/28731/4
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>
7 years agoSplit reporting_target from http_target in yardstick_verify 67/29467/2
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>
7 years agostream default INFO, filehdr default DEBUG 27/29427/3
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>
7 years agoRe-enable floating IP tests for bgpvpn 49/29349/2
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>
7 years agoheat: replace dict key checking with .get() 09/29409/1
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>
7 years agofix: remove headers from generated files 07/29407/1
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>
7 years agoMerge "BugFix: Adopt to latest result structure while parsing the results"
Rex Lee [Mon, 27 Feb 2017 03:12:35 +0000 (03:12 +0000)]
Merge "BugFix: Adopt to latest result structure while parsing the results"

7 years agoMerge "ci in huawei-pod1 do not run test case after tc074"
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"

7 years agoMerge "BugFix: update to paramiko 1.18.0 to fix TypeError"
Kubi [Mon, 27 Feb 2017 03:08:37 +0000 (03:08 +0000)]
Merge "BugFix: update to paramiko 1.18.0 to fix TypeError"

7 years agoheat context support affinity and anti-affinity 97/28897/10
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>
7 years agoAdd common method of openstack in openstack_utils 59/29059/9
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>
7 years agoRecord test case names when run a task using API 09/27009/5
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>
7 years agoMerge "Update missing license headers"
Rex Lee [Thu, 23 Feb 2017 02:09:06 +0000 (02:09 +0000)]
Merge "Update missing license headers"

7 years agoMerge "improving if conditions :)"
Rex Lee [Thu, 23 Feb 2017 01:38:11 +0000 (01:38 +0000)]
Merge "improving if conditions :)"

7 years agoMerge "collectd: typo and call super()"
Rex Lee [Thu, 23 Feb 2017 01:33:48 +0000 (01:33 +0000)]
Merge "collectd: typo and call super()"

7 years agoMerge "Add python-pip & flake8 package to install.sh"
Rex Lee [Thu, 23 Feb 2017 01:19:28 +0000 (01:19 +0000)]
Merge "Add python-pip & flake8 package to install.sh"

7 years agoBugFix: update to paramiko 1.18.0 to fix TypeError 45/29245/1
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>
7 years agoMerge "add grafana dashboard for os-nosdn-nofeature-ha"
Jing Lu [Wed, 22 Feb 2017 02:53:03 +0000 (02:53 +0000)]
Merge "add grafana dashboard for os-nosdn-nofeature-ha"

7 years agoadd grafana dashboard for os-nosdn-nofeature-ha 39/29139/2
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>
7 years agoCreate Grafana dashboards according config file under root_path/dashboard 17/29117/5
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>
7 years agobottlenecks: stress ping yaml file bug fix 33/29133/1
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>
7 years agoci in huawei-pod1 do not run test case after tc074 29/29129/1
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>
7 years agoimproving if conditions :) 15/29015/2
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>
7 years agoMerge "Docs: Adding preliminary documentation for Network Service Benchmarking."
Kubi [Mon, 20 Feb 2017 10:43:54 +0000 (10:43 +0000)]
Merge "Docs: Adding preliminary documentation for Network Service Benchmarking."

7 years agoAdd python-pip & flake8 package to install.sh 13/29013/1
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>
7 years agoDocs: Adding preliminary documentation for Network Service Benchmarking. 27/28527/9
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>
7 years agoMerge "yardstick ping testcase yaml update"
Kubi [Sat, 18 Feb 2017 06:40:45 +0000 (06:40 +0000)]
Merge "yardstick ping testcase yaml update"

7 years agoUpdate missing license headers 33/28833/4
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>
7 years agoMerge " add scenario to solve apex ci fail"
Kubi [Fri, 17 Feb 2017 07:31:38 +0000 (07:31 +0000)]
Merge " add scenario to solve apex ci fail"

7 years agoMerge "solve apex ci problem (new scenario)"
Kubi [Fri, 17 Feb 2017 07:31:34 +0000 (07:31 +0000)]
Merge "solve apex ci problem (new scenario)"

7 years agoMerge "tc076 rst documentation"
Kubi [Fri, 17 Feb 2017 07:31:25 +0000 (07:31 +0000)]
Merge "tc076 rst documentation"

7 years ago add scenario to solve apex ci fail 09/28809/2
rexlee8776 [Thu, 16 Feb 2017 11:13:02 +0000 (11:13 +0000)]
 add scenario to solve apex ci fail

due to https://gerrit.opnfv.org/gerrit/#/c/27605/
os-odl_l2-bgpvpn-ha in apex has already been renamed to
be os-odl-bgpvpn-ha, so add a new one.

Change-Id: I167bf295b67b2dddbd3da2aa5a2dca666b3fa152
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agosolve apex ci problem (new scenario) 13/28813/2
rexlee8776 [Thu, 16 Feb 2017 11:33:46 +0000 (11:33 +0000)]
solve apex ci problem (new scenario)

new scenario os-odl-gluon-noha in apex pod

Change-Id: I0151ce227e2a3ff476044f0b5c8d4ed61d20b21a
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agoyardstick ping testcase yaml update 15/28815/3
liyin [Thu, 16 Feb 2017 11:29:41 +0000 (19:29 +0800)]
yardstick ping testcase yaml update

JIRA:YARDSTICK-565

this patch will add a yaml file to sample floder.
This yaml will as the yaml file of bottlenecks stress test.
some ping test code will be update.

Change-Id: Icc336d5857f4484334bab61870b8568be887ec30
Signed-off-by: liyin <liyin11@huawei.com>
7 years agotc076 rst documentation 99/28799/2
rexlee8776 [Thu, 16 Feb 2017 09:33:26 +0000 (09:33 +0000)]
tc076 rst documentation

JIRA: YARDSTICK-534

Change-Id: Idcd8fb600d64c0300b5aaf9bd4108eca6c866526
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agoMerge "This Patch is used to add grafana config to opnfv dashboard for kvmfornfv_cycl...
Kubi [Thu, 16 Feb 2017 10:20:41 +0000 (10:20 +0000)]
Merge "This Patch is used to add grafana config to opnfv dashboard for kvmfornfv_cyclictest_cpustress_idle,kvmfornfv_cyclictest_memorystress_idle and kvmfornfv_cyclictest_iostress_idle testcases"

7 years agoMerge "Scenario is reporting result for last test only"
Rex Lee [Thu, 16 Feb 2017 09:38:29 +0000 (09:38 +0000)]
Merge "Scenario is reporting result for last test only"

7 years agoMerge "Bugfix: report date format wrong when upload result data to mongoDB"
Jing Lu [Thu, 16 Feb 2017 09:38:02 +0000 (09:38 +0000)]
Merge "Bugfix: report date format wrong when upload result data to mongoDB"

7 years agoBugfix: report date format wrong when upload result data to mongoDB 71/28771/1
chenjiankun [Thu, 16 Feb 2017 11:09:11 +0000 (11:09 +0000)]
Bugfix: report date format wrong when upload result data to mongoDB

JIRA: YARDSTICK-562

Currently we use the follow code to upload data to mongoDB:
report $scenario_status $start_date $stop_date
And the date format will be '%Y-%m-%d' while we want to it be '%Y-%m-%d
%H:%M:%S'ã

Change-Id: I07e601a6362c844a77f9b15a6bcd225ac2ab3f95
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoMerge "Context improvement: add support for configing node environment"
Rex Lee [Thu, 16 Feb 2017 09:37:16 +0000 (09:37 +0000)]
Merge "Context improvement: add support for configing node environment"