yardstick.git
6 years agoBugfix: uwsgi config file yardstick.ini output error 97/59397/1
rexlee8776 [Sun, 1 Jul 2018 04:02:52 +0000 (04:02 +0000)]
Bugfix: uwsgi config file yardstick.ini output error

JIRA: YARDSTICK-1280

Change-Id: I45b4b781cee21035897ba0c34dc740af6365e918
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoBugfix: docker build failed 85/59385/1
rexlee8776 [Sat, 30 Jun 2018 04:23:27 +0000 (04:23 +0000)]
Bugfix: docker build failed

Due to no inventory.ini specified in Dockerfile, which
resulsts in ansible-playbook run fail

JIRA: YARDSTICK-1277

Change-Id: Iaf689b71b8c86b54b2451d8a8c480f7d94d53561
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoCleanup Iperf3 unit tests 71/59371/1
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 16:58:54 +0000 (17:58 +0100)]
Cleanup Iperf3 unit tests

Removed unneeded output.

JIRA: YARDSTICK-1275

Change-Id: I75fe1f7f048714ba5d2fdfa586ad69ebb7b56c88
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup Plugin unit tests 69/59369/1
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 16:45:47 +0000 (17:45 +0100)]
Cleanup Plugin unit tests

Removed unneeded output (LOG.info and print functions).

JIRA: YARDSTICK-1274

Change-Id: Ida3b62ce28e27058a8b4a3a9e6fa16f041a1f99c
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup NodeContextTestCase unit tests 67/59367/1
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 16:35:48 +0000 (17:35 +0100)]
Cleanup NodeContextTestCase unit tests

Removed deprecated functions.

JIRA: YARDSTICK-1273

Change-Id: I055b8393e6b25eb08f718cd8a915c6ea684786d8
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Update PROX_NSB_DEVGUIDE for F Release"
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 16:18:34 +0000 (16:18 +0000)]
Merge "Update PROX_NSB_DEVGUIDE for F Release"

6 years agoMerge "Yardstick Fraser Release notes - 6.2.0"
Rex Lee [Fri, 29 Jun 2018 15:33:02 +0000 (15:33 +0000)]
Merge "Yardstick Fraser Release notes - 6.2.0"

6 years agoCleanup vPE VNF unit tests 37/59337/2
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 13:36:22 +0000 (14:36 +0100)]
Cleanup vPE VNF unit tests

Removed unneeded output and stopped access to file system.

JIRA: YARDSTICK-1271

Change-Id: I15a58eb7bb81b69fe156433055f59a54372fa0a8
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup TestIxLoadTrafficGen unit tests 25/59325/2
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 11:37:00 +0000 (12:37 +0100)]
Cleanup TestIxLoadTrafficGen unit tests

Removed unneeded output and mock system calls.

JIRA: YARDSTICK-1270

Change-Id: I0e04a67cab592216280481c7145188c4f9045466
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup GetDataDbClientTestCase unit tests 21/59321/2
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 11:01:31 +0000 (12:01 +0100)]
Cleanup GetDataDbClientTestCase unit tests

Removed unneeded output.

JIRA: YARDSTICK-1268

Change-Id: I2e9130e863ba915feeb52f54fc901898b1c8f792
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup VsperfDPDKTestCase unit tests 19/59319/2
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 10:37:42 +0000 (11:37 +0100)]
Cleanup VsperfDPDKTestCase unit tests

Removed unneeded output.

JIRA: YARDSTICK-1267

Change-Id: I0a3f25db2c5ef8ed71fd087b6b35641075c121e7
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup TestProxBinSearchProfile unit tests 15/59315/2
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 10:29:34 +0000 (11:29 +0100)]
Cleanup TestProxBinSearchProfile unit tests

Removed unneeded output and mocks.

JIRA: YARDSTICK-1266

Change-Id: I04fd1ba32ea46c7896548faebc5af1a43b0f750e
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoNFVI support for standalone, baremetal and heat contexts 35/58035/18
Chornyi, TarasX [Tue, 29 May 2018 14:59:49 +0000 (17:59 +0300)]
NFVI support for standalone, baremetal and heat contexts

JIRA: YARDSTICK-1257

Change-Id: I6733bd49ac91985e8f3d7722e6990e8733bb430e
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoUpdate PROX_NSB_DEVGUIDE for F Release 27/59327/8
DanielMartinBuckley [Fri, 29 Jun 2018 12:19:57 +0000 (13:19 +0100)]
Update PROX_NSB_DEVGUIDE for F Release

Contains Updates :-
   New Description of Grafana output
   New Description of ProxDuration Runner
   Update Description of Openstack Network

Change-Id: I861bb7eab4aeed207c0151be6766c48c5f10c6ef
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoMove "read_yaml_file" to common.yaml_loader 13/59313/3
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 16:17:08 +0000 (17:17 +0100)]
Move "read_yaml_file" to common.yaml_loader

JIRA: YARDSTICK-1265

Change-Id: Ic2813dca7fc9a3230632f6e8bd75aeacc7e951b0
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoFix up formatting on devguide 11/58911/2
Emma Foley [Fri, 22 Jun 2018 10:36:11 +0000 (10:36 +0000)]
Fix up formatting on devguide

* Change the notation used for heading levels and
  add a key at the top of the file.
* Wrap lines at 80 characters.
* Highlight keywords

Change-Id: Ic6e7194270bbffb3ddaf688c774b632287b0c201
JIRA: YARDSTICK-1253
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "Removed unused ACL config file."
Rodolfo Alonso Hernandez [Fri, 29 Jun 2018 08:21:57 +0000 (08:21 +0000)]
Merge "Removed unused ACL config file."

