yardstick.git
6 years agoRaise Exception if HA test case failed 93/36793/7
JingLu5 [Fri, 30 Jun 2017 09:22:00 +0000 (09:22 +0000)]
Raise Exception if HA test case failed

Change-Id: Ia3677724075c1c1408f50bbfcebd3cbcde251d66
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "collectd: disable auto-provision"
Ross Brattain [Fri, 25 Aug 2017 22:33:35 +0000 (22:33 +0000)]
Merge "collectd: disable auto-provision"

6 years agocollectd: disable auto-provision 79/40279/3
Ross Brattain [Fri, 25 Aug 2017 20:10:37 +0000 (13:10 -0700)]
collectd: disable auto-provision

auto-provision requires Internet access inside
the VNF, which may not be the case.

Change-Id: I2b5b73e1b80074356943c5e3152c3e6a318f3ca4
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoEnabling ACL test for provider network. 47/40047/5
Maciej Skrocki [Thu, 24 Aug 2017 01:35:30 +0000 (18:35 -0700)]
Enabling ACL test for provider network.

Properly re-using network_type from model.

Change-Id: I40180eb53080a360b4099c034038eac67716f8d1
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
6 years agoMerge "Added external versions for vFW and cgnat TCs."
Ross Brattain [Fri, 25 Aug 2017 20:00:24 +0000 (20:00 +0000)]
Merge "Added external versions for vFW and cgnat TCs."

6 years agoMerge "ansible: update dpdk, trex and samplevnf install"
Ross Brattain [Fri, 25 Aug 2017 20:00:13 +0000 (20:00 +0000)]
Merge "ansible: update dpdk, trex and samplevnf install"

6 years agoAdded external versions for vFW and cgnat TCs. 71/40271/1
Maciej Skrocki [Fri, 25 Aug 2017 18:31:12 +0000 (11:31 -0700)]
Added external versions for vFW and cgnat TCs.

Change-Id: I6778dac0c60f090238ed1f4860470e62a64c7d69
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
6 years agoTrex: fix KPI collection 69/40269/2
Ross Brattain [Fri, 25 Aug 2017 17:48:30 +0000 (10:48 -0700)]
Trex: fix KPI collection

return super result

Change-Id: I723a37281da15c1887ae1b3cf91d7e957b1924d1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Add rpm,image directories and SLA options to Livemigration"
Rex Lee [Fri, 25 Aug 2017 06:17:53 +0000 (06:17 +0000)]
Merge "Add rpm,image directories and SLA options to Livemigration"

6 years agoMerge "Removed unnecessary image definitions and flavor names."
Ross Brattain [Fri, 25 Aug 2017 04:55:56 +0000 (04:55 +0000)]
Merge "Removed unnecessary image definitions and flavor names."

6 years agoMerge "Fixed invalid vfw/vacl rulw config issues"
Ross Brattain [Fri, 25 Aug 2017 04:52:05 +0000 (04:52 +0000)]
Merge "Fixed invalid vfw/vacl rulw config issues"

6 years agoMerge "Test case: add test config file for TC078 and TC079"
Jing Lu [Fri, 25 Aug 2017 02:10:04 +0000 (02:10 +0000)]
Merge "Test case: add test config file for TC078 and TC079"

6 years agoMerge "Add function to upload image from local/url in GUI"
Jing Lu [Fri, 25 Aug 2017 00:50:21 +0000 (00:50 +0000)]
Merge "Add function to upload image from local/url in GUI"

6 years agoRemoved unnecessary image definitions and flavor names. 75/40175/1
Maciej Skrocki [Thu, 24 Aug 2017 21:42:48 +0000 (14:42 -0700)]
Removed unnecessary image definitions and flavor names.

Change-Id: I13464d997ff9aba09a6cff7d3ff62f29df770a38
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
6 years agoMerge "add ppm into result of pktgen to make result clear"
Ross Brattain [Thu, 24 Aug 2017 21:30:52 +0000 (21:30 +0000)]
Merge "add ppm into result of pktgen to make result clear"

6 years agoMerge "nsb: update HEAT testcases"
Ross Brattain [Thu, 24 Aug 2017 21:30:32 +0000 (21:30 +0000)]
Merge "nsb: update HEAT testcases"

6 years agoAdded proxy setup for standard cloudimage playbooks. 69/40169/1
Maciej Skrocki [Thu, 24 Aug 2017 21:04:23 +0000 (14:04 -0700)]
Added proxy setup for standard cloudimage playbooks.

