yardstick.git
6 years agoImprove IXIA IxNetwork library and traffic profile (2) 21/55321/14
Rodolfo Alonso Hernandez [Tue, 10 Apr 2018 08:15:55 +0000 (09:15 +0100)]
Improve IXIA IxNetwork library and traffic profile (2)

This patch modifies the way the packet frame and the flow is configured
before the injection.

"IxNextgen.update_frame" modifies the L2 frame according to the
test case and setup the frame rate, frame size, traffic injection
duration and MAC addresses.

JIRA: YARDSTICK-1116

Change-Id: Ife08f15a4eda24d7835c92c4172b450854d112ee
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoImprove IXIA IxNetwork library and traffic profile (1) 11/55311/15
Rodolfo Alonso Hernandez [Tue, 10 Apr 2018 07:39:16 +0000 (08:39 +0100)]
Improve IXIA IxNetwork library and traffic profile (1)

This patch introduces a new way to configure the TCL IxNetwork server.
All the configuration is done using the TCL API, removing the need of
using the pre-saved configuration file.

"IxNextgen.assign_ports" creates and assigns the virtual ports for each
physical port defined in the test case.

"IxNextgen.create_traffic_item" creates one traffic item and two flow
groups per pair of ports, in both directions.

"IxNextgen.gt_statistics" retrieves only the required statistics to
generate the samples blob in the traffic generator.

JIRA: YARDSTICK-1116

Change-Id: I8f1c0c55e99c274b2ed8276ed9a385c502e16d93
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge changes from topics 'YARDSTICK-1218', 'YARDSTICK-1216', 'YARDSTICK-1215', ...
Rodolfo Alonso Hernandez [Tue, 12 Jun 2018 07:27:51 +0000 (07:27 +0000)]
Merge changes from topics 'YARDSTICK-1218', 'YARDSTICK-1216', 'YARDSTICK-1215', 'YARDSTICK-1214'

* changes:
  Move IncorrectConfig, IncorrectSetup and IncorrectNodeSetup to exceptions
  Move ErrorClass definition to exceptions module
  Convert SSH custom exceptions to Yardstick exceptions
  Remove AnsibleCommon class method mock

6 years agoMove tests: unit/network_services/vnf_generic 71/56771/8
Emma Foley [Fri, 27 Apr 2018 10:30:20 +0000 (10:30 +0000)]
Move tests: unit/network_services/vnf_generic

* Fix pylint errors
* Add TODOs

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged with a TODO, and should be fixed later.

JIRA: YARDSTICK-837

Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: I3d95537a64bde923703421510d27bac0d6dd92bd

6 years agoMerge "Remove print out of logger exception in TestUtils"
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 13:11:44 +0000 (13:11 +0000)]
Merge "Remove print out of logger exception in TestUtils"

6 years agoMerge "Cleanup TestYardstickNSCli class"
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 13:11:38 +0000 (13:11 +0000)]
Merge "Cleanup TestYardstickNSCli class"

6 years agoMerge "Remove __init__ method overriding in HeatContextTestCase"
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 10:38:59 +0000 (10:38 +0000)]
Merge "Remove __init__ method overriding in HeatContextTestCase"

6 years agoMerge "Standalone XML machine type is not longer valid"
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 10:38:42 +0000 (10:38 +0000)]
Merge "Standalone XML machine type is not longer valid"

6 years agoMerge "Error when adding SR-IOV interfaces in SR-IOV context"
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 10:38:35 +0000 (10:38 +0000)]
Merge "Error when adding SR-IOV interfaces in SR-IOV context"

6 years agoRemove print out of logger exception in TestUtils 43/58343/3
Rodolfo Alonso Hernandez [Thu, 7 Jun 2018 16:50:30 +0000 (17:50 +0100)]
Remove print out of logger exception in TestUtils

Remove print out of logger exception while executing
"TestUtils.test_parse_ini_file_missing_section_header" test case.

JIRA: YARDSTICK-1225

Change-Id: I2a4e447c5d119fb9585b477d74f3d0a002c8278e
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup TestYardstickNSCli class 41/58341/3
Rodolfo Alonso Hernandez [Thu, 7 Jun 2018 16:13:09 +0000 (17:13 +0100)]
Cleanup TestYardstickNSCli class

Remove the console output during the test execution. Refactor the
"parse_arguments" test case.

JIRA: YARDSTICK-1224

Change-Id: I68954b986dbea70752adb121e0445e162bdfddcb
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Fix latency in l2 and l3 PROX generator config files"
Abhijit Sinha [Thu, 7 Jun 2018 12:06:13 +0000 (12:06 +0000)]
Merge "Fix latency in l2 and l3 PROX generator config files"