6 years agoYardstick Fraser Release notes - 6.2.0 69/59169/6
rexlee8776 [Thu, 28 Jun 2018 03:31:03 +0000 (03:31 +0000)]
Yardstick Fraser Release notes - 6.2.0

JIRA: YARDSTICK-1261

Change-Id: I61adeaea8a727605481ffce9dae9646f160bf401
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "Add testsuite "os-odl-ovs-noha""
Rex Lee [Fri, 29 Jun 2018 01:47:01 +0000 (01:47 +0000)]
Merge "Add testsuite "os-odl-ovs-noha""

6 years agoCleanup OvsDpdkContextTestCase unit tests 13/59213/1
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 16:06:12 +0000 (17:06 +0100)]
Cleanup OvsDpdkContextTestCase unit tests

Removed unneeded output.

JIRA: YARDSTICK-1264

Change-Id: Ic804d5ebd5bc1c0fc8c98c058e8dd76a9ea565fa
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCleanup ScenarioGeneral unit tests 11/59211/1
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 16:00:25 +0000 (17:00 +0100)]
Cleanup ScenarioGeneral unit tests

Removed unneeded output.

JIRA: YARDSTICK-1263

Change-Id: I2ca738a7234cfffb3fd3d3e9566ad043b2d132dc
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Cleanup process test cases"
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 15:56:08 +0000 (15:56 +0000)]
Merge "Cleanup process test cases"

6 years agoMerge "Cleanup OpenStack utils test cases"
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 15:55:59 +0000 (15:55 +0000)]
Merge "Cleanup OpenStack utils test cases"

6 years agoDecrease Sampling interval - Invalid Port results 01/59201/1
DanielMartinBuckley [Thu, 28 Jun 2018 13:51:09 +0000 (14:51 +0100)]
Decrease Sampling interval - Invalid Port results

JIRA: YARDSTICK-1219

The computed in/fwd throughputs displayed on the L2FWD,
L3FWD and VPE dashboards. The computed value is likely
4x the expected value.

It is required to return sampling information form Generator AND VNF at
least every  1 second.

Change-Id: I4435fd05ba3116ead836843a4c2fce133b767a28
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoCleanup ProxDuration unit tests 89/59189/3
Rodolfo Alonso Hernandez [Thu, 28 Jun 2018 08:18:23 +0000 (09:18 +0100)]
Cleanup ProxDuration unit tests

Removed unneeded output, removed access to files, fixed indentation,
bumped deprecated asserts, reduced time execution and fixed file header.

JIRA: YARDSTICK-1262

Change-Id: I4803980748d4731cc27608e386707a858e1a8630
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRemoved unused ACL config file. 59/59159/1
Mytnyk, Volodymyr [Wed, 27 Jun 2018 19:13:19 +0000 (20:13 +0100)]
Removed unused ACL config file.

Change-Id: Ibdb1dd12587df0182b5e8d3b7bc6901be0aac3ec
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
6 years agoMerge "Update to Grafana Dashboard for NSB PROX NFVI"
Abhijit Sinha [Wed, 27 Jun 2018 18:47:40 +0000 (18:47 +0000)]
Merge "Update to Grafana Dashboard for NSB PROX NFVI"

6 years agoMerge "NSB NFVi PROX BNG losing many packets"
Abhijit Sinha [Wed, 27 Jun 2018 18:47:35 +0000 (18:47 +0000)]
Merge "NSB NFVi PROX BNG losing many packets"

6 years agoNSB NFVi PROX BNG losing many packets 31/58731/9
DanielMartinBuckley [Tue, 19 Jun 2018 15:43:41 +0000 (16:43 +0100)]
NSB NFVi PROX BNG losing many packets

JIRA: YARDSTICK-1101

Problem was incorrect generator and changed the traffic profile to allow
a tolerated loss of 5%.

ARP packets are not managed (just passed thru the system) therefor the
tolerated loss must be higehr than normal.

Change-Id: I03bd62b397a66b50961e810d033c6894d0b3e9a6
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoUpdate to Grafana Dashboard for NSB PROX NFVI 47/59147/1
DanielMartinBuckley [Wed, 27 Jun 2018 16:47:33 +0000 (17:47 +0100)]
Update to Grafana Dashboard for NSB PROX NFVI

JIRA: YARDSTICK-1252

CPU grouping in grafana for better representation
Throughput table is difficult to read as the tests
  run longer the values can overlap
Default time in dashboard should be always last 1hour in
  dashboard (auto refresh can be also checked)
Add one column in table with Gbps throughput (Rx
  Throughput) plus code change in yardstick
Boxes are not aligned and big and small, need to be fixed
  boxes are now aligned,
Added Seperate graphe for LINE Rate

Change-Id: Ief31777c2e7a18aab4bf21fb6ccc0e93a3bb9178
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoMerge "Fix NSB NfVi support for 25 and 40Gbps"
Abhijit Sinha [Wed, 27 Jun 2018 16:06:17 +0000 (16:06 +0000)]
Merge "Fix NSB NfVi support for 25 and 40Gbps"

6 years agoCorrected scale-up command line arguments 35/59035/4
Chornyi, TarasX [Tue, 26 Jun 2018 11:39:56 +0000 (14:39 +0300)]
Corrected scale-up command line arguments

Change-Id: If308fde797dcb01e58f37ad81bb116fde542366a
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoFix NSB NfVi support for 25 and 40Gbps 39/58239/8
Xavier Simonart [Tue, 5 Jun 2018 12:06:29 +0000 (14:06 +0200)]
Fix NSB NfVi support for 25 and 40Gbps