Change-Id: I4f29f584395d58b2fcece1ca8fcbda78a64e3a66
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
6 years agoStandardized TRex client library path 91/35291/13
Maciej Skrocki [Fri, 18 Aug 2017 22:43:21 +0000 (15:43 -0700)]
Standardized TRex client library path

- path should be defined via TREX_CLIENT_LIB environmental variable e.g. TREX_CLIENT_LIB=/opt/trex_client/stl
- refactored unit tests

Change-Id: I18767e48daf774432c010f1b88d18a4f0ee4e156
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agonsb: update HEAT testcases 45/40045/2
Ross Brattain [Thu, 24 Aug 2017 01:32:05 +0000 (18:32 -0700)]
nsb: update HEAT testcases

use yardstick-samplevnfs image name
always create DPDK flavor, we require 1 socket, 10 cores
remove hardcoded external network
add gateway_ip: null to prevent multiple default gateways ssh bug with Heat
add enable_dhcp: false

Change-Id: I85787b72bf6ebf1c330f20f50f7a7a2b12aa995e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoansible: update dpdk, trex and samplevnf install 53/39653/9
Ross Brattain [Fri, 18 Aug 2017 20:36:02 +0000 (13:36 -0700)]
ansible: update dpdk, trex and samplevnf install

we now clone samplevnf from git repo
made install_samplevnf role that takes as parameter VNF name
added ubuntu_server_cloudimg_modify_samplevnfs playbook

Change-Id: I5724e3b844b3137542a5c293516893a5c80f5c61
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoAdd function to upload image from local/url in GUI 17/39117/6
chenjiankun [Fri, 11 Aug 2017 09:26:22 +0000 (09:26 +0000)]
Add function to upload image from local/url in GUI

JIRA: YARDSTICK-782

As user, we need to upload image from local/url.
If upload image from local, user need to choose local image, then
we will load it to openstack.
If upload image from url, we will download it and load it to openstack.

Change-Id: Ia9a42fda15a1dfc91476643635343a2f77a94a6b
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoFixed invalid vfw/vacl rulw config issues 73/40073/2
Deepak S [Wed, 23 Aug 2017 10:46:17 +0000 (03:46 -0700)]
Fixed invalid vfw/vacl rulw config issues

Change-Id: Ib96bc4bec359005e04e4a839846779d918881ba4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoFixed 1C/2T configuration issues. 71/40071/2
Deepak S [Wed, 23 Aug 2017 10:45:23 +0000 (03:45 -0700)]
Fixed 1C/2T configuration issues.

Change-Id: I361d88043076c2f901ff6df22f2849edc7559ba0
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "Add common openstack opertation scenarios: volume & floating ip"
Jing Lu [Thu, 24 Aug 2017 01:04:20 +0000 (01:04 +0000)]
Merge "Add common openstack opertation scenarios: volume & floating ip"

6 years agoMerge "samplevnf_helper: use network address"
Ross Brattain [Wed, 23 Aug 2017 21:04:00 +0000 (21:04 +0000)]
Merge "samplevnf_helper: use network address"

6 years agoMerge "Re-define the framesize and flow dynamic define in testcase"
Ross Brattain [Wed, 23 Aug 2017 21:03:45 +0000 (21:03 +0000)]
Merge "Re-define the framesize and flow dynamic define in testcase"

6 years agoMerge "ssh: add new get_file_obj method to fetch remote files"
Ross Brattain [Wed, 23 Aug 2017 17:05:56 +0000 (17:05 +0000)]
Merge "ssh: add new get_file_obj method to fetch remote files"

6 years agoAdd test case file, document and related scripts of yardstick 81/38981/5
tjuyinkanglin [Wed, 9 Aug 2017 15:06:56 +0000 (23:06 +0800)]
Add test case file, document and related scripts of yardstick
tc057(HA_TC014)

JIRA: YARDSTICK-779

Change-Id: I6a812b1c88229b20a0dd0ce5bc135c9ba15266db
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
6 years agoAdd rpm,image directories and SLA options to Livemigration 45/39945/1
RajithaY [Wed, 23 Aug 2017 04:29:29 +0000 (21:29 -0700)]
Add rpm,image directories and SLA options to Livemigration

This patch includes adding of rpm and image directories in addition
to scripts directory for execution of live migration test case and
SLA options for downtime,totaltime and setuptime.

Change-Id: I22747b978aa16b6c3ee9e3cdd05cf77a10207626
Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>

6 years agoTest case: add test config file for TC078 and TC079 37/39937/2
JingLu5 [Wed, 23 Aug 2017 03:40:56 +0000 (03:40 +0000)]
Test case: add test config file for TC078 and TC079

