yardstick.git
7 years agoKVMFORNFV: To verify the execution of the bash script 57/44757/4
Navya [Wed, 11 Oct 2017 07:30:02 +0000 (13:00 +0530)]
KVMFORNFV: To verify the execution of the bash script

This patch is used to verify the parameters passed and
the flow of qemu_migrate_benchmark.bash script to handle
the bugs

Change-Id: Ifc1bfa7a91a2eed178b9dc984c222074f06e0599
Signed-off-by: Navya Bathula <navyax.bathula@intel.com>
7 years agoChange 'SUCCESS' to 'PASS' when report to MongoDB 73/44873/1
chenjiankun [Thu, 12 Oct 2017 06:27:11 +0000 (06:27 +0000)]
Change 'SUCCESS' to 'PASS' when report to MongoDB

JIRA: YARDSTICK-822

To keep consistent with other testing project, we need to
change 'SUCCESS' to 'PASS', 'FAILED' to 'FAIL'.

Change-Id: I392e4dc6dd2e028cd43cba0d1bf8ee04618326d7
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoBugfix: Reference for the tool used in TC044 mentioned in the user guide is wrong 61/44861/1
JingLu5 [Thu, 12 Oct 2017 02:42:13 +0000 (02:42 +0000)]
Bugfix: Reference for the tool used in TC044 mentioned in the user guide is wrong

JIRA: YARDSTICK-821

Change-Id: I09b189008df4ec2e6db92cf24c45d8206ed2062f
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoMerge "Bug in NSB Prox ACL Test 4 Port"
Ross Brattain [Thu, 12 Oct 2017 01:37:33 +0000 (01:37 +0000)]
Merge "Bug in  NSB Prox ACL Test 4 Port"

7 years agoMerge "Doc amendment: env prepare command"
Ross Brattain [Thu, 12 Oct 2017 00:46:19 +0000 (00:46 +0000)]
Merge "Doc amendment: env prepare command"

7 years agoMerge "Use "protocol" parameters in iperf3 yaml and task file"
Ross Brattain [Thu, 12 Oct 2017 00:45:26 +0000 (00:45 +0000)]
Merge "Use "protocol" parameters in iperf3 yaml and task file"

7 years agocgnat: duplicate keys are not allowed 47/44847/1
Ross Brattain [Wed, 11 Oct 2017 23:31:18 +0000 (16:31 -0700)]
cgnat: duplicate keys are not allowed

the current ConfigParser does not handle duplicate keys
in ini files.

Change-Id: Iaafbbab740a809a59edfd93c84d0029ef10ac6f3
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoBug in NSB Prox ACL Test 4 Port 27/44827/1
DanielMartinBuckley [Wed, 11 Oct 2017 17:59:13 +0000 (18:59 +0100)]
Bug in  NSB Prox ACL Test 4 Port

JIRA: YARDSTICK-802

Generator was incorrectly configured to generated traffic for p0, p1 (twice), and p3

Should be p0, p1, p2 and p3

Change-Id: Ib62a3c6523b1eda635b8c727c36e140fd480003e
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
7 years agoUse "protocol" parameters in iperf3 yaml and task file 35/42035/15
Ace Lee [Fri, 15 Sep 2017 06:14:19 +0000 (06:14 +0000)]
Use "protocol" parameters in iperf3 yaml and task file

JIRA: YARDSTICK-755

There is a history problem that iperf use udp to set a net protocol.
This code will change it to protocol.
so you could use 'tcp','udp' and other protocol.

Change-Id: I1a101013dfe58165a3ed08aa77f0aa2f73d57a12
Signed-off-by: Ace Lee <liyin11@huawei.com>
7 years agoprivate-> uplink and public->downlink 99/44799/1
Deepak S [Wed, 11 Oct 2017 07:09:58 +0000 (00:09 -0700)]
private-> uplink and public->downlink

changing private and public to new uplink/downlink name

Change-Id: I8c3f582ba5592418a397e2500e0b998c3eed54f2
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoEnable intel_pmu plugin in collectd 83/44683/5
Deepak S [Tue, 10 Oct 2017 06:47:17 +0000 (12:17 +0530)]
Enable intel_pmu plugin in collectd

Change-Id: I62c6416e5c79d0b90880985bb5c076b65e34192e
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoTC008 Interrupt Affinity Fix 11/44711/1
Jing Zhang [Tue, 10 Oct 2017 18:20:33 +0000 (14:20 -0400)]
TC008 Interrupt Affinity Fix
The smp_affinity takes hex mask, currently it is given hex number.

Change-Id: Id738bfe10551dad1f5df48910a230b12f50d1b3d
JIRA: YARDSTICK-818
Signed-off-by: Jing Zhang <jing.c.zhang@nokia.com>
7 years agoDoc amendment: env prepare command 25/44625/6
JingLu5 [Tue, 10 Oct 2017 08:19:54 +0000 (08:19 +0000)]
Doc amendment: env prepare command

JIRA: YARDSTICK-637