When setting interface_speed option in the test case, NSB/PROX
was still considering 100% as 10 Gbps.
With this fix, when interface_speed is set to for instance 25 Gbps
then NSB/PROX will start generate at 25 Gbps.
Yardstick logging info printed on the screen will show performance result
as percentage of interface_speed (e.g. 100% will be 25 Gbps).
This is done by sending the command "speed 250" to PROX (PROX cannot
know the underlying interface speed in all cases e.g. in virtio, and
hence considers 100% as 10Gbps).

JIRA: YARDSTICK-1217

Change-Id: I4989161b04a7afa5e347935ee7ccef7dfe5a504d
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "Resolve NameError in test_utils.py"
Rodolfo Alonso Hernandez [Wed, 27 Jun 2018 12:29:24 +0000 (12:29 +0000)]
Merge "Resolve NameError in test_utils.py"

6 years agoNSB NFVi PROX VPE losing many packets 85/58685/8
DanielMartinBuckley [Mon, 18 Jun 2018 18:27:41 +0000 (19:27 +0100)]
NSB NFVi PROX VPE losing many packets

JIRA: YARDSTICK-1105

Running a vPE test ends up with up to 25% drooped packets.
This is due to tolerated loss being incorrectly configured,
test duration was too short and test interval was too
short.

Note This is due to the fact that vPE use case have by
default a tolerated loss of 100%, Now changed to 0.001,
same as L2FWD

Also: Grafan dashboard has been updated to show all SUT
CPUS Utilization in 1 panel. And LINE rate MIN, MAX & TEST
Rate have been added

Change-Id: I7adae2199b3f656fe460705b6aeb3aa69c767d50
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoAdd testsuite "os-odl-ovs-noha" 87/58187/2
ting wu [Mon, 4 Jun 2018 12:18:15 +0000 (14:18 +0200)]
Add testsuite "os-odl-ovs-noha"

Add testsuite yaml file for scenario
"os-odl-ovs-noha"

JIRA: YARDSTICK-1208

Change-Id: I2671df847332379afed8c6481e54eb25dcba5e48
Signed-off-by: ting wu <ting.wu@enea.com>
6 years agoMerge "Define several containers per pod in a replication controller"
Rodolfo Alonso Hernandez [Wed, 27 Jun 2018 10:32:45 +0000 (10:32 +0000)]
Merge "Define several containers per pod in a replication controller"

6 years agoMerge "Decrease Sampling interval"
Abhijit Sinha [Wed, 27 Jun 2018 01:53:19 +0000 (01:53 +0000)]
Merge "Decrease Sampling interval"

6 years agoNSB NFVi BNG test fails to run - stops after one step 43/58543/7
DanielMartinBuckley [Thu, 14 Jun 2018 15:15:26 +0000 (16:15 +0100)]
NSB NFVi BNG test fails to run - stops after one step

JIRA: YARDSTICK-1244

When sending the start or stop command to PROX. We sould not send the same core.
We should not send "start 1,1" instead we should send "start 1"

Change-Id: Ie600dc3ed808fd00341e92f13bd52199e68dc51f
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoDecrease Sampling interval 61/58261/21
DanielMartinBuckley [Tue, 5 Jun 2018 18:06:38 +0000 (19:06 +0100)]
Decrease Sampling interval

JIRA: YARDSTICK-1219

Currently NSB for NFVI using PROX returns sampling information every 13
seconds.

This is too slow.

It is required to return sampling information form Generator AND VNF at
least every  1 second.

This change is depandant on JIRA: YARDSTICK-1212 and YARDSTICK-1220

Change-Id: Ica7ab795a2919d191d8cd846d028e15739e33fb7
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoMerge "Addition of Configurable Sampling and Configurable Confirmation Retry"
Abhijit Sinha [Tue, 26 Jun 2018 17:39:32 +0000 (17:39 +0000)]
Merge "Addition of Configurable Sampling and Configurable Confirmation Retry"

6 years agoMerge "Bugfix: heat conext of test case yamls jinja2 bypass sriov type"
Abhijit Sinha [Tue, 26 Jun 2018 17:39:18 +0000 (17:39 +0000)]
Merge "Bugfix: heat conext of test case yamls jinja2 bypass sriov type"

6 years agoResolve NameError in test_utils.py 57/59057/1
Emma Foley [Tue, 26 Jun 2018 17:13:35 +0000 (18:13 +0100)]
Resolve NameError in test_utils.py

The import of the yardstick module was removed from test_util.py, which relied
on this module location for a file name in
test_import_modules_from_package_no_mod and test_import_modules_from_package.

JIRA: YARDSTICK-1258
Change-Id: I754dbadfb8d788236f354e9a0c1a61ad6c4abf70
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "Extended Context class with get_physical_nodes functionality"
Rodolfo Alonso Hernandez [Tue, 26 Jun 2018 16:11:38 +0000 (16:11 +0000)]
Merge "Extended Context class with get_physical_nodes functionality"

6 years agoAddition of Configurable Sampling and Configurable Confirmation Retry 97/58297/31
DanielMartinBuckley [Wed, 6 Jun 2018 14:06:01 +0000 (15:06 +0100)]
Addition of Configurable Sampling and Configurable Confirmation Retry

JIRA: YARDSTICK-1221

In order to increase accuracy of result the following are done :-
  - Improve Measurement Accuracy (YARDSTICK-1212)
  - Improve Sampling Interval (YARDSTICK-1219)
  - Allow 4 PROX ports to be read simultaneously (YARDSTICK-1220)