6 years agoMerge "Use TRex release v2.41 to support both x86 and aarch64"
Rodolfo Alonso Hernandez [Thu, 7 Jun 2018 11:58:07 +0000 (11:58 +0000)]
Merge "Use TRex release v2.41 to support both x86 and aarch64"

6 years agoMerge "Remove instantiated contexts in "test_task""
Rodolfo Alonso Hernandez [Thu, 7 Jun 2018 11:57:31 +0000 (11:57 +0000)]
Merge "Remove instantiated contexts in "test_task""

6 years agoFix latency in l2 and l3 PROX generator config files 35/58135/3
Xavier Simonart [Fri, 1 Jun 2018 08:55:33 +0000 (10:55 +0200)]
Fix latency in l2 and l3 PROX generator config files

JIRA: YARDSTICK-1211

Change-Id: I0899d470ca5a0ec7d42d36a9ff9c39cc7369310c
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
6 years agoMerge "Add NSB PROX Baremetal dashboard for L3"
Abhijit Sinha [Wed, 6 Jun 2018 12:44:03 +0000 (12:44 +0000)]
Merge "Add NSB PROX Baremetal dashboard for L3"

6 years agoMerge "Fix NSB NFVi metrics accuracy"
Abhijit Sinha [Wed, 6 Jun 2018 12:43:51 +0000 (12:43 +0000)]
Merge "Fix NSB NFVi metrics accuracy"

6 years agoMerge "Bump oslo.messaging version to 5.36.0"
Rodolfo Alonso Hernandez [Tue, 5 Jun 2018 16:31:08 +0000 (16:31 +0000)]
Merge "Bump oslo.messaging version to 5.36.0"

6 years agoFix NSB NFVi metrics accuracy 37/58137/7
Xavier Simonart [Fri, 1 Jun 2018 10:16:38 +0000 (12:16 +0200)]
Fix NSB NFVi metrics accuracy

JIRA: YARDSTICK-1212

Change-Id: Ic4d4a3c00e4e278f4de06cc176ff663892895569
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
6 years agoMove IncorrectConfig, IncorrectSetup and IncorrectNodeSetup to exceptions 57/58157/1
Rodolfo Alonso Hernandez [Fri, 1 Jun 2018 15:54:11 +0000 (16:54 +0100)]
Move IncorrectConfig, IncorrectSetup and IncorrectNodeSetup to exceptions

JIRA: YARDSTICK-1218

Change-Id: I804065e9bce3e728f5bf9e756a78df8fd28f74ac
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMove ErrorClass definition to exceptions module 49/58149/2
Rodolfo Alonso Hernandez [Fri, 1 Jun 2018 12:49:38 +0000 (13:49 +0100)]
Move ErrorClass definition to exceptions module

JIRA: YARDSTICK-1216

Change-Id: I82556e1d1b0c723221a58e188067cbce560b8338
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoConvert SSH custom exceptions to Yardstick exceptions 47/58147/1
Rodolfo Alonso Hernandez [Fri, 1 Jun 2018 11:21:20 +0000 (12:21 +0100)]
Convert SSH custom exceptions to Yardstick exceptions

JIRA: YARDSTICK-1215

Change-Id: I5ecfd3dccd91b07cd8de5309dfa1a372eff16ed0
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRemove AnsibleCommon class method mock 41/58141/1
Rodolfo Alonso Hernandez [Fri, 1 Jun 2018 10:48:33 +0000 (11:48 +0100)]
Remove AnsibleCommon class method mock

In [1], several methods in "AnsibleCommon" class are mocked, but those
mocks are not removed after the test execution. Depending on the test
execution order, this affects other results.

[1] https://github.com/opnfv/yardstick/blob/stable/fraser/yardstick/tests/unit/service/test_environment.py#L20

JIRA: YARDSTICK-1214

Change-Id: I85ef702b3b5b2fda5cf453a21b9f0bec61b155f0
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd NSB PROX Baremetal dashboard for L3 39/58139/1
Xavier Simonart [Fri, 1 Jun 2018 10:28:29 +0000 (12:28 +0200)]
Add NSB PROX Baremetal dashboard for L3

JIRA: YARDSTICK-1213

Change-Id: Id96edc5d23d3530110466e1cf69327c3e267e4c0
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
6 years agoRemove __init__ method overriding in HeatContextTestCase 33/58133/1
Rodolfo Alonso Hernandez [Fri, 1 Jun 2018 08:38:28 +0000 (09:38 +0100)]
Remove __init__ method overriding in HeatContextTestCase

Unit test case clases should implement setUp() method instead of overriding
__init__() method.

JIRA: YARDSTICK-1210

Change-Id: I0f9a10575f9aeebf76dfa84619e59589b3ea83f6
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRemove instantiated contexts in "test_task" 23/58123/1
Rodolfo Alonso Hernandez [Thu, 31 May 2018 17:54:31 +0000 (18:54 +0100)]
Remove instantiated contexts in "test_task"