Change-Id: I47c6f1bf85caa814f019a8aec446c99bb8d99f0d
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoAdd common openstack opertation scenarios: volume & floating ip 27/39927/6
JingLu5 [Wed, 23 Aug 2017 02:15:13 +0000 (02:15 +0000)]
Add common openstack opertation scenarios: volume & floating ip

JIRA: YARDSTICK-781

This patch adds some common openstack opertation scenarios

Change-Id: I1300a61b389202242f112b6d280ab47746379546
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Add test case file and document of Tardstick TC056(HA_TC013)"
Jing Lu [Wed, 23 Aug 2017 01:19:52 +0000 (01:19 +0000)]
Merge "Add test case file and document of Tardstick TC056(HA_TC013)"

6 years agoMerge "Add test case file, document and related scripts of yardstick tc058(HA_TC015)"
Jing Lu [Wed, 23 Aug 2017 01:19:20 +0000 (01:19 +0000)]
Merge "Add test case file, document and related scripts of yardstick tc058(HA_TC015)"

6 years agoMerge "Add common openstack opertation scenarios: subnet & port"
Jing Lu [Tue, 22 Aug 2017 07:13:28 +0000 (07:13 +0000)]
Merge "Add common openstack opertation scenarios: subnet & port"

6 years agoMerge "Enable vnf/tg instantiate as blocking call."
Ross Brattain [Tue, 22 Aug 2017 03:14:08 +0000 (03:14 +0000)]
Merge "Enable vnf/tg instantiate as blocking call."

6 years agossh: add new get_file_obj method to fetch remote files 39/39839/1
Ross Brattain [Mon, 21 Aug 2017 05:09:33 +0000 (22:09 -0700)]
ssh: add new get_file_obj method to fetch remote files

We can either cat remote files, or we can just sftp get
them.

use sftp get for /proc/cpuinfo since it can be so very large
on systems with 88+ cores.

Change-Id: I420b8c5eefdce8bb3e3b13dcc8257583dee537c1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "test_vsperf_dpdk: remove unused and incorrect mock open"
Ross Brattain [Tue, 22 Aug 2017 03:07:37 +0000 (03:07 +0000)]
Merge "test_vsperf_dpdk: remove unused and incorrect mock open"

6 years agosamplevnf_helper: use network address 29/39829/3
Ross Brattain [Mon, 21 Aug 2017 19:09:34 +0000 (12:09 -0700)]
samplevnf_helper: use network address

use network address with netmasks to be proper

ports_mac_list is no longer valid, remove it

nd_route_tbl needs to default to something otherwise
the VNF will segfault if it receives IPv6 on the port,
which it will because something in Neutron is sending
out IPv6 packets.

disable use of the routing table gateways to set arp add.
We set the next hop IP to always be the TG IP address,
so we need to always use the TG IP in arp add to send
to the TG MAC address

don't use gateways to get local addresses.

we can't use gateways because with OpenStack if we define
a gateway is breaks the default route and we can no longer
connect to the instance via floating IP.

Change-Id: I0ebefe8ac09812b6030046f73bf772edda1c7d27
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoRe-define the framesize and flow dynamic define in testcase 37/39337/14
Deepak S [Mon, 14 Aug 2017 02:15:55 +0000 (19:15 -0700)]
Re-define the framesize and flow dynamic define in testcase

This patch adds the framesize and flow into test option instead of
adding a seperate file to avoid the multiple file update incase of ip
change.

Change-Id: Ic473c73773ad36422ecc02618b8c646a5336b70a
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "Refactor to make file sys more like class inheritance"
Ross Brattain [Mon, 21 Aug 2017 23:49:42 +0000 (23:49 +0000)]
Merge "Refactor to make file sys more like class inheritance"

6 years agoRefactor to make file sys more like class inheritance 13/39613/4
Edward MacGillivray [Fri, 18 Aug 2017 17:41:03 +0000 (10:41 -0700)]
Refactor to make file sys more like class inheritance

Change-Id: I5471d2e894ca78407a57f3ba01202264c69ad174
Signed-off-by: Edward MacGillivray <edward.s.macgillivray@intel.com>
6 years agoadd ppm into result of pktgen to make result clear 61/39461/5
rexlee8776 [Thu, 17 Aug 2017 01:35:18 +0000 (01:35 +0000)]
add ppm into result of pktgen to make result clear