This change does the following :-
  - Stores LINE Rate statistics of Sample
  - Requires a confirmation retry before deciding to increase or
    decrease this is configurable.
  - Allows the user to disable Sampling or specify a sample interval
  - Added Code Coverage of ProxDurationRunner based on YARDSTICK-1199

Change-Id: I27242ac1849c9a2712866385b5fbc05977c71516
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
6 years agoMerge "Bugfix: HA kill process recovery has a conflict"
Abhijit Sinha [Tue, 26 Jun 2018 15:15:02 +0000 (15:15 +0000)]
Merge "Bugfix: HA kill process recovery has a conflict"

6 years agoMerge "NSB Topology fix for Prox 4 port test case"
Emma Foley [Tue, 26 Jun 2018 14:30:20 +0000 (14:30 +0000)]
Merge "NSB Topology fix for Prox 4 port test case"

6 years agoMerge "Refactor "utils.parse_ini_file" testing"
Rodolfo Alonso Hernandez [Tue, 26 Jun 2018 09:53:14 +0000 (09:53 +0000)]
Merge "Refactor "utils.parse_ini_file" testing"

6 years agoMerge "Refactor remote command execution in pktgen_dpdk"
Emma Foley [Tue, 26 Jun 2018 09:38:34 +0000 (09:38 +0000)]
Merge "Refactor remote command execution in pktgen_dpdk"

6 years agoExtended Context class with get_physical_nodes functionality 17/58417/15
Chornyi, TarasX [Mon, 11 Jun 2018 12:18:54 +0000 (15:18 +0300)]
Extended Context class with get_physical_nodes functionality

JIRA: YARDSTICK-1255

Change-Id: I446d715dc6cf716a4fcbc1b809c1b1d6303071e0
Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
6 years agoMerge "Add unit test file for DurationRunner"
Rodolfo Alonso Hernandez [Tue, 26 Jun 2018 07:43:20 +0000 (07:43 +0000)]
Merge "Add unit test file for DurationRunner"

6 years agoMerge "Refactor remote command execution in pktgen"
Rex Lee [Tue, 26 Jun 2018 06:35:55 +0000 (06:35 +0000)]
Merge "Refactor remote command execution in pktgen"

6 years agoNSB Topology fix for Prox 4 port test case 49/58349/8
Abhijit Sinha [Thu, 7 Jun 2018 18:59:08 +0000 (19:59 +0100)]
NSB Topology fix for Prox 4 port test case

The uplink and downlink interfaces for the 4 port
test cases were inconsistent and fixed in this commit.

This affects all the 4 port PROX test cases.

Tested on: Heat L2fwd-4 and L3fwd-4 test case.

JIRA: YARDSTICK-1185

Change-Id: Ia2ce7ed0dc395b812f84ede94e259b42dc833579
Signed-off-by:Abhijit Sinha <abhijit.sinha@intel.com>

6 years agoBugfix: HA kill process recovery has a conflict 13/58713/4
rexlee8776 [Tue, 19 Jun 2018 10:40:20 +0000 (10:40 +0000)]
Bugfix: HA kill process recovery has a conflict

It happens in Nokia SUT when running in the Plugfest. The problem happens when
the start_process start to recover the killed process (like nova-api), but the
self-cured mechanism already recovered. And somehow it lead to a conflict and
has problems.
So the recover of the HA attack-recover should be improved to only recover it
when it needs to.

JIRA: YARDSTICK-1222

Change-Id: I1acb5a7d59d6fe4e0de0b0c5942fa89e051dd1ff
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoAdd unit test file for DurationRunner 13/57813/7
Miikka Koistinen [Thu, 24 May 2018 12:30:12 +0000 (15:30 +0300)]
Add unit test file for DurationRunner

JIRA: YARDSTICK-1199

Change-Id: I5526935207ae3661a4cb8b8d25e93bc26adc3ef2
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoMerge "Cleanup CGNAPT unit tests"
Rodolfo Alonso Hernandez [Mon, 25 Jun 2018 11:27:25 +0000 (11:27 +0000)]
Merge "Cleanup CGNAPT unit tests"

6 years agoMerge "Add "volumeMounts" parameter in Kubernetes context"
Rodolfo Alonso Hernandez [Mon, 25 Jun 2018 11:19:12 +0000 (11:19 +0000)]
Merge "Add "volumeMounts" parameter in Kubernetes context"

6 years agoMerge "Add "volumes" parameter in Kubernetes context"
Rodolfo Alonso Hernandez [Mon, 25 Jun 2018 11:19:04 +0000 (11:19 +0000)]
Merge "Add "volumes" parameter in Kubernetes context"

6 years agoChange IxNextgen library load 71/58971/2
Rodolfo Alonso Hernandez [Mon, 25 Jun 2018 07:47:00 +0000 (08:47 +0100)]
Change IxNextgen library load

Changed IxNextgen library load in IXIA RFC2544 traffic generator call.

JIRA: YARDSTICK-1116

Change-Id: Icbdc5f1255dd2676584f3a1be767287e55e71f4a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Configure ACL via static file"
Abhijit Sinha [Fri, 22 Jun 2018 13:24:20 +0000 (13:24 +0000)]
Merge "Configure ACL via static file"

6 years agoConfigure ACL via static file 09/58109/9
Mytnyk, Volodymyr [Thu, 31 May 2018 09:03:10 +0000 (10:03 +0100)]
Configure ACL via static file