During unit testing, all contexts instantiated must be deleted at the end
of the test to avoid clashes with other tests.

JIRA: YARDSTICK-1209

Change-Id: I1994b915001b4a518e096833a0c5d33febbd8de6
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoReplace glance delete image with shade client. 75/55975/11
Shobhi Jain [Thu, 12 Apr 2018 12:38:21 +0000 (13:38 +0100)]
Replace glance delete image with shade client.

Remove get_image_id function.
Function delete_image now uses shade client.

JIRA: YARDSTICK-892

Change-Id: I6e8510dfa49aa14786ed7ac3382b85c4e699fb9e
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoMerge "Replace glance create image with shade client."
Rodolfo Alonso Hernandez [Thu, 31 May 2018 08:27:29 +0000 (08:27 +0000)]
Merge "Replace glance create image with shade client."

6 years agoMerge "Set "cmd2" library to version 0.8.6"
Rodolfo Alonso Hernandez [Wed, 30 May 2018 13:05:48 +0000 (13:05 +0000)]
Merge "Set "cmd2" library to version 0.8.6"

6 years agoReplace glance create image with shade client. 65/55965/11
Shobhi Jain [Wed, 11 Apr 2018 08:34:22 +0000 (09:34 +0100)]
Replace glance create image with shade client.

Function create_image now uses shade client.

JIRA: YARDSTICK-892

Change-Id: Ia41d9ce702a1f24031080f8a365c1b2bd9ac9faa
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoPTL change from Ross Brattain to Mingjiang Li (Rex) 07/58007/2
Ross Brattain [Tue, 29 May 2018 00:15:24 +0000 (17:15 -0700)]
PTL change from Ross Brattain to Mingjiang Li (Rex)

results of Yardstick PTL election

https://civs.cs.cornell.edu/cgi-bin/results.pl?id=E_b99c79421ce70058&rkey=c39fb1d5405efc15

Change-Id: I1a71f4415a737baec4bd44085ac3115fb86bd560
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoBump oslo.messaging version to 5.36.0 01/58001/2
Rodolfo Alonso Hernandez [Mon, 28 May 2018 15:25:26 +0000 (16:25 +0100)]
Bump oslo.messaging version to 5.36.0

A decoding error was introduced in the AMQP libraries installed by
oslo.messaging version 5.30.2.

Error example:

File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/
        .tox/functional/local/lib/python2.7/site-packages/amqp/utils.py",
         line 89, in str_to_bytes
  return s.encode('utf-8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd2 in position 3: ordinal not in range(128)

This problem is fixed in the library versions installed in version 5.36.0.

JIRA: YARDSTICK-1204

Change-Id: I4719d8e0a0891ebbb3b87c31d593d15f897ef53a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoSet "cmd2" library to version 0.8.6 03/58003/1
Rodolfo Alonso Hernandez [Mon, 28 May 2018 16:55:51 +0000 (17:55 +0100)]
Set "cmd2" library to version 0.8.6

Last "cmd2" version, 0.9.0, removed Python 2+ support [1]. In order to
support Python 2.7, version 0.8.6 (or earlier) must be installed.

[1] https://github.com/python-cmd2/cmd2/commit/e54e5a5b891548df4df0acb04b6e607ad8f871b1

JIRA: YARDSTICK-1205

Change-Id: Ic2fe57438720de5b21c75f9456e653c6facf3ae9
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "PROX: [WIP] Added scale up TCs."
Rodolfo Alonso Hernandez [Mon, 28 May 2018 07:10:49 +0000 (07:10 +0000)]
Merge "PROX: [WIP] Added scale up TCs."

6 years agoMerge "[release] Yardstick release note 6.1.0"
Ross Brattain [Fri, 25 May 2018 21:13:35 +0000 (21:13 +0000)]
Merge "[release] Yardstick release note 6.1.0"

6 years agoBugfix: Yardstick GUI build fails on Fraser 6.1.0 79/57879/1
rexlee8776 [Fri, 25 May 2018 07:49:43 +0000 (07:49 +0000)]
Bugfix: Yardstick GUI build fails on Fraser 6.1.0

Yardstick web GUI build fails due to angular version

JIRA: YARDSTICK-1202

Change-Id: Ie075d18cb2eac2070267759978cbdb7c784599ef
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoDockerfile: add ping for prepare_env.sh 21/57821/1
Ross Brattain [Thu, 24 May 2018 14:17:32 +0000 (07:17 -0700)]
Dockerfile: add ping for prepare_env.sh

INFO: Creating openstack credentials ..
Verifying connectivity to 10.20.0.2...
/home/opnfv/repos/yardstick//tests/ci/prepare_env.sh: line 56: ping: command not found
/home/opnfv/repos/yardstick//tests/ci/prepare_env.sh: line 56: ping: command not found

https://build.opnfv.org/ci/view/yardstick/job/yardstick-fuel-baremetal-daily-master/2400/console

JIRA: YARDSTICK-1201

Change-Id: Ib9e139046724ece4be7a85cc1ae74cbb0ec8e203
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoUse TRex release v2.41 to support both x86 and aarch64 25/57725/4
trevortao [Wed, 23 May 2018 04:42:28 +0000 (12:42 +0800)]
Use TRex release v2.41 to support both x86 and aarch64

Currently Yardstick uses Cisco's TRex release v2.28 which
can only support x86, for the consideration of
multi-arch support of Yardstick, the trex release v2.41
is now available and it can support multi-arch(both x86
and aarch64) now.

For the external lib of v2.41, for x86_64, it looks like:
external_libs/pyzmq-14.5.0/python2/intel/ucs4/64bit/zmq
for arm64, it looks like:
external_libs/pyzmq-14.5.0/python2/arm/ucs4/64bit/zmq
So replace the trex release v2.28 with v2.41.

JIRA: YARDSTICK-1191

Change-Id: I22dc3499283d48a89da1145cc480fd7d2a93a1cc
Signed-off-by: trevortao <trevor.tao@arm.com>
6 years agoTest case spec for SDN controller resilience in HA config 91/50991/7
Georg Kunz [Tue, 23 Jan 2018 12:43:24 +0000 (13:43 +0100)]
Test case spec for SDN controller resilience in HA config

This is the test case specification for verifying the HA capabilities
of a SDN controller running in a HA configuration.

JIRA: HA-33
JIRA: YARDSTICK-955

Change-Id: I016ec1ef7bb51b79f8c21440abf8f04c923ef9dc
Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
6 years ago[release] Yardstick release note 6.1.0 13/57513/3
rexlee8776 [Thu, 17 May 2018 02:28:30 +0000 (10:28 +0800)]
[release] Yardstick release note 6.1.0

JIRA: YARDSTICK-1182

Change-Id: I3baca52e9bc0360b43f2ce61ea2f166a70e8c90a
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoStandalone XML machine type is not longer valid 71/57671/1
Rodolfo Alonso Hernandez [Tue, 22 May 2018 10:47:52 +0000 (11:47 +0100)]
Standalone XML machine type is not longer valid

Current XML machine type definition [1] is not longer valid. According to
[2], the default machine type should be "pc-i440fx-xenial".

NOTE: StandAlone physical nodes are deployed using Ubuntu OS.

[1]https://github.com/opnfv/yardstick/blob/master/yardstick/benchmark/contexts/standalone/model.py#L48
[2]https://wiki.ubuntu.com/QemuKVMMigration#Upgrade_machine_type

JIRA: YARDSTICK-1192

Change-Id: I77b1379aaf416b1225e91af2c3ac746cb101f774
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoError when adding SR-IOV interfaces in SR-IOV context 59/57659/4
Rodolfo Alonso Hernandez [Mon, 21 May 2018 16:38:50 +0000 (17:38 +0100)]
Error when adding SR-IOV interfaces in SR-IOV context

Method "add_sriov_interfaces" in Libvirt class throws an error when trying
to add SR-IOV interfaces in the XML file.

Function "setup_sriov_context" in SriovContext if passing to
"_enable_interfaces" method the XML file name instead of passing the XML
string.

JIRA: YARDSTICK-1189

Change-Id: If021c102311ecb98cb26934f78067dfc720e4291
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoBugfix: openrc api dump should be safe_dump 61/57261/4
rexlee8776 [Wed, 9 May 2018 09:52:27 +0000 (09:52 +0000)]
Bugfix: openrc api dump should be safe_dump

1. fix safe_dump
2. fix pep8 problem, use flask_restapi custom error handling [1]

[1] https://flask-restful.readthedocs.io/en/latest/extending.html#custom-error-handlers

JIRA: YARDSTICK-1165

RestApi openrc dump clouds.yaml error

it now use yarml.dump, should be yaml.safe_dump.

dump would gererate !!python/unicode and cause error when upload openrc file in gui

Change-Id: Id3e85f7ba7d4967277ef79109b07d7552179e5db
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "Test case spec for SDN Virtual Switch resilience."
Emma Foley [Sun, 20 May 2018 20:29:53 +0000 (20:29 +0000)]
Merge "Test case spec for SDN Virtual Switch resilience."

6 years agoMerge changes from topics 'YARDSTICK-1154', 'YARDSTICK-1160'
Rodolfo Alonso Hernandez [Thu, 17 May 2018 14:30:05 +0000 (14:30 +0000)]
Merge changes from topics 'YARDSTICK-1154', 'YARDSTICK-1160'

* changes:
  Kubernetes API "delete_service" missing parameter
  Bump Kubernetes Python client to version 6.0.0
  Avoid "volumeMounts" with "configMap" fixed permissions

6 years agoMerge "Parse "dispatcher" options correctly from InfluxDB client"
Rodolfo Alonso Hernandez [Thu, 17 May 2018 14:29:21 +0000 (14:29 +0000)]
Merge "Parse "dispatcher" options correctly from InfluxDB client"

6 years agoMerge "Fix PEP8 errors in prox_binseach"
Abhijit Sinha [Thu, 17 May 2018 10:47:49 +0000 (10:47 +0000)]
Merge "Fix PEP8 errors in prox_binseach"

6 years agoMerge "Add --hwlb options as a command line argument for SampleVNF"
Rodolfo Alonso Hernandez [Wed, 16 May 2018 10:26:02 +0000 (10:26 +0000)]
Merge "Add --hwlb options as a command line argument for SampleVNF"

6 years agoAdd --hwlb options as a command line argument for SampleVNF 01/56901/8
Chornyi, TarasX [Mon, 30 Apr 2018 14:17:26 +0000 (17:17 +0300)]
Add --hwlb options as a command line argument for SampleVNF

To enable HWLB queues in samplevnf on supported hardware
(e.g Intel  Fortville) --hwlb option needs to be passed
as a VNF command line argument.

JIRA: YARDSTICK-1159

Change-Id: I6e5c098dc71a711252b545c7622ee52085fa81f0
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoMerge "Move tests: unit/network_services/helpers"
Rodolfo Alonso Hernandez [Wed, 16 May 2018 08:40:48 +0000 (08:40 +0000)]
Merge "Move tests: unit/network_services/helpers"

6 years agoMerge "Move tests: unit/network_services/nfvi"
Rodolfo Alonso Hernandez [Wed, 16 May 2018 08:40:42 +0000 (08:40 +0000)]
Merge "Move tests: unit/network_services/nfvi"

6 years agoMerge "Move tests: unit/network_services/traffic_profile"
Rodolfo Alonso Hernandez [Wed, 16 May 2018 08:40:37 +0000 (08:40 +0000)]
Merge "Move tests: unit/network_services/traffic_profile"

6 years agoMerge "Test case description and configuration file for yardstick_tc088"
Jing Lu [Wed, 16 May 2018 08:14:06 +0000 (08:14 +0000)]
Merge "Test case description and configuration file for yardstick_tc088"

6 years agoMerge "Test case description and configuration file for yardstick_tc089"
Jing Lu [Wed, 16 May 2018 08:13:48 +0000 (08:13 +0000)]
Merge "Test case description and configuration file for yardstick_tc089"

6 years agoMove tests: unit/network_services/helpers 77/56777/4
Emma Foley [Fri, 27 Apr 2018 10:33:17 +0000 (10:33 +0000)]
Move tests: unit/network_services/helpers

* Fix pylint errors
* Add TODOs

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged with a TODO, and should be fixed later.

JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: If0b77a6e0b102071ecfb212362647c62a621e4f9

6 years agoMove tests: unit/network_services/nfvi 75/56775/4
Emma Foley [Fri, 27 Apr 2018 10:41:10 +0000 (10:41 +0000)]
Move tests: unit/network_services/nfvi

* Fix pylint errors
* Add TODOs

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged with a TODO, and should be fixed later.

JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: Id330ee1c89d54ef487edb7fe160e5a31d9a3094f

6 years agoMove tests: unit/network_services/traffic_profile 73/56773/4
Emma Foley [Fri, 27 Apr 2018 10:37:37 +0000 (10:37 +0000)]
Move tests: unit/network_services/traffic_profile

* Fix pylint errors
* Add TODOs

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged with a TODO, and should be fixed later.

JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: Id983a2e415d66633331e7fea96a377e2a7589980

6 years agoMerge "Start nginx and uwsgi servicies only in not container mode"
Rodolfo Alonso Hernandez [Tue, 15 May 2018 17:04:34 +0000 (17:04 +0000)]
Merge "Start nginx and uwsgi servicies only in not container mode"

6 years agoStart nginx and uwsgi servicies only in not container mode 09/57409/2
Stepan Andrushko [Tue, 15 May 2018 15:42:55 +0000 (18:42 +0300)]
Start nginx and uwsgi servicies only in not container mode

No need to execute nginx and uwsgi when running in container mode.

JIRA: YARDSTICK-1179

Change-Id: I253f3adab388a14886b70e6589936f6eb27ac4c0
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
6 years agoMerge "Fix PROX throughput result calculation"
Abhijit Sinha [Tue, 15 May 2018 15:46:39 +0000 (15:46 +0000)]
Merge "Fix PROX throughput result calculation"

6 years agoFix PEP8 errors in prox_binseach 61/57361/3
Abhijit Sinha [Mon, 14 May 2018 13:38:52 +0000 (14:38 +0100)]
Fix PEP8 errors in prox_binseach

There were some pep8 errors in the
prox_binsearch.py file. These are fixed here.

JIRA: YARDSTICK-1173

Change-Id: I817bba89c6ba298bb0f27b2538aa7585cb286754
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
6 years agoFix PROX throughput result calculation 59/57359/8
Abhijit Sinha [Mon, 14 May 2018 13:31:52 +0000 (14:31 +0100)]
Fix PROX throughput result calculation

The success criteria needed a fix for throughput
calculation. The results on success criteria were
muliplied by 1000*1000 which is not correct and
not needed as this was leading to false results
in grafana.

JIRA: YARDSTICK-1172

Change-Id: I56b24a700f8a565db80897aeab796e7039cae5c9
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
6 years agoMerge "Replace cinder detach volume with shade client."
Rodolfo Alonso Hernandez [Tue, 15 May 2018 08:07:47 +0000 (08:07 +0000)]
Merge "Replace cinder detach volume with shade client."

6 years agoMerge "Replace cinder delete volume with shade client."
Rodolfo Alonso Hernandez [Tue, 15 May 2018 08:03:46 +0000 (08:03 +0000)]
Merge "Replace cinder delete volume with shade client."

6 years agoMerge "Replace cinder create volume with shade client."
Rodolfo Alonso Hernandez [Tue, 15 May 2018 08:03:41 +0000 (08:03 +0000)]
Merge "Replace cinder create volume with shade client."

6 years agoMerge "Document for Euphrates test case results"
Jing Lu [Tue, 15 May 2018 06:56:01 +0000 (06:56 +0000)]
Merge "Document for Euphrates test case results"

6 years agoMerge "Do not start collectd twice when SampleVNF is running on Baremetal"
Rodolfo Alonso Hernandez [Mon, 14 May 2018 09:39:36 +0000 (09:39 +0000)]
Merge "Do not start collectd twice when SampleVNF is running on Baremetal"

6 years agoMerge "[docs] Add info on gerrit groups to the devguide."
Emma Foley [Mon, 14 May 2018 09:39:29 +0000 (09:39 +0000)]
Merge "[docs] Add info on gerrit groups to the devguide."

6 years agoDo not start collectd twice when SampleVNF is running on Baremetal 79/54979/16
Chornyi, TarasX [Thu, 5 Apr 2018 08:59:20 +0000 (11:59 +0300)]
Do not start collectd twice when SampleVNF is running on Baremetal

JIRA: YARDSTICK-1167

Change-Id: I7591bbb2a84ee4039a20c5da2914f1e374299015
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoMerge "Fix Prox L2fwd generator packet"
Abhijit Sinha [Mon, 14 May 2018 08:27:15 +0000 (08:27 +0000)]
Merge "Fix Prox L2fwd generator packet"

6 years ago[docs] Add info on gerrit groups to the devguide. 29/57329/2
Emma Foley [Fri, 11 May 2018 15:00:03 +0000 (15:00 +0000)]
[docs] Add info on gerrit groups to the devguide.

Added the yardstick-reviewers and yardstick-committers groups
as an alternative to adding individual developers to a code review.

Change-Id: I1ebba56ba27dac00f7e7af7858b3c599a0f1eae8
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "nsb_setup: parametrize docker image"
Emma Foley [Thu, 10 May 2018 09:18:23 +0000 (09:18 +0000)]
Merge "nsb_setup: parametrize docker image"

6 years agoMerge "Update samples/test_suite.yaml"
Abhijit Sinha [Thu, 10 May 2018 09:01:02 +0000 (09:01 +0000)]
Merge "Update samples/test_suite.yaml"

6 years agoMerge "Re enable pip package unit tests"
Rodolfo Alonso Hernandez [Wed, 9 May 2018 16:57:19 +0000 (16:57 +0000)]
Merge "Re enable pip package unit tests"

6 years agoKubernetes API "delete_service" missing parameter 73/57073/6
Rodolfo Alonso Hernandez [Fri, 4 May 2018 16:46:03 +0000 (17:46 +0100)]
Kubernetes API "delete_service" missing parameter

Kubernetes method "delete_service" calls core API function
"delete_namespaced_service". The parameter "body" [1] is missing:

    :param V1DeleteOptions body: (required)

[1] https://github.com/kubernetes-client/python/blob/6.0.0/kubernetes/client/apis/core_v1_api.py

JIRA: YARDSTICK-1154

Change-Id: I40bca2af0f5359eaa788d3b81d82897a770329f0
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoBump Kubernetes Python client to version 6.0.0 65/57065/6
Rodolfo Alonso Hernandez [Fri, 4 May 2018 13:47:55 +0000 (14:47 +0100)]
Bump Kubernetes Python client to version 6.0.0

Bump Kubernetes Python client to version 6.0.0. This versions supports
Kubernetes service from 1.4 to 1.10 (current version) [1].

Current version of Kubernetes service: 1.10.2

[1] https://github.com/kubernetes-client/python/tree/6.0.0#compatibility-matrix

JIRA: YARDSTICK-1153

Change-Id: I96e855a68e39b17af02cd362040f8c765a9531f0
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAvoid "volumeMounts" with "configMap" fixed permissions 45/57045/5
Rodolfo Alonso Hernandez [Fri, 4 May 2018 07:44:56 +0000 (08:44 +0100)]
Avoid "volumeMounts" with "configMap" fixed permissions

To access to the container without using a password, the jumphost
RSA public key is copied to each container, using "volumeMounts"
defined as "configMap", to /root/.ssh/authorized_keys.

To work properly, the following permissions must be set:
  - /root/.ssh: 700
  - /root/.ssh/authorized_keys: 600

Because of [1][2], the mounted folders have fixed permissions and
cannot be modified.

[1]https://groups.google.com/forum/#!topic/kubernetes-dev/eTnfMJSqmaM
[2]https://github.com/kubernetes/kubernetes/issues/28317

JIRA: YARDSTICK-1149

Change-Id: I821064da56699c5b4f509d233c33e55af119fd56
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoUpdate samples/test_suite.yaml 21/55821/3
Emma Foley [Mon, 16 Apr 2018 13:08:25 +0000 (13:08 +0000)]
Update samples/test_suite.yaml

The sample test suite at sample/test_suite.yaml contained incorrect
syntax. It has been updated to add the "default" parameter to
"task_args" when running a testcase.

JIRA: YARDSTICK-1125
Change-Id: I53409168e47d969317145623df1e2c789396cc32
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "Bug Fix: correct the file path to build docker file"
Emma Foley [Wed, 9 May 2018 10:34:56 +0000 (10:34 +0000)]
Merge "Bug Fix: correct the file path to build docker file"

6 years agoFix Prox L2fwd generator packet 03/57203/1
Abhijit Sinha [Wed, 9 May 2018 09:34:30 +0000 (10:34 +0100)]
Fix Prox L2fwd generator packet

The Prox L2-fwd test case has a bad packet, which fails
the test case to run in OpenStack context as it's dropped
by the neutron.

This fix is needed to successfully run the L2fwd 2 and
4 port test cases in heat based test cases.

Change-Id: I86df31a6df1eaa6f968e46af159ac6a0157f402c
JIRA: YARDSTICK-1164
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
6 years agoBug Fix: correct the file path to build docker file 73/57173/4
ting wu [Tue, 8 May 2018 11:51:47 +0000 (13:51 +0200)]
Bug Fix: correct the file path to build docker file

To be able to build a docker file, the path to file
"exec_tests.sh" should be modifed from .docker/exec_tests.sh
to ./exec_tests.sh.

JIRA: YARDSTICK-1157

Change-Id: I0f707ba579039d0efc8f2185b596e23b901c09df
Signed-off-by: ting wu <ting.wu@enea.com>
6 years agoMerge "Fix log typos in benchmark/scenarios/availability"
Emma Foley [Wed, 9 May 2018 09:11:40 +0000 (09:11 +0000)]
Merge "Fix log typos in benchmark/scenarios/availability"

6 years agoMerge "Replace cinder get_volume_id with shade client."
Rodolfo Alonso Hernandez [Wed, 9 May 2018 07:43:37 +0000 (07:43 +0000)]
Merge "Replace cinder get_volume_id with shade client."

6 years agoReplace cinder detach volume with shade client. 71/55571/16
Shobhi Jain [Tue, 10 Apr 2018 14:17:35 +0000 (15:17 +0100)]
Replace cinder detach volume with shade client.

Function detach volume now uses shade client.

JIRA: YARDSTICK-891

Change-Id: Ie437ccf1172cb82dc869963f0d62e31a5ab23ebb
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoReplace cinder delete volume with shade client. 23/55423/13
Shobhi Jain [Tue, 10 Apr 2018 13:13:50 +0000 (14:13 +0100)]
Replace cinder delete volume with shade client.

Function delete volume now uses shade client.

JIRA: YARDSTICK-891

Change-Id: I016e1d3bf5972879cad176b56c7282e35413945e
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoMerge "Implement Virtual Switch resilience test case"
Ross Brattain [Tue, 8 May 2018 08:57:56 +0000 (08:57 +0000)]
Merge "Implement Virtual Switch resilience test case"

6 years agoMerge "Bug Fix: Start openvswitch service in Centos distro"
Ross Brattain [Tue, 8 May 2018 08:57:44 +0000 (08:57 +0000)]
Merge "Bug Fix: Start openvswitch service in Centos distro"

6 years agoMerge "Add support for restarting a service"
Ross Brattain [Tue, 8 May 2018 08:57:30 +0000 (08:57 +0000)]
Merge "Add support for restarting a service"

6 years agoMerge "Add ODL HA testcase"
Ross Brattain [Tue, 8 May 2018 08:57:19 +0000 (08:57 +0000)]
Merge "Add ODL HA testcase"

6 years agoMerge "Add pod.yaml files for Apex"
Ross Brattain [Tue, 8 May 2018 08:57:04 +0000 (08:57 +0000)]
Merge "Add pod.yaml files for Apex"

6 years agoFix log typos in benchmark/scenarios/availability 57/56757/5
Miikka Koistinen [Mon, 7 May 2018 09:12:33 +0000 (12:12 +0300)]
Fix log typos in benchmark/scenarios/availability

This commit fixes multiple log message typos and all the emerged pylint
errors.

MonitorProcess/MonitorOpenstackCmd.verify_SLA() repeat already logged
information, so these prints are removed.

JIRA: YARDSTICK-1145

Change-Id: Ifef26e4b4ff7766089caec24785511969c2d663e
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoReplace cinder create volume with shade client. 05/55405/14
Shobhi Jain [Fri, 6 Apr 2018 13:44:33 +0000 (14:44 +0100)]
Replace cinder create volume with shade client.

Adds get_volume function.
Function create volume now uses shade client.

JIRA: YARDSTICK-891

Change-Id: I0b2fae5f2cf52eaf2e4a0062c858d49bc4ce9ccd
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoReplace cinder get_volume_id with shade client. 35/55335/13
Shobhi Jain [Fri, 6 Apr 2018 10:41:54 +0000 (11:41 +0100)]
Replace cinder get_volume_id with shade client.

Function get_volume_id now uses shade client.

JIRA: YARDSTICK-891

Change-Id: I45ae40982a64f677dbbdeb6c9510a0ec9ac973f1
Signed-off-by: Shobhi Jain <shobhi.jain@intel.com>
6 years agoRe enable pip package unit tests 07/54207/11
Rodolfo Alonso Hernandez [Tue, 20 Mar 2018 14:45:47 +0000 (14:45 +0000)]
Re enable pip package unit tests

In [1] the pip unit test cases were removed, because of a problem in pip3
library. Currently there is a reported error in pip 9.0.2 version, in
_vendor.urllib3 library [2].

This error is solved in [3].

[1]I43b1edc23cebe0db97b6b56a551acd376986dfea
[2]https://github.com/pypa/pip/issues/5079
[3]I2ee28749f146cd3b0e1bf4ed92b51cbe6db8b2f3

JIRA: YARDSTICK-1087

Change-Id: Id4f0e1accf3240b5f27d3698323e679a27f63f87
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Add IxNetwork API Python Binding package"
Rodolfo Alonso Hernandez [Tue, 8 May 2018 07:02:00 +0000 (07:02 +0000)]
Merge "Add IxNetwork API Python Binding package"

6 years agoJörgen Karlsson standing down as Yardstick committer 33/57133/2
Ross Brattain [Mon, 7 May 2018 17:53:22 +0000 (10:53 -0700)]
Jörgen Karlsson standing down as Yardstick committer

https://lists.opnfv.org/pipermail/opnfv-tsc/2018-May/004333.html

Change-Id: Ida2692c9f5f8e41580a653c8e9b5a05b5d99df00
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoTest case spec for SDN Virtual Switch resilience. 29/56329/4
Dimitrios Markou [Tue, 24 Apr 2018 08:09:37 +0000 (11:09 +0300)]
Test case spec for SDN Virtual Switch resilience.

This is a test case for verifying the proper functionality of
SDN Vswitches which are located in the Compute nodes of an OpenStack
environment.
This test case is unaware of the configuration (non-HA,HA)

JIRA: HA-34
JIRA: YARDSTICK-955

Change-Id: I701bf1f9527b1a31b9cb52e102734e10c4162766
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
6 years agoMerge "Add "os_cloud_config" as a new context flag parameter"
Emma Foley [Fri, 4 May 2018 14:54:16 +0000 (14:54 +0000)]
Merge "Add "os_cloud_config" as a new context flag parameter"

6 years agoMerge "Update the dummy-scenario-heat-context testcase"
Rodolfo Alonso Hernandez [Fri, 4 May 2018 13:16:52 +0000 (13:16 +0000)]
Merge "Update the dummy-scenario-heat-context testcase"

6 years agoMerge changes from topics 'YARDSTICK-1147', 'YARDSTICK-1144'
Rodolfo Alonso Hernandez [Fri, 4 May 2018 09:36:32 +0000 (09:36 +0000)]
Merge changes from topics 'YARDSTICK-1147', 'YARDSTICK-1144'

* changes:
  Fix ansible scripts for running in container
  Correctly set PYTHONPATH in Dockerfile