Change-Id: I6649960dc9fbc61c22c9b7434805fc335634960b
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
6 years agovnf_generic: fixup topology probe logic 15/39715/1
Ross Brattain [Sat, 19 Aug 2017 01:38:07 +0000 (18:38 -0700)]
vnf_generic: fixup topology probe logic

fix exception handling

Change-Id: I46fd0dbf21f3d3308e4f38fcfae5df2716ad7190
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agotest_vsperf_dpdk: remove unused and incorrect mock open 09/39709/1
Ross Brattain [Sat, 19 Aug 2017 01:32:02 +0000 (18:32 -0700)]
test_vsperf_dpdk: remove unused and incorrect mock open

need to use create=True with mock open anyway

Change-Id: I3a35688cf8c367434db9d0cf057030d49deddd0d
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoremove apexlake-verify 07/39707/1
Ross Brattain [Fri, 18 Aug 2017 05:22:41 +0000 (22:22 -0700)]
remove apexlake-verify

Change-Id: I5ac8e5d573c390460e2472c7b3b4649cc78dd295
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoAdd common openstack opertation scenarios: subnet & port 87/39687/3
JingLu5 [Mon, 21 Aug 2017 02:44:17 +0000 (02:44 +0000)]
Add common openstack opertation scenarios: subnet & port

JIRA: YARDSTICK-781

This patch adds some common openstack opertation scenarios

Change-Id: Ie59f0d5ae0842f8347824c961436b889a95b1a72
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Add common openstack opertation scenarios: network"
Jing Lu [Mon, 21 Aug 2017 01:44:25 +0000 (01:44 +0000)]
Merge "Add common openstack opertation scenarios: network"

6 years agoMerge "import_modules_from_package: refactor with generators"
Ross Brattain [Sat, 19 Aug 2017 01:30:35 +0000 (01:30 +0000)]
Merge "import_modules_from_package: refactor with generators"

6 years agoMerge "Fix IxLoad traffic generator issue around running the traffic."
Ross Brattain [Sat, 19 Aug 2017 01:06:46 +0000 (01:06 +0000)]
Merge "Fix IxLoad traffic generator issue around running the traffic."

6 years agoMerge "Support traffic generator for testing more than 10 ports"
Ross Brattain [Sat, 19 Aug 2017 00:56:44 +0000 (00:56 +0000)]
Merge "Support traffic generator for testing more than 10 ports"

6 years agoFix IxLoad traffic generator issue around running the traffic. 41/39341/7
Deepak S [Mon, 14 Aug 2017 11:27:49 +0000 (04:27 -0700)]
Fix IxLoad traffic generator issue around running the traffic.

Change-Id: Ic1f13c0d28c1a1b01bbf3c8a6a618a5b3ab5bbeb
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoimport_modules_from_package: refactor with generators 37/39237/4
Ross Brattain [Sun, 13 Aug 2017 05:33:37 +0000 (22:33 -0700)]
import_modules_from_package: refactor with generators

remove ..... split and use os.path.relpath to remove
prefix
use set operations to find missing modules, so we
don't need to check dict contains multiple times

Change-Id: I9531360fb9b2999e83874f144f1d06d825b22b2c
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoFix parsing of the results from collectd plugins 93/39193/6
Deepak S [Sat, 12 Aug 2017 23:14:00 +0000 (16:14 -0700)]
Fix parsing of the results from collectd plugins

Change-Id: I3f7b9ca17164564b11517116e7e73b47f42243b9
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoSupport traffic generator for testing more than 10 ports 33/39333/4
Deepak S [Sat, 12 Aug 2017 21:15:05 +0000 (14:15 -0700)]
Support traffic generator for testing more than 10 ports

Change-Id: I9c027af082cedbadc23b0151d403dab4e9756da4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoFix import error in IxNetwork 97/39497/4
Deepak S [Thu, 17 Aug 2017 04:20:55 +0000 (21:20 -0700)]
Fix import error in IxNetwork

This patch fixes import error related to ixnetwork and do not wait for
TG server to start as IXIA is always running :)

Change-Id: I49d6b100eadafad75431cb8974605a6faa496f23
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agosamplevnf: fix make_ip_addr 55/39455/2
Ross Brattain [Wed, 9 Aug 2017 00:56:42 +0000 (17:56 -0700)]
samplevnf: fix make_ip_addr

we get TypeError sometimes, so
we need to catch them

Change-Id: I5fc58006f18acf84f62d8f4a21077d71b2fb0ed8
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "utils: create TASK_LOG_DIR if it doesn't exist"
Ross Brattain [Thu, 17 Aug 2017 01:58:52 +0000 (01:58 +0000)]
Merge "utils: create TASK_LOG_DIR if it doesn't exist"