Change-Id: I7e5e1afb7b5a7e97aa070c03cded3be285d97cc2
Signed-off-by: JingLu5 <lvjing5@huawei.com>
7 years agoBugfix: Update HW lb config VNF thread to start from core 1 15/44615/1
Deepak S [Mon, 9 Oct 2017 21:35:18 +0000 (14:35 -0700)]
Bugfix: Update HW lb config VNF thread to start from core 1

Change-Id: Ib0007fa3689b90346598baaef5c6e88d4fdf444a
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoinstall pmu tools collectd plugin 37/41637/13
Ross Brattain [Mon, 11 Sep 2017 23:36:49 +0000 (16:36 -0700)]
install pmu tools collectd plugin

Added review dependency, removed collectd commit-id
replicating bash script, added pmu roles to playbook

Create local mirror for event list generation, copy script
to image, and run event list generation at runtime if
intel_pmu is enabled.

Change-Id: Ie46a2b197f4d2037cf3eed194764ce9eb5670415
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "libyajl: install from pkg"
Ross Brattain [Fri, 6 Oct 2017 22:36:20 +0000 (22:36 +0000)]
Merge "libyajl: install from pkg"

7 years agoMerge "NSB Prox vPE Test"
Ross Brattain [Fri, 6 Oct 2017 20:44:50 +0000 (20:44 +0000)]
Merge "NSB Prox vPE Test"

7 years agoNSB Prox vPE Test 43/44343/11
Abhijit Sinha [Thu, 5 Oct 2017 09:23:39 +0000 (10:23 +0100)]
NSB Prox vPE Test

JIRA: YARDSTICK-802

Addition of Prox vPE test case
- The tests supports BM, Openstack Heat
- Supports 4 ports
- Grafana dashboards included
- Added support for parameters.lua
  for prox additional files
- Unit tests for code coverage

Change-Id: I5cccb351dacba88a293ae4b8aba1f0a803d62e6d
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
Signed-off-by: Daniel MArtin Buckley <daniel.m.buckley@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "fix random test_task unittest fail due to os.environ mock"
Ross Brattain [Fri, 6 Oct 2017 20:20:49 +0000 (20:20 +0000)]
Merge "fix random test_task unittest fail due to os.environ mock"

7 years agofix random test_task unittest fail due to os.environ mock 91/44491/1
Ross Brattain [Tue, 19 Sep 2017 23:38:44 +0000 (16:38 -0700)]
fix random test_task unittest fail due to os.environ mock

sometime Jenkins fails due to what I guess are concurrency problems
in os.environ mock

======================================================================
FAIL: tests.unit.benchmark.core.test_task.TaskTestCase.test_parse_suite_with_constraint_no_args
tags: worker-10
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/unittest/mock.py", line 1157, in patched
    return func(*args, **keywargs)
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-euphrates/tests/unit/benchmark/core/test_task.py", line 208, in test_parse_suite_with_constraint_no_args
    task_files, task_args, task_args_fnames = t.parse_suite()
  File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-euphrates/yardstick/benchmark/core/task.py", line 455, in parse_suite
    cur_pod = os.environ.get('NODE_NAME', None)
  File "/usr/lib/python3.5/unittest/mock.py", line 917, in __call__
    return _mock_self._mock_call(*args, **kwargs)
  File "/usr/lib/python3.5/unittest/mock.py", line 976, in _mock_call
    result = next(effect)
StopIteration
Ran 1262 tests in 2.375s
FAILED (id=0, failures=1)
error: testr failed (1)
+ testr failing

Replace the mock decorator with a context manager to try to
reduce the scope and duration of the mock.

Change-Id: I342fe6c403e66c53ac4c39fd88fa9047cdfae5d9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoUpdate load_images.sh to MCP@aarch64 69/44469/1
Cristina Pauna [Fri, 6 Oct 2017 15:19:32 +0000 (18:19 +0300)]
Update load_images.sh to MCP@aarch64

The load_images.sh script still contained old functionality.
The changes are:
- don't use TestVM anymore, MCP does not load that by default like Fuel did
  upload the cirros image instead
- don't upload the kernel separately for aarch64, one part image works now
- add the needed extra-properties accordingly to each image

The script was tested on arm, the test are running now without errors

JIRA: ARMBAND-285

Change-Id: Iee8ce6cde43bebceb2edbb1310ea81c665876aff
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
7 years agoKVMFORNFV:Livemigration testcase changes in Yardstick 07/44407/1
Navya [Fri, 6 Oct 2017 06:01:45 +0000 (23:01 -0700)]
KVMFORNFV:Livemigration testcase changes in Yardstick

This patch includes changing the function call to place the
respective bash file to the given TARGET_SCRIPT path.

Change-Id: Iba2adf4bdb6d9045493f5099e29ade4e8e6b5cd3
Signed-off-by: Navya <navyax.bathula@intel.com>
7 years agoFixed compilation of latest samplevnf 13/43513/6
Maciej Skrocki [Thu, 28 Sep 2017 21:13:39 +0000 (14:13 -0700)]
Fixed compilation of latest samplevnf

added download_civetweb and install_civetweb roles.

Change-Id: Id4f60cc07b3befc7edb3cfc38773fe1a73a44c1f
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agolibyajl: install from pkg 99/44399/2
Dhaval Patel [Thu, 5 Oct 2017 22:05:25 +0000 (15:05 -0700)]
libyajl: install from pkg

