aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-05Add fixes for heat deployed UDP_Replay and TRexMartin Banszel11-715/+1016
- Added a PROTOCOL_MAP to map the protocol names to codes -- the scapy requires the code, it fails if the proto is set e.g. to 'udp' - ip addresses must be str, not unicode -- explicit conversion to str added - removed unittest for setup_vnf_environment in test_tg_trex.py as it is the same function as already tested in test_sample_vnf.py - traffic_profile refactored -- code repetition decreased, unittest adapted Known issues: - there is a an attempt to stop already stopped trex. It fires an exception that stop command is issued on the disconnected client. Change-Id: I87e9029630f48b30e8f5b4f9d88ab3b25fd65f03 Signed-off-by: Martin Banszel <martinx.banszel@intel.com>
2017-09-05nsb_setup: fixup typoRoss Brattain1-1/+1
Change-Id: I7fcbf0a3c3f21065d82ffb23b5ea8c1e774a1d67 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-06Merge "ansible: remove default openrc_file"Ross Brattain1-1/+0
2017-09-05ansible: remove default openrc_fileRoss Brattain1-1/+0
when clause is re-evaluated after default Change-Id: I2f9b093a4cb0e2d024f8d6beb935f336ac1df637 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-05nsb_setup: pin pip versions for ansible, shade, dockerRoss Brattain1-1/+1
Change-Id: Ia1f1c26becdc776ce664b4ab2fb0254049087318 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-05PROX: catch ports stats parse errorRoss Brattain1-2/+8
for some reason port status returned fewer fields, catch this for debug and return empty result dict so test continues and hopefully we get a valid stat read on next call. Change-Id: I54f1a86707d2a00efcb82a7e0239d12f90a6542c Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-05Merge "Addition of Prox NSB changes in yardstick"Ross Brattain77-1207/+15382
2017-09-05ansible: fix corrupt /etc/fstab boot errorRoss Brattain1-1/+7
Change-Id: I71fdef5deff75cad434bf19f0a7e507c1dcc4ed3 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-05Introduced ansible playbook to setup NSB.Maciej Skrocki19-321/+235
Change-Id: I5865cd50d5fde26e9e9fc265d4385372d668413f Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-05Merge "Adding intel_pmu tools plugin for collectd"Ross Brattain4-5/+42
2017-09-04Adding intel_pmu tools plugin for collectdDeepak S4-5/+42
Change-Id: I81ff3d43d209e98188855c8b2eb302835bb5d417 Signed-off-by: Neha Vadnere <neha.r.vadnere@intel.com> Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-04Fix Ixload KPIs collection & hang issues.Deepak S3-7/+11
Change-Id: If679333dc1cb9e041a332fb374c55f72eaab1b28 Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-04Addition of Prox NSB changes in yardstickabhijitsinha77-1207/+15382
JIRA: YARDSTICK-802 Addition of Prox L2Fwd, MPLS test cases for BM and Heat. updates: Most of tg_prox and prox_vnf were absorbed into the base classes. delete most of ProxDpdkVnfSetupEnvHelper, it is handled by DpdkVnfSetupEnvHelper baseclass use standard _build_pipeline_kwargs methods don't use terminate() use baseclass version add new method kill_vnf that runs pkill -x replace resource_helper.execute() with vnf_execture for dumping stats In order to share code between tg_prox and vnf_prox refactor to have tg_prox hold and wrap a ProxApproxVnf instance and call methods on that class. Do this instead of multiple-inheritance. Implement ProxApproxVnf.terminate() using prox socket command based exit, (stop_all, quit, force_quit). vnf_execute calls resource_helper.execute() which calls socket methods on the sut object. Since tg_prox wraps the VNF object, we can call terminate on the VNF object and it should work correctly. move prox config generation to parent process we need to get core number info from config file inside the TG processes, so we need to generate the config in the parent process so the data is copied to the child during the fork. moved more config file methods to the setup_helper class. we run force_quit after quit, so the socket should already be closed this will trigger socket error, so add _ignore_errors option for vnf_execute to ignore socket errors Fixed the terminate issue. Added MPLS tests. Added TG Stats in_packet/out_packet Fixed compile (pep8) issues Fixed MPLS TG port stats, in/out packets Added Grafana dashboards for L2FWD and MPLS Traffic profiles modified for tolerated loss and precision as per DATS tests. Added unit test case for Mpls Single port test stats collection support. Change-Id: Idd9493f597c668a3bb7d90e167e6a418546106e8 Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com> Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-03test_create_keypair: fix op_utils mock and mock paramikoRoss Brattain1-5/+6
Change-Id: I5c039c0d4f4ba651209c7d5ca4e748f9151b5630 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-01add opnfv_os-odl-nofeature-noha_daily.yaml for odl_l3 to odl renameRoss Brattain1-0/+56
Change-Id: Ib7cfb36d89551a187f5ee681454e61444a08c585 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-01Merge "Adding support for updating the count/packetsize for given testcase"Ross Brattain6-44/+71
2017-09-01sample_vnf: default to 16GB of 2048Kb hugepagesRoss Brattain2-2/+2
8192 * 2048kB = 16GB Change-Id: I82bf420794e5174e88cfaea08b9fab0d77c2be7f Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-09-01Merge "Adding vfw scale-up test with ixia as tg"Ross Brattain1-0/+49
2017-09-01Adding cgnapt scale-up test with ixia as tgDeepak S1-0/+49
Change-Id: I834d733aff2da5af12db08f4159be2e9c6361aab Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2017-09-01Adding vfw scale-up test with ixia as tgDeepak S1-0/+49
Change-Id: I4f476d16dd11a12f5ffa9047af78d2236a4fbbc2 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2017-09-01Merge "Introduced default values and remove unnecessary ones from ansible ↵Ross Brattain7-39/+11
code image build code."
2017-08-31Adding support for updating the count/packetsize for given testcaseDeepak S6-44/+71
Change-Id: I3ec1a6d3710d44df5ddac6bd8967d28ad58e8d33 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2017-09-01Merge "Added TC for vFW in heat context with ixia TG"Ross Brattain6-20/+120
2017-08-31Added TC for vFW in heat context with ixia TGMaciej Skrocki6-20/+120
- added common method to get relative paths - added 'Ixia' APP_NAME Change-Id: I7966798bab71af66d3efbeb1e13b07e8fbb41e88 Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-08-31Merge "Enable update ip headers for given testcase"Ross Brattain3-15/+15
2017-08-31Enable update ip headers for given testcaseDeepak S3-15/+15
Change-Id: I008b3f09695f5e3f484b39d4e70b83e5942de863 Signed-off-by: Deepak S <deepak.s@linux.intel.com> Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-08-31Introduced default values and remove unnecessary ones from ansible code ↵Maciej Skrocki7-39/+11
image build code. Change-Id: Id711d6fdacaddeafb8550290503d6cb6c814ea70 Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-08-31Rabbitmq user fix for collectdDhaval Patel1-0/+6
After rabbitmq server reset we need to setup user profile so that collectd and rabbitmq can communitcate. This profile should match amqp plugin configuration in collectd. Change-Id: I7eef3617d983d909418d484f8ded9e269d5d715d Signed-off-by: Dhaval Patel <dhaval.r.patel@intel.com>
2017-08-31Merge "sample_vnf: run_traffic loop, check if tg_process is alive"Ross Brattain1-0/+3
2017-08-30_get_ip_flow_range: fix bug with single IP rangesRoss Brattain2-4/+10
If we have a /32 or for some reason find a range of IPs to use, we can default to the single IP specified on the interface. Change-Id: Ieaa1d57b04e1d57e8cef344d5a53bbca05e7887f Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-30sample_vnf: run_traffic loop, check if tg_process is aliveRoss Brattain1-0/+3
if the tg_process crashes, this loop won't terminate unless we check tg_process.is_alive() wait 1 second before checking in case is_alive needs time to become True Change-Id: Ia0b8fd884dcfeb75ebb8e36caaf1f0b70dab079d Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-30ssh: fix unittest race conditionRoss Brattain1-2/+2
os.stat is being called multiple times for some reason we only care that is it called at some point. ====================================================================== FAIL: tests.unit.test_ssh.SSHRunTestCase.test__put_file_sftp tags: worker-1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/test_ssh.py", line 458, in test__put_file_sftp mock_stat.assert_called_once_with("localfile") File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/mock/mock.py", line 947, in assert_called_once_with raise AssertionError(msg) AssertionError: Expected 'stat' to be called once. Called 3 times. Ran 1209 tests in 2.618s FAILED (id=0, failures=1) error: testr failed (1) + testr failing ====================================================================== FAIL: tests.unit.test_ssh.SSHRunTestCase.test__put_file_sftp tags: worker-1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/test_ssh.py", line 458, in test__put_file_sftp mock_stat.assert_called_once_with("localfile") File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/mock/mock.py", line 947, in assert_called_once_with raise AssertionError(msg) AssertionError: Expected 'stat' to be called once. Called 3 times. Ran 1 tests in 0.110s FAILED (id=0, failures=1) Change-Id: I73370996e6e0543419eec8ecbe81be424ec15822 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-30Merge "Fix Scale-up issue in HWLB"Ross Brattain1-2/+12
2017-08-29Merge "DRAFT: model: remove vld_id not needed"Ross Brattain3-5/+0
2017-08-29Merge "utils: catch SyntaxError during import"Ross Brattain1-1/+1
2017-08-29Merge "Add common openstack opertation scenarios: router & port"Ross Brattain12-1/+496
2017-08-28DRAFT: model: remove vld_id not neededRoss Brattain3-5/+0
it seems vld_id is not needed now that we add it in _resolve_topology. Remove it from the model and Heat context first and see what happens Needs testing Change-Id: I30d13c80bd90246ee3be67a2bd3439db45e20bcd Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-28Merge "Collectd Fixes"Ross Brattain1-23/+13
2017-08-28Merge "Kubernetes context adoption when run in CI"Ross Brattain4-50/+59
2017-08-28Kubernetes context adoption when run in CIchenjiankun4-50/+59
JIRA: YARDSTICK-801 We need kubernetes test case run in CI. We have one scenario k8-nosdb-lb-noha for kubernetes. But for now, we need to do some adoption in CI script. Also I move check OS_AUTH_URL in heat.py. Change-Id: Iff86caf77fd74e70469ad2dc43f2238097ce0001 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-08-28utils: catch SyntaxError during importRoss Brattain1-1/+1
bad modules can also throw SyntaxError besides ImportError Change-Id: I4fa912505753cba3c06f127105354572b7f5ddd8 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-28Merge "DRAFT: update yardstick generic test cases dashboard"Ross Brattain25-5540/+11419
2017-08-26Merge "Test case: Fio volume benchmark testcase using job file"Jing Lu4-37/+280
2017-08-26Merge "Raise Exception if HA test case failed"Kubi3-0/+11
2017-08-26Merge "Create test suite k8-nosdn-lb-noha run with k8s context"Rex Lee3-1/+19
2017-08-26Merge "bugfix: tc063 fails to get the correct result in ubuntu node"Rex Lee1-2/+2
2017-08-26Merge "improve tc055 results"Ross Brattain1-7/+6
2017-08-26Merge "improve tc002 to make packet size parameterize"Ross Brattain1-2/+3
2017-08-26Raise Exception if HA test case failedJingLu53-0/+11
Change-Id: Ia3677724075c1c1408f50bbfcebd3cbcde251d66 Signed-off-by: JingLu5 <lvjing5@huawei.com>
2017-08-25Merge "collectd: disable auto-provision"Ross Brattain1-12/+16