6 years agoMerge "Verify the route list before parsing the data key"
Ross Brattain [Thu, 17 Aug 2017 01:56:47 +0000 (01:56 +0000)]
Merge "Verify the route list before parsing the data key"

6 years agoMerge "run_traffic: capture and exit gracefully if crash in trex run_traffic"
Ross Brattain [Thu, 17 Aug 2017 01:56:04 +0000 (01:56 +0000)]
Merge "run_traffic: capture and exit gracefully if crash in trex run_traffic"

6 years agoMerge "YAML fixes"
Ross Brattain [Wed, 16 Aug 2017 16:19:56 +0000 (16:19 +0000)]
Merge "YAML fixes"

6 years agoVerify the route list before parsing the data key 83/39183/4
Deepak S [Sat, 12 Aug 2017 22:13:21 +0000 (15:13 -0700)]
Verify the route list before parsing the data key

Exception:
line 502, in get_route_data
return next((route[data_key] for route in route_list if route['if'] ==
port), None)
TypeError: 'NoneType' object is not iterable

Change-Id: Ia45d90a4e9a61cb917b23efd03b86eafb249b747
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "Remove redundancy file and do relative modification"
Ross Brattain [Wed, 16 Aug 2017 03:37:59 +0000 (03:37 +0000)]
Merge "Remove redundancy file and do relative modification"

6 years agoYAML fixes 09/39209/10
Ross Brattain [Mon, 7 Aug 2017 21:32:45 +0000 (14:32 -0700)]
YAML fixes

There are multiple issues wiht YAML loading.

1. Jinja2 renders None values as a string 'None'.  This is not valid YAML
we need to render None values to '~' or 'null' which is the native YAML
None value.

2. Jinja2 renders dict and lists that contain unicode with
u'foo' values.  This is not value YAML syntax.
Because we are serializing dict and lists into YAML, we
need to encode them as valid YAML.  We can override Jinja2 finalize to
use yaml.dump to dump inline YAML.

We use yaml.safe_dump(elem, default_flow_style=True).replace('\n', '')
to generate valid single-line YAML dict and list values.

But this problem highlights the general difficulties with templating and
loading files.
We could avoid this Python->Jinja2->YAML->Python issue by directly
injecting the list or dict after the YAML is loaded.

I'm not sure of the real utility of these templates.

3. On Python 2 YAML loader is rendering all strings
as unicode.  This does not work for Trex because Trex is broken
and badly coded.  Trex does type checking against str() which
is different for Python 2 and Python 3.
The default YAML loader will return native string types, str() or unicode()
for Python 2 and Python 3 respectively.

The bad Trex codes is in convert_val:

https://github.com/cisco-system-traffic-generator/trex-core/blob/master/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_packet_builder_scapy.py#L674

def convert_val (val):
    if is_integer(val):
        return val
    if type(val) == str:
        return ipv4_str_to_num (is_valid_ipv4(val))
    raise CTRexPacketBuildException(-11,("init val invalid %s ") % val  );

This code is doing type(val) == str.  This is bad and broken.
We can't fix Trex, so we have to render all strings as native str() types

The bug here was that the Heat template loader template_format.py
was overriding the global YAML loader to always return unicode.
We don't want this global override.

To fix this we have to use local subclasses of the yaml.SafeLoader
class.
But in order to dynamically subclass from CSafeLoader or SafeLoader
we have to use the type() builtin to define a new class at runtime.

Once we have new classes defined, we can safely isolate different
YAML constructors and return unicode or not depending on the case.

To be consistent we implement a new yaml_loader.py module to centralize
all non-Heat template yaml loading to ensure correct uncode/str
conversion

Change-Id: Iebf9cf78fbda390977c390436b0869e7bbf503eb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agorun_traffic: capture and exit gracefully if crash in trex run_traffic 39/39339/7
Deepak S [Mon, 14 Aug 2017 10:09:53 +0000 (03:09 -0700)]
run_traffic: capture and exit gracefully if crash in trex run_traffic

new non-blocking code of run_traffic has raise condition which causes
trex client to exit with STLError. This patches captures the exception
and exit gracefully

Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in
_bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114,
in run
self._target(*self._args, **self._kwargs)
File
"/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/sample_vnf.py",
line 945, in _traffic_runner
self.resource_helper.run_traffic(traffic_profile)
File
"/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/sample_vnf.py",
line 506, in run_traffic
self._run_traffic_once(traffic_profile)
File
"/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_trex.py",
line 63, in _run_traffic_once
self.client.stop(self.my_ports)
File
"/opt/nsb_bin/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py",
line 1202, in wrap2
raise STLError("'{0}' - connection to the server had been lost: '{1}'".format(func_name, client.conn.get_disconnection_cause()))
STLError:

Change-Id: Ie5741339451e0a3f9c4bb48f64fd35d86d18e5d4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agohtml_template: can't use iteritems, use items 69/39369/1
Ross Brattain [Wed, 16 Aug 2017 00:50:32 +0000 (17:50 -0700)]
html_template: can't use iteritems, use items

iteritems is not supported in Python 3
we have to use items()

Change-Id: Ib923dfea4220eeab311949c9f6f420fef378e98a
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoEnable ixnet traffic generator to run traffic 43/39343/4
Deepak S [Mon, 14 Aug 2017 22:19:54 +0000 (15:19 -0700)]
Enable ixnet traffic generator to run traffic

Change-Id: I8d7cea75aa864c37a058a154a38c9828ea5da434
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMoving trex to latest version (v2.28) to support new NICs 45/39345/2
Deepak S [Tue, 15 Aug 2017 04:46:29 +0000 (21:46 -0700)]
Moving trex to latest version (v2.28) to support new NICs

Change-Id: I81e119deec36ae90749c2eb1d555f75475ce2474
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "Download the right dpdk bind tool before starting the test case"
Ross Brattain [Tue, 15 Aug 2017 15:25:11 +0000 (15:25 +0000)]
Merge "Download the right dpdk bind tool before starting the test case"

6 years agoMerge "deepgetitem: try string index before int"
Ross Brattain [Tue, 15 Aug 2017 15:24:30 +0000 (15:24 +0000)]
Merge "deepgetitem: try string index before int"

6 years agoMerge "gitignore: ignore .tox/"
Ross Brattain [Tue, 15 Aug 2017 13:41:58 +0000 (13:41 +0000)]
Merge "gitignore: ignore .tox/"

6 years agoEnable vnf/tg instantiate as blocking call. 91/39191/4
Deepak S [Sat, 12 Aug 2017 22:45:03 +0000 (15:45 -0700)]
Enable vnf/tg instantiate as blocking call.

untill we fix the sequence issue, we need to make the instantiate
blocking call to avoid hangs

Change-Id: Ie337372625d506e6b3c74a5248204a87fec1ca2c
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoDownload the right dpdk bind tool before starting the test case 35/39335/2
Deepak S [Sat, 12 Aug 2017 22:01:07 +0000 (15:01 -0700)]
Download the right dpdk bind tool before starting the test case

Change-Id: Id8901aabef402d5743e2575e275b5a57046e897c
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agogitignore: ignore .tox/ 11/39311/1
Ross Brattain [Mon, 7 Aug 2017 21:31:54 +0000 (14:31 -0700)]
gitignore: ignore .tox/

Change-Id: If021ed0f099c81492fd7509317efc31f020e6d18
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agodeepgetitem: try string index before int 07/39307/2
Ross Brattain [Tue, 15 Aug 2017 03:30:39 +0000 (20:30 -0700)]
deepgetitem: try string index before int

Change-Id: I3b353c5887db0ebbe33e37db505e72b85167b54e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Update release note for Danube.3.2"
Ross Brattain [Tue, 15 Aug 2017 05:09:02 +0000 (05:09 +0000)]
Merge "Update release note for Danube.3.2"

6 years agoMerge "ACL: remove failing testing"
Ross Brattain [Tue, 15 Aug 2017 05:01:01 +0000 (05:01 +0000)]
Merge "ACL: remove failing testing"

6 years agoMerge "task: initialize result"
Ross Brattain [Tue, 15 Aug 2017 04:44:26 +0000 (04:44 +0000)]
Merge "task: initialize result"

6 years agotask: initialize result 05/39305/1
Ross Brattain [Tue, 15 Aug 2017 04:32:52 +0000 (21:32 -0700)]
task: initialize result

Change-Id: I8d6b9bed24c9afa4be54296515e6aa91e84fe650
Signed-off-by: Martin Banszel <martinx.banszel@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agodynamictp: fix flake8 warning 91/38491/3
Ross Brattain [Mon, 31 Jul 2017 20:21:08 +0000 (13:21 -0700)]
dynamictp: fix flake8 warning

flake8 warns about indent

Change-Id: Ib7a57dcb8462de24a2ccb1fdbc60db995cc60d33
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoACL: remove failing testing 97/39297/1
Ross Brattain [Tue, 15 Aug 2017 03:21:06 +0000 (20:21 -0700)]
ACL: remove failing testing