libyajl needed for ovs_events and ovs_stats, removed installing
from src and rather installing as deb pkg

Change-Id: Ic1ebf88304bbc7f4fa7b9b51c95f1e8e729e71e3
Signed-off-by: Dhaval Patel <dhaval.r.patel@intel.com>
7 years agoMerge "Adding scale out templates for ovs_dpdk/sriov using 2 node setup"
Ross Brattain [Thu, 5 Oct 2017 20:47:58 +0000 (20:47 +0000)]
Merge "Adding scale out templates for ovs_dpdk/sriov using 2 node setup"

7 years agoMerge "Adding 2 node ixia generic scale-out test case generation"
Ross Brattain [Thu, 5 Oct 2017 20:47:44 +0000 (20:47 +0000)]
Merge "Adding 2 node ixia generic scale-out test case generation"

7 years agoMerge "Adding auto generate scale-out support for correlated traffic"
Ross Brattain [Thu, 5 Oct 2017 20:47:31 +0000 (20:47 +0000)]
Merge "Adding auto generate scale-out support for correlated traffic"

7 years agoMerge "Added example TC with collectd on compute node"
Ross Brattain [Thu, 5 Oct 2017 20:45:31 +0000 (20:45 +0000)]
Merge "Added example TC with collectd on compute node"

7 years agoMerge "heat: add port name as port"
Ross Brattain [Thu, 5 Oct 2017 20:31:01 +0000 (20:31 +0000)]
Merge "heat: add port name as port"

7 years agoMerge "add wait_for_instantiate"
Ross Brattain [Thu, 5 Oct 2017 20:28:37 +0000 (20:28 +0000)]
Merge "add wait_for_instantiate"

7 years agoMerge "Add intermediate variables for attacker,monitor,result_checker"
Ross Brattain [Thu, 5 Oct 2017 16:11:01 +0000 (16:11 +0000)]
Merge "Add intermediate variables for attacker,monitor,result_checker"

7 years agoMerge "Adding sample testcases to run on standalone context"
Ross Brattain [Thu, 5 Oct 2017 16:03:53 +0000 (16:03 +0000)]
Merge "Adding sample testcases to run on standalone context"

7 years agoMerge "rewrite _generate_pod_yaml to combine name and pkey setting"
Ross Brattain [Thu, 5 Oct 2017 15:51:32 +0000 (15:51 +0000)]
Merge "rewrite _generate_pod_yaml to combine name and pkey setting"

7 years agoadd wait_for_instantiate 81/44381/1
Ross Brattain [Wed, 27 Sep 2017 03:34:47 +0000 (20:34 -0700)]
add wait_for_instantiate

Change-Id: Idc54fc907dba4603984712fc43a0db8dfd4b7374
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoheat: add port name as port 79/44379/1
Ross Brattain [Sun, 17 Sep 2017 23:10:43 +0000 (16:10 -0700)]
heat: add port name as port

Change-Id: Ibd159359c6f57d573a909d6841c121c15bf692c1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "NSB Prox minor refactor of BNG"
Ross Brattain [Thu, 5 Oct 2017 15:04:17 +0000 (15:04 +0000)]
Merge "NSB Prox minor refactor of BNG"

7 years agoMaking sure yardstick container uses hosts timezone 85/44285/1
Maciej Skrocki [Wed, 4 Oct 2017 22:33:09 +0000 (15:33 -0700)]
Making sure yardstick container uses hosts timezone

This is required for influxdb results being reported
"in the future" when the timezones do not match.

Change-Id: Ic41e19d26c46b6ccfa6dacddb595236af19e437a
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agorewrite _generate_pod_yaml to combine name and pkey setting 77/44277/1
Ross Brattain [Wed, 4 Oct 2017 20:17:40 +0000 (13:17 -0700)]
rewrite _generate_pod_yaml to combine name and pkey setting

just deepcopy and change.  This will probably break in
the future if we use anything other than dicts and list.

Change-Id: I9a9b0c5b09b3e3ebd7ed593bf6339ea030605f93
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoDisable VNF deploy by default 87/39187/8
Deepak S [Mon, 18 Sep 2017 03:58:43 +0000 (20:58 -0700)]
Disable VNF deploy by default

Change-Id: I27bcc41c855f34fb1fd0332fc24e7bf0b2af4ec2
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoNSB Prox minor refactor of BNG 31/44231/1
Abhijit Sinha [Wed, 4 Oct 2017 15:02:16 +0000 (16:02 +0100)]
NSB Prox minor refactor of BNG

JIRA: YARDSTICK-802

- Updated the BNG code with minor refactor.
- Corrected the CPE core name
- Update binsearch traffic profile with 64B

Change-Id: Iae0be766edb986520045655fa567651711813a8b
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
7 years agoAdd intermediate variables for attacker,monitor,result_checker 33/41133/2
qiujuan [Sun, 3 Sep 2017 04:31:13 +0000 (12:31 +0800)]
Add intermediate variables for attacker,monitor,result_checker

JIRA: YARDSTICK-790

