summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-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
2017-08-25collectd: disable auto-provisionRoss Brattain1-12/+16
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>
2017-08-25Enabling ACL test for provider network.Maciej Skrocki3-19/+25
Properly re-using network_type from model. Change-Id: I40180eb53080a360b4099c034038eac67716f8d1 Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-08-25Merge "Added external versions for vFW and cgnat TCs."Ross Brattain2-0/+161
2017-08-25Merge "ansible: update dpdk, trex and samplevnf install"Ross Brattain38-420/+315
2017-08-25Added external versions for vFW and cgnat TCs.Maciej Skrocki2-0/+161
Change-Id: I6778dac0c60f090238ed1f4860470e62a64c7d69 Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-08-25Trex: fix KPI collectionRoss Brattain3-3/+3
return super result Change-Id: I723a37281da15c1887ae1b3cf91d7e957b1924d1 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-25Create test suite k8-nosdn-lb-noha run with k8s contextchenjiankun3-1/+19
JIRA: YARDSTICK-800 We have k8-nosdn-lb-noha scenario with kubernetes deployment. So we need to add k8-nosdn-lb-noha test suite to run test case. Change-Id: Id6dc73ad999733ddfa2e03673c20f7e92a8250a3 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-08-25Merge "Add rpm,image directories and SLA options to Livemigration"Rex Lee1-1/+16
2017-08-25Merge "Removed unnecessary image definitions and flavor names."Ross Brattain3-5/+0
2017-08-25Merge "Fixed invalid vfw/vacl rulw config issues"Ross Brattain1-2/+2
2017-08-25Merge "Test case: add test config file for TC078 and TC079"Jing Lu2-0/+93
2017-08-25Merge "Add function to upload image from local/url in GUI"Jing Lu16-267/+723
2017-08-25Add common openstack opertation scenarios: router & portJingLu512-1/+496
JIRA: YARDSTICK-781 This patch adds some common openstack opertation scenarios Change-Id: Id436a201aa04f8f6b98576e8fbf599ca3654827c Signed-off-by: JingLu5 <lvjing5@huawei.com>