This patch allows user to configure ACL/vFW SampleVNF ACL
via configuration file provided in TC definition. The
Yardstick applies the rules to SampleVNF from specified config
file + rules generated by Yardstick (default rules).

The example of SampleVNF ACL CLI commands generated/applied
by Yardstick can be found at (using default ACL config file):

ACL VNF ACL CLI commands:
  acl/tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml
  http://paste.openstack.org/show/723303/

vFW VNF ACL CLI commands:
  vfw/tc_heat_rfc2544_ipv4_1rule_1flow_64B_trex.yaml
  http://paste.openstack.org/show/723304/

Change-Id: I76a630261a982083b628e3985fc3bec14ca495db
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
6 years agoMerge "Cleanup EnvCommand test cases"
Rodolfo Alonso Hernandez [Thu, 21 Jun 2018 13:28:35 +0000 (13:28 +0000)]
Merge "Cleanup EnvCommand test cases"

6 years agoMerge "Add scale out TCs with availability zone support"
Rodolfo Alonso Hernandez [Thu, 21 Jun 2018 13:06:26 +0000 (13:06 +0000)]
Merge "Add scale out TCs with availability zone support"

6 years agoFix pip install issues in install.yaml script 57/58857/1
Rodolfo Alonso Hernandez [Thu, 21 Jun 2018 11:42:55 +0000 (12:42 +0100)]
Fix pip install issues in install.yaml script

For long executing commands, ansible should use async jobs. For example,
when installing the project requirements.

There is a problem in ansible pip module when using a "editable installs".
This command should be called with "editable" flag.

JIRA: YARDSTICK-1250

Change-Id: I6d29bab2f388373e252d065ff5aa0c459a8f265a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoDPDK site change 55/58755/2
Rodolfo Alonso Hernandez [Wed, 20 Jun 2018 10:41:39 +0000 (11:41 +0100)]
DPDK site change

DPDK site changed and the download URL must be changed.

New site: http://core.dpdk.org/download/

JIRA: YARDSTICK-1248

Change-Id: I87359a4417f09c86717f598c76dc67c422bd39f7
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoBump ansible version to 2.5.5 55/58855/1
Rodolfo Alonso Hernandez [Thu, 21 Jun 2018 10:18:37 +0000 (11:18 +0100)]
Bump ansible version to 2.5.5

Increase ansible version to 2.5.5.

There is a closed bug present in version 2.4.2 which affects to some ansible
scripts. When calling recursively different roles, the maximum recursion
depth can be exceeded [1]. This bug is fixed in proposed version.

[1] https://github.com/ansible/ansible/issues/23609

JIRA: YARDSTICK-1249

Change-Id: Ia45b6a2ab44203e39c52357eb3cfee1e0c77eed3
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Document for Fraser test case results"
Jing Lu [Thu, 21 Jun 2018 02:35:29 +0000 (02:35 +0000)]
Merge "Document for Fraser test case results"

6 years agoNSB setup inventory name changed 53/58753/1
Rodolfo Alonso Hernandez [Wed, 20 Jun 2018 10:26:06 +0000 (11:26 +0100)]
NSB setup inventory name changed

NSB setup script [1] fails when retrieving the inventory file. This script
is going to be deprecated but we still support it.

[1] https://github.com/opnfv/yardstick/blob/master/nsb_setup.sh

JIRA: YARDSTICK-1247

Change-Id: I3798531652b0e3a1a007d1d9434998fdd54645d7
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Refactor RFC2455 TRex traffic profile injection"
Rodolfo Alonso Hernandez [Wed, 20 Jun 2018 07:37:34 +0000 (07:37 +0000)]
Merge "Refactor RFC2455 TRex traffic profile injection"

6 years agoMerge "Add "duration" parameter to test case definition"
Rodolfo Alonso Hernandez [Wed, 20 Jun 2018 07:37:29 +0000 (07:37 +0000)]
Merge "Add "duration" parameter to test case definition"

6 years agoMerge "Update pmd/lcore mask for OVS-DPDK context"
Emma Foley [Tue, 19 Jun 2018 08:58:27 +0000 (08:58 +0000)]
Merge "Update pmd/lcore mask for OVS-DPDK context"

6 years agoRefactor remote command execution in pktgen_dpdk 93/58493/4
Miikka Koistinen [Tue, 12 Jun 2018 13:19:16 +0000 (16:19 +0300)]
Refactor remote command execution in pktgen_dpdk

PktgenDPDKLatency.run will raise a RuntimeError if a remote command
fails. This commit makes it use the already existing exception raising
mechanism in yardstick's ssh client.

JIRA: YARDSTICK-1166

Change-Id: I3a3c7691399044b174f5d040c015c9b907b2fe5d
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoRefactor remote command execution in pktgen 11/57311/5
Miikka Koistinen [Wed, 9 May 2018 14:25:51 +0000 (17:25 +0300)]
Refactor remote command execution in pktgen

Some remote commands in Pktgen are executed without checking the exit
status. This patch makes all remote commands check exit value, and
removes unused variables that are captured from remote command
executions.

JIRA: YARDSTICK-1166

Change-Id: I42a667ebd22d086887d61e1671bc569b03c59d33
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoUpdate pmd/lcore mask for OVS-DPDK context 53/58653/2
Stepan Andrushko [Mon, 18 Jun 2018 11:23:16 +0000 (14:23 +0300)]
Update pmd/lcore mask for OVS-DPDK context

Added default values for pmd/lcore mask to the SampleVNF test case for
Trex TG.
lcore mask - specifies the CPU cores used for non-datapath OVS-DPDK
threads.
pmd mask - specifies the CPU cores used for data path packet processing.
Updated documentation for Standalone OVS-DPDK context.