Change-Id: I6bb36c98b8673155d3142fc54cfb39315d5ce613
Signed-off-by: qiujuan <juan_qiu@tongji.edu.cn>
7 years agoAdded example TC with collectd on compute node 59/44159/2
Maciej Skrocki [Tue, 3 Oct 2017 22:19:15 +0000 (15:19 -0700)]
Added example TC with collectd on compute node

To be used with yardstick/etc/yardstick/nodes/pod.yaml.collectd.sample

Change-Id: I6eff4f6adf57596e06c685ab87b83699696ad7b6
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agoAdding sample testcases to run on standalone context 29/42529/13
Deepak S [Tue, 19 Sep 2017 19:35:39 +0000 (12:35 -0700)]
Adding sample testcases to run on standalone context

- vFW
- vCGNAPT
- vACL
- UDP Replay
- vPE (Only OVS supported)

Change-Id: Idbc4d1d6bc1283e40d2fcb9457a871a9198ad147
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAdding auto generate scale-out support for correlated traffic 57/43657/2
Deepak S [Fri, 29 Sep 2017 10:45:06 +0000 (03:45 -0700)]
Adding auto generate scale-out support for correlated traffic

Change-Id: I2755b596068545c1a3a672ceff47d814a44ae050
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAdding 2 node ixia generic scale-out test case generation 51/43451/2
Deepak S [Tue, 26 Sep 2017 02:04:49 +0000 (19:04 -0700)]
Adding 2 node ixia generic scale-out test case generation

Change-Id: I7da2d5bcd7c58c669e28a7271e4c6848c003e84a
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAdding scale out templates for ovs_dpdk/sriov using 2 node setup 31/42531/4
Deepak S [Sat, 16 Sep 2017 04:14:46 +0000 (21:14 -0700)]
Adding scale out templates for ovs_dpdk/sriov using 2 node setup

2 - node setup:
  - Traffic generator starts new stream on both uplink and downlink

This patch addes amsible scripts to enable scale_out testcases

- vfw

Change-Id: I0340636bce3e74cd6175f728b9e7e014a4eb2fd5
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoMerge "NSB PROX test hang fixes"
Ross Brattain [Tue, 3 Oct 2017 22:00:55 +0000 (22:00 +0000)]
Merge "NSB PROX test hang fixes"

7 years agoNSB PROX test hang fixes 21/43421/18
Ross Brattain [Thu, 28 Sep 2017 07:10:43 +0000 (00:10 -0700)]
NSB PROX test hang fixes

The PROX tests were hanging in the duration
runner.

These are fixes for various errors:

raise error in collect_kpi if VNF is down

move prox dpdk_rebind after collectd stop
fix dpdk nicbind rebind to group by drivers

prox: raise error in collect_kpi if the VNF is down
prox: add VNF_TYPE for consistency

sample_vnf: debug and fix kill_vnf
pkill is not matching some executable names,
add some debug process dumps and try switching
back to killall until we can find the issue

sample_vnf: add default timeout, so we can override
default 3600 SSH timeout

collect_kpi is the point at which we check
the VNFs and TGs for failures or exits

queues are the problem make sure we aren't silently blocking on
non-empty queues by canceling join thread in subprocess

fixup duration runner to close queues
and other attempt to stop duration runner
from hanging

VnfdHelper: memoize port_num

resource: fail if ssh can't connect
at the end of 3600 second test our ssh connection
is dead, so we can't actually stop collectd
unless we reconnect

fix stop() logic to ignore ssh errors

Change-Id: I6c8e682a80cb9d00362e2fef4a46df080f304e55
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "exec_tests: remove releng clone code"
Ross Brattain [Tue, 3 Oct 2017 17:57:50 +0000 (17:57 +0000)]
Merge "exec_tests: remove releng clone code"

7 years agoMerge "Ensure that at least one handler is available"
Ross Brattain [Tue, 3 Oct 2017 17:56:25 +0000 (17:56 +0000)]
Merge "Ensure that at least one handler is available"

7 years agoMerge "runners: add timeout to queue put"
Ross Brattain [Tue, 3 Oct 2017 05:02:49 +0000 (05:02 +0000)]
Merge "runners: add timeout to queue put"

7 years agoEnable multi-port perf in trex as TG 27/43327/3
Deepak S [Wed, 30 Aug 2017 09:22:07 +0000 (02:22 -0700)]
Enable multi-port perf in trex as TG

set TRex -c option for threads per port based on
hardware number of queues.

We can't auto-detect number of queues and we can't
use more than one thread per core on systems with single-queue
interfaces, so move the option to the config file

options:
  tg_0:
    queues_per_port: 2

also enable trex debug by removing >/dev/null redirection

options:
  tg_0:
    trex_server_debug: true

Change-Id: I46da187849282bf28f4ef5b333e1ae890e202768
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agorunners: add timeout to queue put 61/43961/2
Ross Brattain [Mon, 2 Oct 2017 21:21:18 +0000 (14:21 -0700)]
runners: add timeout to queue put

we don't want to block the test waiting to put KPIs
Add moderate timeout.  In case we do timeout, it
doesn't matter if we drop intermitten KPIs