test_instantiate_panic fails randomly sometimes
in Jenkins, the test doesn't really do anything
useful, so remove it

Change-Id: Ia44ebbe778b812ae1b4660d64e88bf029fed3701
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "KVMFORNFV: Update Grafana config for Packet Forwarding test cases."
Rex Lee [Tue, 15 Aug 2017 01:13:40 +0000 (01:13 +0000)]
Merge "KVMFORNFV: Update Grafana config for Packet Forwarding test cases."

6 years agoIntegrate vsperf in Tgen mode 79/35379/10
Jing Zhang [Thu, 25 May 2017 22:41:00 +0000 (18:41 -0400)]
Integrate vsperf in Tgen mode

Problem:
Running Vsperf in Tgen mode is supported but the integration is not complete at the code level
i.e. not ready-to-use, and dpdk loopback is not supported inside the VM.

Solution:
(1) Completely automates VM image generation and supports 1G huge pages.
(2) Adds a new test scenario VsperfDPDK for testpmd based loopback inside the VM.

Update 1-2: Fixed "line too long" issues not reported by local run_tests.sh (why?)
Update 3: Per comment change to use SSH.from_node() and add unit test cases
Update 4: Add more unit test cases for coverage and ready the code for merge

JIRA: YARDSTICK-661

Change-Id: Iea3014d4c83e1b0c079019a4ed27771d40a7eed8
Signed-off-by: Jing Zhang <jing.c.zhang@nokia.com>
6 years agoUpdate release note for Danube.3.2 93/39293/1
JingLu5 [Tue, 15 Aug 2017 00:58:05 +0000 (00:58 +0000)]
Update release note for Danube.3.2

Note: This patch should be merger to stable branch.

Change-Id: I7f07a7c367fc387494f2313143a300fef85a8fd1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Add yardstick report for each task"
Ross Brattain [Tue, 15 Aug 2017 00:56:55 +0000 (00:56 +0000)]
Merge "Add yardstick report for each task"

6 years agoAnsible typo fix, whitespace 41/39241/3
Ross Brattain [Wed, 15 Mar 2017 18:50:29 +0000 (11:50 -0700)]
Ansible typo fix, whitespace

Change-Id: I3639ab84ab5b9e802e1bbd23674b0fbda46fdc66
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoPROX VNF and TG 51/38251/9
Ross Brattain [Mon, 24 Apr 2017 21:25:48 +0000 (23:25 +0200)]
PROX VNF and TG

PROX was added to samplevnf project
https://git.opnfv.org/samplevnf/tree/VNFs/DPPD-PROX

JIRA: YARDSTICK-638

Change-Id: If9875b1130c6bed87deb8720b0d8b28ede9289d9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "cli: typo, s/dispath/dispatch/g"
Ross Brattain [Mon, 14 Aug 2017 15:41:10 +0000 (15:41 +0000)]
Merge "cli: typo, s/dispath/dispatch/g"

6 years agoAdd yardstick report for each task 17/39217/1
chenjiankun [Mon, 14 Aug 2017 02:47:29 +0000 (02:47 +0000)]
Add yardstick report for each task

JIRA: YARDSTICK-784

Currently we have yardstick report in GUI.
But if users do not use GUI, they can't see this report.
So we need generate a report each task.

After run each test case, we can see report:
http://ip:port/report/report.html

Change-Id: Ic76cf57f55aa6680b91272e210135136f0225373
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoutils: create TASK_LOG_DIR if it doesn't exist 13/39213/1
Ross Brattain [Sun, 13 Aug 2017 20:36:57 +0000 (13:36 -0700)]
utils: create TASK_LOG_DIR if it doesn't exist

Change-Id: I10630599065e6c159b137bd4d6ee89353a1c411b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agocli: typo, s/dispath/dispatch/g 11/39211/1
Ross Brattain [Sun, 13 Aug 2017 19:09:53 +0000 (12:09 -0700)]
cli: typo, s/dispath/dispatch/g

Change-Id: I3df6bc606f2ac78baf611aee22b9247f6f9d5136
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMove the comment above the config parameter line to avoid the expection 95/39195/1
Deepak S [Sat, 12 Aug 2017 23:57:06 +0000 (16:57 -0700)]
Move the comment above the config parameter line to avoid the expection