JIRA: YARDSTICK-1246

Change-Id: I8d008a185c94d2047ffa4769d7974bc4d283fd7f
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
6 years agoCleanup EnvCommand test cases 21/58421/2
Rodolfo Alonso Hernandez [Mon, 11 Jun 2018 13:58:49 +0000 (14:58 +0100)]
Cleanup EnvCommand test cases

Refactor exception testing and remove console output.

JIRA: YARDSTICK-1235

Change-Id: I6376c3637ffb6476a2578ef963cd2420b63bab52
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRefactor RFC2455 TRex traffic profile injection 29/57929/26
Rodolfo Alonso Hernandez [Thu, 24 May 2018 13:02:03 +0000 (14:02 +0100)]
Refactor RFC2455 TRex traffic profile injection

The TRex RFC2455 traffic profile configures the duration of the traffic
injection. Once the traffic is started, the traffic profile should poll
the traffic injector client for the injection status. When the injection
is finished, the traffic execution should end.

Instead of this, the traffic profile waits a fixed time (using time.sleep
method) and then stops the traffic. This approach is not accurate and may
cause shorter injection periods.

JIRA: YARDSTICK-1197

Change-Id: I5090df81ef4ec7945ff6c1aff070656b48e0fe77
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd "duration" parameter to test case definition 59/57759/11
Rodolfo Alonso Hernandez [Wed, 23 May 2018 08:16:39 +0000 (09:16 +0100)]
Add "duration" parameter to test case definition

Add "duration" parameter to test case definition, in scenario:options
section. This parameter will be rendered in the traffic profile.

If the parameter is not present in the test case scenario options, the
default time written in the traffic profile options will be 30 seconds
(TrafficProfile.DEFAULT_DURATION = 30). If the traffic profile
injection time is not defined, the default injection time will be 30
seconds.

  testcase:scenario:options:duration (default = 30)
      render --> traffic_profile:duration
          parse --> TrafficProfile.duration (default = 30)

Target traffic profiles (RFC2544):
  - RFC2544Profile
  - IXIARFC2544Profile

JIRA: YARDSTICK-1194

Change-Id: I968922e6bb882d7ee15aa1c4db4037face7a3492
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge changes from topic 'convert-sla-asserts-to-raises'
Abhijit Sinha [Mon, 18 Jun 2018 10:54:49 +0000 (10:54 +0000)]
Merge changes from topic 'convert-sla-asserts-to-raises'

* changes:
  Replace MagicMocks with Mocks from SearchRunner UTs
  Add vsperf_dpdk SLA validation unit test cases
  Cleanup vsperf unit tests

6 years agoMerge "Convert SLA asserts to raises"
Abhijit Sinha [Mon, 18 Jun 2018 10:53:37 +0000 (10:53 +0000)]
Merge "Convert SLA asserts to raises"

6 years agoStop running tests from tests/unit 67/52367/14
Emma Foley [Tue, 20 Feb 2018 16:19:50 +0000 (16:19 +0000)]
Stop running tests from tests/unit

Since all tests have been moved into yardstick/tests,
temperary code to run tests in both tests and yardstick/tests
should be removed.

JIRA: YARDSTICK-837
Change-Id: I3bf3c9ece9bc8457d992e53ee8cc5cadb1dec8f0
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "Cleanup BaseMonitor unit tests"
Rodolfo Alonso Hernandez [Mon, 18 Jun 2018 08:42:12 +0000 (08:42 +0000)]
Merge "Cleanup BaseMonitor unit tests"

6 years agoCleanup BaseMonitor unit tests 75/58375/3
Rodolfo Alonso Hernandez [Fri, 8 Jun 2018 15:43:40 +0000 (16:43 +0100)]
Cleanup BaseMonitor unit tests

Stop multiprocessing queues to avoid BrokenPipe exception.
Assert correctly the raise of exceptions.

JIRA: YARDSTICK-1229

Change-Id: I1a1c92c49a439283a35c9a69b59d6866f35ec09a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoReplace MagicMocks with Mocks from SearchRunner UTs 23/57323/8
Miikka Koistinen [Fri, 11 May 2018 12:20:24 +0000 (15:20 +0300)]
Replace MagicMocks with Mocks from SearchRunner UTs

This patch replaces unneeded MagicMocks with Mocks from TestSearchRunner
and TestSearchRunnerHelper.

JIRA: YARDSTICK-1169

Change-Id: I30a7bbc71c0b1062e6c0dfe634a5a8f1ecb7c684
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoConvert SLA asserts to raises 61/57061/9
Miikka Koistinen [Fri, 8 Jun 2018 10:54:48 +0000 (13:54 +0300)]
Convert SLA asserts to raises

This commit converts Python assertions to a custom exception in all
places where SLA validation is checked with an assertion.

This commit also fixes all emerged pylint errors.

JIRA: YARDSTICK-966

Change-Id: If771ed03b2cbc0a43a57fcfb9293f18740b3ff80
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoAdd vsperf_dpdk SLA validation unit test cases 73/58373/4
Miikka Koistinen [Fri, 8 Jun 2018 14:53:29 +0000 (17:53 +0300)]
Add vsperf_dpdk SLA validation unit test cases

JIRA: YARDSTICK-1228

Change-Id: Ic32f2bcd7f8bdf718c9c266666409d32ecab4924
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoCleanup vsperf unit tests 71/58371/4
Miikka Koistinen [Fri, 8 Jun 2018 14:42:41 +0000 (17:42 +0300)]
Cleanup vsperf unit tests