Change-Id: I049c785355993e6b286748a5c897d54dd2923dc9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "add collectd resource node capability"
Ross Brattain [Mon, 2 Oct 2017 23:41:37 +0000 (23:41 +0000)]
Merge "add collectd resource node capability"

7 years agoadd collectd resource node capability 83/43483/8
Ross Brattain [Thu, 28 Sep 2017 07:10:43 +0000 (00:10 -0700)]
add collectd resource node capability

allow manually adding collectd nodes using Node context.

if a node is present with a collectd config dict then
we can create a ResourceProfile object for it
and connect to collectd.

example

nodes:
-
    name: compute_0
    role: Compute
    ip: 1.1.1.1
    user: root
    password: r00t
    collectd:
        interval: 5
        plugins:
            ovs_stats: {}

Change-Id: Ie0c00fdb58373206071daa1fb13faf175c4313e0
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "ansible: add grub.cfg hugepages regexp replace"
Ross Brattain [Mon, 2 Oct 2017 22:21:09 +0000 (22:21 +0000)]
Merge "ansible: add grub.cfg hugepages regexp replace"

7 years agoMerge "Optimize Core usage for the sampleVNFs"
Ross Brattain [Mon, 2 Oct 2017 22:13:57 +0000 (22:13 +0000)]
Merge "Optimize Core usage for the sampleVNFs"

7 years agoOptimize Core usage for the sampleVNFs 03/43003/4
Deepak S [Sat, 23 Sep 2017 03:40:35 +0000 (20:40 -0700)]
Optimize Core usage for the sampleVNFs

Change-Id: I80aa7e796b9ca4c4881c78310860e293a4a75560
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoload_images.sh: Add missing ssh_options 49/43949/1
Alexandru Avadanii [Mon, 2 Oct 2017 20:16:38 +0000 (22:16 +0200)]
load_images.sh: Add missing ssh_options

Empty ssh_options led to ssh login failure, which stopped the whole
script.

Change-Id: I8374a30a02b14d04eb0f623a0c58d7ebed77a589
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
7 years agoMerge "CI: add new test cases into CI so they can have result"
Ross Brattain [Mon, 2 Oct 2017 18:01:59 +0000 (18:01 +0000)]
Merge "CI: add new test cases into CI so they can have result"

7 years agoMerge "Enabling multi_VM & multi port launch in standalone context"
Ross Brattain [Mon, 2 Oct 2017 16:24:39 +0000 (16:24 +0000)]
Merge "Enabling multi_VM & multi port launch in standalone context"

7 years agoMerge "drain runner queue and undo cancel_join_thread"
Ross Brattain [Mon, 2 Oct 2017 15:16:54 +0000 (15:16 +0000)]
Merge "drain runner queue and undo cancel_join_thread"

7 years agoMerge "Grafana Dashboard update for Prox Tests"
Ross Brattain [Mon, 2 Oct 2017 15:16:38 +0000 (15:16 +0000)]
Merge "Grafana Dashboard update for Prox Tests"

7 years agoProx L3FWD 2-port test fix 61/43861/1
Abhijit Sinha [Mon, 2 Oct 2017 12:56:43 +0000 (13:56 +0100)]
Prox L3FWD 2-port test fix

JIRA: YARDSTICK-802

Updated the handle config for l3fwd 2 port test
The tx and rx descripters is removed as they
were not there in original DATS config.
The BM test was dropping packets beacuse of this.

Change-Id: I40d113267cbb3376a772b5a5aaecf74bea9d06fb
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
7 years agodrain runner queue and undo cancel_join_thread 15/43815/4
Ross Brattain [Mon, 2 Oct 2017 05:58:45 +0000 (22:58 -0700)]
drain runner queue and undo cancel_join_thread

Sometimes the runners can hang.  Initially
debugging lead to the queue join thread, so I thought
we could cancel all the join threads and everything would be okay.

But it turns out canceling the queue join threads can lead
to corruption of the queues, so when we go to drain the queues
the task hangs.

But it also turns out that we were not properly draining
the queues in the task process.  We were waiting for all
the runners to exit, then draining the queues.

This is bad and will cause the queues to fill up and hang
and/or drop data or corrupt the queues.

The proper fix seems to be to draining the queues in a
loop before calling join with a timeout.

Also modified the queue drain loops to no block on queue.get()

Revert "cancel all queue join threads"

This reverts commit 75c0e3a54b8f6e8fd77c7d9d95decab830159929.

Revert "duration runner: add teardown and cancel all queue join threads"

This reverts commit 7eb6abb6931b24e085b139cc3500f4497cdde57d.

Change-Id: Ic4f8e814cf23615621c1250535967716b425ac18
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "Fix src/dst ip update in ixia configuration"
Ross Brattain [Sun, 1 Oct 2017 20:36:40 +0000 (20:36 +0000)]
Merge "Fix src/dst ip update in ixia configuration"

7 years agoMerge "Adding example testcase to enable multiport support for http"
Ross Brattain [Sun, 1 Oct 2017 20:34:44 +0000 (20:34 +0000)]
Merge "Adding example testcase to enable multiport support for http"