Traceback (most recent call last):
File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/cmd/commands/task.py", line 54, in do_start
result = Task().start(param, **kwargs)
File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/benchmark/core/task.py", line 148, in start
self._do_output(output_config, result)
File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/benchmark/core/task.py", line 227, in _do_output
dispatchers = DispatcherBase.get(output_config)
File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/dispatcher/base.py", line 46, in get
for out_type in config['DEFAULT']['dispatcher']]
File "/opt/nsb_bin/yardstick_venv/lib/python2.7/site-packages/yardstick-0.1.dev0-py2.7.egg/yardstick/dispatcher/base.py", line 38, in get_cls
raise RuntimeError("No such dispatcher_type %s" % dispatcher_type)
RuntimeError: No such dispatcher_type Http # setup multiple dipatcher with comma deperted e.g. file

Change-Id: I497d0d9ce7fdb7ea2913af6ebeb4bb9008344fed
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoAdd Ansible executor class for node context 11/33411/13
Ross Brattain [Tue, 14 Mar 2017 05:08:06 +0000 (22:08 -0700)]
Add Ansible executor class for node context

import the AnsibleCommon class to execute Ansible playbooks

Update node context support to use AnsibleCommon

needs unittests

We must call ansible-playbook as an executable, so we must create temp
files for inventory, and for the playbooks.

AnsibleCommon has evolved to be quite flexible, it auto-generates the
inventory from the context['nodes'] and generates groups from the node
Role.

We also support either a single playbook filename, or a list of
filenames.

If given a list we dynamically generate a playbook that includes the
other playbooks.

We support adding any number of extra_vars using a temp JSON file.

Also designed to be extended by subclassing.

Change-Id: I5bd0a2b4547feaadd70b7e2b8801f19371b99df0
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoixia: VNF id must match class name 55/39155/1
Ross Brattain [Fri, 11 Aug 2017 21:38:28 +0000 (14:38 -0700)]
ixia: VNF id must match class name

The class name is IxiaTrafficGen

Change-Id: Ie18be44c7b58d50f13e9a5df50afa3e02fc0cce3
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "yardstick setup ansible, including load_images"
Ross Brattain [Fri, 11 Aug 2017 17:47:29 +0000 (17:47 +0000)]
Merge "yardstick setup ansible, including load_images"

6 years agoKVMFORNFV: Update Grafana config for Packet Forwarding test cases. 27/39127/3
kalyanreddy [Fri, 11 Aug 2017 10:45:24 +0000 (03:45 -0700)]
KVMFORNFV: Update Grafana config for Packet Forwarding test cases.

JIRA: YARDSTICK-783

This patch is used for updating the configuration file of opnfv grafana
dashboard for kvmfornfv packet forwarding to publish the results of new
test cases added as part of kvmfornfv daily job.

Also used for updating the config file of opnfv grafana dashboard for
kvmfornfv cyclictest test cases to correct the alias colours.

Change-Id: I34aa155e2782e58147e55f974134673a892eb93b
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
6 years agoAdd test case file, document and related scripts of yardstick 05/39105/3
tjuyinkanglin [Thu, 10 Aug 2017 15:48:01 +0000 (23:48 +0800)]
Add test case file, document and related scripts of yardstick
tc058(HA_TC015)

JIRA: YARDSTICK-780

Change-Id: I4406776cb6b91265a0d2674b5dd200ca7d13ef14
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
6 years agoRemove redundancy file and do relative modification 69/38969/4
chenjiankun [Wed, 9 Aug 2017 09:51:31 +0000 (09:51 +0000)]
Remove redundancy file and do relative modification

Change-Id: If6f672a2cbe218a20e3d8f3d093d31f6887d7ca3
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoAdd real time log view in GUI 53/38953/3
chenjiankun [Wed, 9 Aug 2017 03:23:58 +0000 (03:23 +0000)]
Add real time log view in GUI

JIRA: YARDSTICK-775

We have GUI now, but we can't see real time log in GUI view.
So I add real time log view in GUI.

Change-Id: Ie83f327ef0a94302afa6b3def764fec6ef5818d1
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
6 years agoMerge "Add common openstack opertation scenarios: image & volume"
Jing Lu [Fri, 11 Aug 2017 09:16:42 +0000 (09:16 +0000)]
Merge "Add common openstack opertation scenarios: image & volume"

6 years agoAdd common openstack opertation scenarios: network 07/39107/6
JingLu5 [Fri, 11 Aug 2017 06:16:19 +0000 (06:16 +0000)]
Add common openstack opertation scenarios: network

JIRA: YARDSTICK-781

This patch adds some common openstack opertation scenarios

Change-Id: I854fc435a5c951245a5997cd4e3e63c5162030af
Signed-off-by: JingLu5 <lvjing5@huawei.com>