Remove unneeded mock return values and improve the test execution.

Add unit test cases about SLA validation.

JIRA: YARDSTICK-1227

Change-Id: I90b8b9c4cb6a57ae4b0869e84af0da43ee22a670
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
6 years agoMerge "assert[Greater,Equal] -> assert_{,not_}called"
Rodolfo Alonso Hernandez [Fri, 15 Jun 2018 08:41:37 +0000 (08:41 +0000)]
Merge "assert[Greater,Equal] -> assert_{,not_}called"

6 years agoBugfix: heat conext of test case yamls jinja2 bypass sriov type 21/58521/4
rexlee8776 [Thu, 14 Jun 2018 03:35:46 +0000 (03:35 +0000)]
Bugfix: heat conext of test case yamls jinja2 bypass sriov type

the "if provider" condition bypass when provider = "sriov",
related to https://gerrit.opnfv.org/gerrit/#/c/32789/

  networks:
    test:
      cidr: '10.0.1.0/24'
      {% if provider == "vlan" %}
      provider: {{provider}}
      physical_network: {{physical_network}}
        {% if segmentation_id %}
      segmentation_id: {{segmentation_id}}
        {% endif %}
      {% endif %}

JIRA: YARDSTICK-1242

Change-Id: I6a611e839654f401648d9bd6188589816f7b4946
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agoMerge "Add "host_name_separator" variable to Context class"
Rodolfo Alonso Hernandez [Thu, 14 Jun 2018 17:07:41 +0000 (17:07 +0000)]
Merge "Add "host_name_separator" variable to Context class"

6 years agoMerge "Install dependencies: bare-metal, standalone"
Emma Foley [Thu, 14 Jun 2018 14:50:01 +0000 (14:50 +0000)]
Merge "Install dependencies: bare-metal, standalone"

6 years agoInstall dependencies: bare-metal, standalone 89/57389/5
Stepan Andrushko [Tue, 15 May 2018 09:46:42 +0000 (12:46 +0300)]
Install dependencies: bare-metal, standalone

This will install all dependencies needed on the bare-metal and standalone
physical nodes.

JIRA: YARDSTICK-1177

Change-Id: I719ca64d4da098d6dd60597e5fc4ad6f4715f79e
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoStop time.sleep mocks in unit tests 33/58533/1
Rodolfo Alonso Hernandez [Thu, 14 Jun 2018 13:14:27 +0000 (14:14 +0100)]
Stop time.sleep mocks in unit tests

tVpeApproxVnf and TestProxSocketHelper classes mock "time.sleep" in
the setUp method without deleting it at the end of the test execution.

JIRA: YARDSTICK-1243

Change-Id: Iff31d9c7b400ad8a47f37792aeb0d20328b9d9e1
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd send socket commands function 93/57593/7
Rodolfo Alonso Hernandez [Sat, 19 May 2018 18:31:37 +0000 (19:31 +0100)]
Add send socket commands function

Pktgen provides a TCP socket connection to allow the user to control
it from a remote console or program [1].

This new method will provide Yardstick the ability to send string
commands to a port in a remote host.

[1] http://pktgen-dpdk.readthedocs.io/en/latest/socket.html

JIRA: YARDSTICK-1186

Change-Id: I9d64ccad662fa3599de65654c5dab02833fcc91d
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoCreate user defined "NodePort" services per pod 29/57529/5
Rodolfo Alonso Hernandez [Wed, 16 May 2018 16:50:09 +0000 (17:50 +0100)]
Create user defined "NodePort" services per pod

This feature will give the user the ability to create user defined "NodePort"
services per pod, a part from the default SSH port created, by default, for
each pod created.

Example of Kubernetes yaml definition:
  apiVersion: v1
  kind: Servicemeta
  data:
    name: pod-1-service-nodeport
  spec:
    type: NodePort
    ports:
      - name: web
        port: 80
        targetPort: 8888
        nodePort: 33333
    clusterIP: 10.254.0.8
    selector:
      app: pod-1

Example of Yardstick test case definition:
  context:
    type: Kubernetes
    servers:
      host:
        containers:
          - image: ...
            securityContext:
              allowPrivilegeEscalation: false
          - image: ...
        node_ports:
          - port: <port number>         # Mandatory
            name: <port name>           # Optional
            targetPort: <port name>     # Optional, default: targetPort=port
            nodePort: <port number>     # Optional, assigned by Kubernetes

Kubernetes service, type "NodePort" [1]

[1] https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport

JIRA: YARDSTICK-1181

Change-Id: Ia7730e4569d5526d573402a98c27d55c5c82cdef
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoChange "KubernetesObject" class name to "ReplicationController" 87/57487/5
Rodolfo Alonso Hernandez [Wed, 16 May 2018 15:37:10 +0000 (16:37 +0100)]
Change "KubernetesObject" class name to "ReplicationController"

The class name "KubernetesObject" is not accurate. This class holds
the definition of a Kubernetes replication controller. The suggested name
is therefore "ReplicationControllerObject".

JIRA: YARDSTICK-1180

Change-Id: I9ee9228f9528cb779e54a9bc178760b6e24c85c2
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoSpecify the networks to be used per pod 35/57435/4
Rodolfo Alonso Hernandez [Tue, 15 May 2018 15:03:30 +0000 (16:03 +0100)]
Specify the networks to be used per pod

If CRD "Network" is defined and network items are created, each pod (server)
can have access to one or several networks. This is defined in the metadata
section, as "annotations.networks" [1].