7 years agoMerge "NSB: cancel all queue join threads"
Ross Brattain [Sun, 1 Oct 2017 20:28:24 +0000 (20:28 +0000)]
Merge "NSB: cancel all queue join threads"

7 years agoMerge "code inspection fixes: test_pktgen"
Ross Brattain [Sun, 1 Oct 2017 20:27:54 +0000 (20:27 +0000)]
Merge "code inspection fixes: test_pktgen"

7 years agoMerge "duration runner: add teardown and cancel all queue join threads"
Ross Brattain [Sun, 1 Oct 2017 20:26:45 +0000 (20:26 +0000)]
Merge "duration runner: add teardown and cancel all queue join threads"

7 years agoNSB: cancel all queue join threads 03/43803/1
Ross Brattain [Sun, 1 Oct 2017 20:16:58 +0000 (13:16 -0700)]
NSB: cancel all queue join threads

In some cases we are blocking in base.Runner join() because the
queues are not empty

call cancel_join_thread to prevent the Queue from blocking the
Process exit

https://docs.python.org/3.3/library/multiprocessing.html#all-platforms

Joining processes that use queues

  Bear in mind that a process that has put items in a queue will wait
  before terminating until all the buffered items are fed by the
  "feeder" thread to the underlying pipe. (The child process can call
  the cancel_join_thread() method of the queue to avoid this behaviour.)

  This means that whenever you use a queue you need to make sure that
  all items which have been put on the queue will eventually be removed
  before the process is joined. Otherwise you cannot be sure that
  processes which have put items on the queue will terminate. Remember
  also that non-daemonic processes will be joined automatically.

Warning

  As mentioned above, if a child process has put items on a queue (and
  it has not used JoinableQueue.cancel_join_thread), then that process
  will not terminate until all buffered items have been flushed to the
  pipe.

  This means that if you try joining that process you may get a deadlock
  unless you are sure that all items which have been put on the queue
  have been consumed. Similarly, if the child process is non-daemonic
  then the parent process may hang on exit when it tries to join all its
  non-daemonic children.

cancel_join_thread()

  Prevent join_thread() from blocking. In particular, this prevents the
  background thread from being joined automatically when the process
  exits – see join_thread().

  A better name for this method might be allow_exit_without_flush(). It
  is likely to cause enqueued data to lost, and you almost certainly
  will not need to use it. It is really only there if you need the
  current process to exit immediately without waiting to flush enqueued
  data to the underlying pipe, and you don’t care about lost data.

Change-Id: I61f11a3b01109d96b7a5445c60f1e171401157fc
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoduration runner: add teardown and cancel all queue join threads 01/43801/1
Ross Brattain [Sun, 1 Oct 2017 20:14:33 +0000 (13:14 -0700)]
duration runner: add teardown and cancel all queue join threads

calculate timeout once
catch exceptions in benchmark.teardown()

In some cases we are blocking in base.Runner join() because the
queues are not empty

call cancel_join_thread to prevent the Queue from blocking the
Process exit

https://docs.python.org/3.3/library/multiprocessing.html#all-platforms

Joining processes that use queues

  Bear in mind that a process that has put items in a queue will wait
  before terminating until all the buffered items are fed by the
  "feeder" thread to the underlying pipe. (The child process can call
  the cancel_join_thread() method of the queue to avoid this behaviour.)

  This means that whenever you use a queue you need to make sure that
  all items which have been put on the queue will eventually be removed
  before the process is joined. Otherwise you cannot be sure that
  processes which have put items on the queue will terminate. Remember
  also that non-daemonic processes will be joined automatically.

Warning

  As mentioned above, if a child process has put items on a queue (and
  it has not used JoinableQueue.cancel_join_thread), then that process
  will not terminate until all buffered items have been flushed to the
  pipe.

  This means that if you try joining that process you may get a deadlock
  unless you are sure that all items which have been put on the queue
  have been consumed. Similarly, if the child process is non-daemonic
  then the parent process may hang on exit when it tries to join all its
  non-daemonic children.

cancel_join_thread()

  Prevent join_thread() from blocking. In particular, this prevents the
  background thread from being joined automatically when the process
  exits – see join_thread().

  A better name for this method might be allow_exit_without_flush(). It
  is likely to cause enqueued data to lost, and you almost certainly
  will not need to use it. It is really only there if you need the
  current process to exit immediately without waiting to flush enqueued
  data to the underlying pipe, and you don’t care about lost data.

Change-Id: If7b904a060b9ed68b7def78c851deefca4e0de5d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agocancel all queue join threads 63/43663/9
Ross Brattain [Fri, 29 Sep 2017 22:39:04 +0000 (15:39 -0700)]
cancel all queue join threads

In some cases we are blocking in base.Runner join() because the
queues are not empty

call cancel_join_thread to prevent the Queue from blocking the
Process exit

https://docs.python.org/3.3/library/multiprocessing.html#all-platforms

Joining processes that use queues

  Bear in mind that a process that has put items in a queue will wait
  before terminating until all the buffered items are fed by the
  "feeder" thread to the underlying pipe. (The child process can call
  the cancel_join_thread() method of the queue to avoid this behaviour.)

  This means that whenever you use a queue you need to make sure that
  all items which have been put on the queue will eventually be removed
  before the process is joined. Otherwise you cannot be sure that
  processes which have put items on the queue will terminate. Remember
  also that non-daemonic processes will be joined automatically.

Warning

  As mentioned above, if a child process has put items on a queue (and
  it has not used JoinableQueue.cancel_join_thread), then that process
  will not terminate until all buffered items have been flushed to the
  pipe.

  This means that if you try joining that process you may get a deadlock
  unless you are sure that all items which have been put on the queue
  have been consumed. Similarly, if the child process is non-daemonic
  then the parent process may hang on exit when it tries to join all its
  non-daemonic children.

cancel_join_thread()

  Prevent join_thread() from blocking. In particular, this prevents the
  background thread from being joined automatically when the process
  exits – see join_thread().

  A better name for this method might be allow_exit_without_flush(). It
  is likely to cause enqueued data to lost, and you almost certainly
  will not need to use it. It is really only there if you need the
  current process to exit immediately without waiting to flush enqueued
  data to the underlying pipe, and you don’t care about lost data.

Change-Id: I345c722a752bddf9f0824a11cdf52ae9f04669af
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agocode inspection fixes: test_pktgen 99/43799/1
Ross Brattain [Fri, 29 Sep 2017 23:06:18 +0000 (16:06 -0700)]
code inspection fixes: test_pktgen

Change-Id: I05cb069984b7674924cfcb1ed023048c0aa0c444
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoAdding example testcase to enable multiport support for http 91/43791/1
Deepak S [Sun, 1 Oct 2017 06:40:46 +0000 (23:40 -0700)]
Adding example testcase to enable multiport support for http

Change-Id: I780aa3ea6b04df08baffb5ee5beff66bdc37f37e
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoMerge "dpdk: pciutils and lspci is required for dpdk-devbind.py"
Ross Brattain [Sat, 30 Sep 2017 08:07:20 +0000 (08:07 +0000)]
Merge "dpdk: pciutils and lspci is required for dpdk-devbind.py"

7 years agoMerge "replace ansible modules"
Ross Brattain [Sat, 30 Sep 2017 08:06:59 +0000 (08:06 +0000)]
Merge "replace ansible modules"

7 years agoMerge "Adapt getting the image architecture to mcp"
Ross Brattain [Sat, 30 Sep 2017 08:06:29 +0000 (08:06 +0000)]
Merge "Adapt getting the image architecture to mcp"

7 years agoMerge "bugfix: tc054 default value is wrong"
Jing Lu [Sat, 30 Sep 2017 08:02:39 +0000 (08:02 +0000)]
Merge "bugfix: tc054 default value is wrong"

7 years agoMerge "Remove checkno.png and checkyes.png due to license issue"
Jing Lu [Sat, 30 Sep 2017 03:51:09 +0000 (03:51 +0000)]
Merge "Remove checkno.png and checkyes.png due to license issue"

7 years agoRemove checkno.png and checkyes.png due to license issue 81/43581/2
chenjiankun [Fri, 29 Sep 2017 08:13:55 +0000 (08:13 +0000)]
Remove checkno.png and checkyes.png due to license issue

JIRA: YARDSTICK-817

Since checkno.png and checkyes.png is not Apache-2 license based.
so we need to remove them.

Change-Id: I40dd303fb54a3736ca969ac1c186d2cd23408436
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
7 years agoFix src/dst ip update in ixia configuration 63/43763/1
Deepak S [Sat, 30 Sep 2017 01:35:09 +0000 (18:35 -0700)]
Fix src/dst ip update in ixia configuration

Change-Id: I03976c182e164a512a5ef48ad20928f27451c3f6
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAuto create ixia config based on the traffic profile 39/43439/7
Deepak S [Tue, 26 Sep 2017 09:40:56 +0000 (02:40 -0700)]
Auto create ixia config based on the traffic profile

Change-Id: I031cc7f24f0c0816eb577a4d1606a714f68a5f83
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "NSB: ignore VNF node if there is no VNF model"
Ross Brattain [Fri, 29 Sep 2017 22:45:30 +0000 (22:45 +0000)]
Merge "NSB: ignore VNF node if there is no VNF model"

7 years agoreplace ansible modules 69/43569/4
Ross Brattain [Fri, 29 Sep 2017 04:45:42 +0000 (21:45 -0700)]
replace ansible modules

Change-Id: Ia7c1ce781075142910a6c618a9a23f34a710dfe9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoEnabling multi_VM & multi port launch in standalone context 27/42527/23
Deepak S [Tue, 19 Sep 2017 08:37:02 +0000 (01:37 -0700)]
Enabling multi_VM & multi port launch in standalone context

new context names:
- SRIOV - StandaloneSriov
- OvsDpdk - StandaloneOvsDpdk

- Seperate helper, libvirt, server info class
- Allow multi-port and multi-VM support.

Change-Id: I3c65e4535082fa0e2f4c6ee11c3bca9ccfdc01b8
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Martin Banszel <martinx.banszel@intel.com>
7 years agoGrafana Dashboard update for Prox Tests 03/43603/2
Abhijit Sinha [Fri, 29 Sep 2017 10:07:35 +0000 (11:07 +0100)]
Grafana Dashboard update for Prox Tests