Example of Kubernetes pod definition with networks:
  apiVersion: v1
  kind: Pod
  metadata:
    name: test-pod
    annotations:
      networks: '[{"name": "flannel"}]'

Example of Yardstick server definition with networks:
  context:
    type: Kubernetes
    servers:
      host:
        containers:
          - name: ...
        networks:
          - flannel  # These names must be defined in
                     # context.networks
    ...
    networks:
      - name: flannel
        plugin: flannel

Kubernetes annotations [2].

[1]https://github.com/intel/multus-cni/tree/b9446232cdf4f1b6f2bea583291973cc97e963f4#configuring-multus-to-use-kubeconfig-and-a-default-network
[2]https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/

JIRA: YARDSTICK-1178

Change-Id: I6e7b4bacf10810833ec733c14d44e5db613675e3
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd new Kubernetes resource kind: "Network" 83/57183/11
Rodolfo Alonso Hernandez [Tue, 8 May 2018 15:46:13 +0000 (16:46 +0100)]
Add new Kubernetes resource kind: "Network"

Add a new Kubernetes resource kind: "Network" [1] [2]
Kubernetes network plugins (alpha definition): [3]

Network definition example in Kubernetes:
  apiVersion: "kubernetes.com/v1"
  kind: Network
  metadata:
    name: flannel
  plugin: flannel
  args: '[
    {delegate": {"isDefaultGateway": true}}
  ]'

Proposed Kubernetes context network definition:
  context:
    networks:
      - name: flannel
        plugin: flannel
        args: (string)
      - name: sriov_upload
        plugin: sriov
        args: (string)

[1]https://builders.intel.com/docs/networkbuilders/multiple-network-interfaces-in-kubernetes-application-note.pdf
[2]http://cdn.opensourcecloud.cn/zt/k8s/01.pdf
[3]https://kubernetes.io/docs/concepts/cluster-administration/network-plugins/

JIRA: YARDSTICK-1160

Change-Id: I71a49ac14e3d28ded91d2ed3cd9cc527e40303f7
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd new Kubernetes resource kind: "CustomResourceDefinition" 19/57219/8
Rodolfo Alonso Hernandez [Tue, 8 May 2018 16:42:08 +0000 (17:42 +0100)]
Add new Kubernetes resource kind: "CustomResourceDefinition"

Custom resource definition example in Kubernetes:
  apiVersion: "apiextensions.k8s.io/v1beta"
  kind: CustomResourceDefinition
  metadata:
    name: networks.kubernetes.com
  spec:
    group: kubernetes.com
    version: v1
    scope: Namespaced
    names:
      plural: networks
      singular: network
      kind: Network

Proposed Kubernetes context network definition:
  context:
    custom_resources:
      - name: network        # name of the resource (singular)
        version: v1          # optional, "v1" by default
        scope: Namespaced    # optional, "Namespaced" by default

From this definition, we will extract the Kubernetes parameters:
  - metadata.name: custom_resources.name + "s" + context_name + ".com"
  - spec.group: context_name + ".com"
  - spec.scope: custom_resources.scope
  - spec.version: custom_resources.version
  - spec.names.plural: custom_resources.name + "s"
  - spec.names.singular: custom_resources.name
  - spec.names.kind: custom_resources.name with first capital letter

[1] https://kubernetes.io/docs/concepts/api-extension/custom-resources/

JIRA: YARDSTICK-1163

Change-Id: If8980dc3f6ddf9c6949bf15be8011aa98482ddc9
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd "securityContext" parameter in Kubernetes context 91/57091/8
Rodolfo Alonso Hernandez [Sat, 5 May 2018 18:06:06 +0000 (19:06 +0100)]
Add "securityContext" parameter in Kubernetes context

This new parameter, "securityContext", will allow the user to define the
privilege and access control settings for a pod or a container [1].

Example of "securityContext" definition in the pod (if only one container
is defined):

  context:
    type: Kubernetes
    servers:
      host:
        image: ...
        securityContext:
          runAsUser: 1000
          fsGroup: 2000 

Example of "securityContext" definition in the pod and the container (if
several containers are defined):     

  context:
    type: Kubernetes
    servers:
      host:
        securityContext:
          runAsUser: 1000
          fsGroup: 2000 
        containers:
          - image: ...
            securityContext:
              allowPrivilegeEscalation: false
          - image: ...

[1] https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

JIRA: YARDSTICK-1156

Change-Id: I597a300c68cd834522a284b1cca0faa918493342
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoDefine several containers per pod in a replication controller 89/57089/8
Rodolfo Alonso Hernandez [Sat, 5 May 2018 10:13:28 +0000 (11:13 +0100)]
Define several containers per pod in a replication controller

Add the ability to define not only one but many containers per pod in a
replication controller descriptor. This feature must be backwards
compatible; all current test cases using the "single container" server
definition must be accepted.

Example of single container pod definition:

  context:
    type: Kubernetes
    servers:
      host:
        image: ...
        commands: ...
        volumes:
          - name: volume1              # mandatory
            <volume type definition>   # mandatory

Example of several container pod definition:

  context:
    type: Kubernetes
    servers:
      host:
        containers:  # if this key is present, all container specific
                       parameters (image, commands, args, volumeMounts, etc.)
                       must be defined per container
          - image: ...
            commands: ...
          - image: ...
            commands: ...
        volumes:
          - name: volume1              # mandatory
            <volume type definition>   # mandatory

NOTE: other parameters, like "volumes" or "nodeSelector", are common to all
containers in the pod.

JIRA: YARDSTICK-1155

Change-Id: Ib95668c68e9c09e6de3f1aa41c903cc52e6809ad
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>