JIRA: YARDSTICK-802

Updated the Grafana dashboards to collect KPI's
correctly & incorporate scale up changes in topology

Influx-db stores the KPI’s fields as: <TG><Port><kpi>
TG has changed from  : tg__1 to tg__0
VNF has changed from : vnf__1 to vnf__0

Change-Id: I3bd8be61210906bc4de95c9b1986033572d93277
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
7 years agoAdapt getting the image architecture to mcp 23/43623/1
Cristina Pauna [Fri, 29 Sep 2017 12:47:59 +0000 (15:47 +0300)]
Adapt getting the image architecture to mcp

The part which gets the image architecture still uses the old fuel command.
Adapted the script to use the mcp command.

JIRA: ARMBAND-285

Change-Id: Iddce77c3a856ea11f9994861151db89a402e735e
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
7 years agodpdk: pciutils and lspci is required for dpdk-devbind.py 73/43573/1
Ross Brattain [Fri, 29 Sep 2017 07:57:16 +0000 (00:57 -0700)]
dpdk: pciutils and lspci is required for dpdk-devbind.py

Change-Id: I8529f33d849fc659b557e1d19761c0765ebda57e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoCI: add new test cases into CI so they can have result 41/43541/1
rexlee8776 [Fri, 29 Sep 2017 03:47:55 +0000 (03:47 +0000)]
CI: add new test cases into CI so they can have result

Change-Id: Ib2b165c41121b29b2af378dc420c2360786de3f0
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agobugfix: tc054 default value is wrong 33/43533/2
rexlee8776 [Fri, 29 Sep 2017 03:16:08 +0000 (03:16 +0000)]
bugfix: tc054 default value is wrong

management route ip is not common in most SUTs, so it should
be removed.
also huawei pod1 ipmi info should updated so this test case
can be added into ci later

Change-Id: I3a29c59c473ee7087d4d61753ffc955b061571fb
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
7 years agoAdjusted IPs in some prox tests. 23/43523/1
Maciej Skrocki [Fri, 29 Sep 2017 00:24:47 +0000 (17:24 -0700)]
Adjusted IPs in some prox tests.

Change-Id: Iff39fa5b90d1ae5534ce1fff31dfb84c1e47340c
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agoMerge "add collectd ansible"
Ross Brattain [Thu, 28 Sep 2017 22:08:25 +0000 (22:08 +0000)]
Merge "add collectd ansible"

7 years agoSwitched to stable/euphrates for samplevnfs projext 17/43517/1
Maciej Skrocki [Thu, 28 Sep 2017 21:53:30 +0000 (14:53 -0700)]
Switched to stable/euphrates for samplevnfs projext

Change-Id: I0305c263740c25bdfa3bb2667838ca2b75d33ba0
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agoadd collectd ansible 31/40731/15
Ross Brattain [Wed, 30 Aug 2017 07:52:07 +0000 (00:52 -0700)]
add collectd ansible

required DPDK fixes to enable building collectd with dpdkstats
need /usr/lib/dpdk-pmd symlinks

Compiling all this code requies more space than the default ubuntu
cloud-image, so we need to resize the cloud image somehow

Change-Id: Ib39fc94ba8101ca1aebc7d2a710be88b0338f7c3
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agoMerge "vnf_generic: Fix str object has no attribute items"
Ross Brattain [Thu, 28 Sep 2017 20:29:43 +0000 (20:29 +0000)]
Merge "vnf_generic: Fix str object has no attribute items"

7 years agoAdded hw_vif_multiqueue_enabled metadata to the added samplevnfs image in OpenStack. 07/43507/1
Maciej Skrocki [Thu, 28 Sep 2017 19:48:32 +0000 (12:48 -0700)]
Added hw_vif_multiqueue_enabled metadata to the added samplevnfs image in OpenStack.

Change-Id: Iad1dce6b0d0a1c010aa62f2fdf54c5d0560ed0c7
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
7 years agovnf_generic: Fix str object has no attribute items 05/43505/1
Dino Madarang [Thu, 28 Sep 2017 18:10:28 +0000 (18:10 +0000)]
vnf_generic: Fix str object has no attribute items

When an IP range is specified in src_ip/dst_ip like:
src_ip:
   - '152.16.100.180-152.16.100.181'
yardstick would return str object has no attribute items error.
This change will return the IP range as is if type is str.

Change-Id: I3b097777f0d85b0600207157bebba18987ea2275
Signed-off-by: Dino Simeon Madarang <dinox.madarang@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
7 years agoMerge "Addition of Prox NSB BNG and BNG-QoS test"
Ross Brattain [Thu, 28 Sep 2017 17:13:34 +0000 (17:13 +0000)]
Merge "Addition of Prox NSB BNG and BNG-QoS test"

7 years agoNSB: ignore VNF node if there is no VNF model 81/43481/1
Ross Brattain [Thu, 28 Sep 2017 02:08:06 +0000 (19:08 -0700)]
NSB: ignore VNF node if there is no VNF model

Change-Id: I571289c744441a6114c6d45ac6cbd7cfc0dafef2
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>