summaryrefslogtreecommitdiffstats
path: root/yardstick
AgeCommit message (Collapse)AuthorFilesLines
2018-06-28Addition of Configurable Sampling and Configurable Confirmation RetryDanielMartinBuckley6-48/+663
JIRA: YARDSTICK-1221 In order to increase accuracy of result the following are done :- - Improve Measurement Accuracy (YARDSTICK-1212) - Improve Sampling Interval (YARDSTICK-1219) - Allow 4 PROX ports to be read simultaneously (YARDSTICK-1220) This change does the following :- - Stores LINE Rate statistics of Sample - Requires a confirmation retry before deciding to increase or decrease this is configurable. - Allows the user to disable Sampling or specify a sample interval - Added Code Coverage of ProxDurationRunner based on YARDSTICK-1199 Change-Id: I27242ac1849c9a2712866385b5fbc05977c71516 Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com> (cherry picked from commit 2e447af9a5a54355aa20028813660d07d1bd2e18)
2018-06-28Convert SLA asserts to raisesMiikka Koistinen46-156/+219
This commit converts Python assertions to a custom exception in all places where SLA validation is checked with an assertion. This commit also fixes all emerged pylint errors. JIRA: YARDSTICK-966 Change-Id: If771ed03b2cbc0a43a57fcfb9293f18740b3ff80 Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com> (cherry picked from 39f80e9b06395ae1515cfcf08508504ad4dd978a)
2018-06-28Merge "Bugfix: HA kill process recovery has a conflict" into stable/fraserJing Lu2-6/+31
2018-06-28Merge "Replace glance delete image with shade client." into stable/fraserRodolfo Alonso Hernandez5-44/+93
2018-06-28Merge "Replace glance create image with shade client." into stable/fraserRodolfo Alonso Hernandez5-78/+171
2018-06-28Merge "Replace cinder detach volume with shade client." into stable/fraserRodolfo Alonso Hernandez5-30/+109
2018-06-28Merge "Replace cinder delete volume with shade client." into stable/fraserRodolfo Alonso Hernandez5-44/+98
2018-06-28Merge "Replace cinder create volume with shade client." into stable/fraserRodolfo Alonso Hernandez5-119/+143
2018-06-28Merge "Replace cinder get_volume_id with shade client." into stable/fraserRodolfo Alonso Hernandez2-3/+24
2018-06-28Merge "Replace nova get flavor with shade client." into stable/fraserRodolfo Alonso Hernandez5-31/+104
2018-06-28Merge "Replace nova get server with shade client." into stable/fraserRodolfo Alonso Hernandez5-78/+125
2018-06-28Merge "Replace nova attach volume to server with shade client." into ↵Rodolfo Alonso Hernandez5-35/+115
stable/fraser
2018-06-28Merge "Replace nova delete keypair with shade client." into stable/fraserRodolfo Alonso Hernandez5-32/+92
2018-06-28Merge "Replace nova client create keypair with shade." into stable/fraserRodolfo Alonso Hernandez5-51/+102
2018-06-28Merge "Remove unused nova client functions." into stable/fraserRodolfo Alonso Hernandez1-136/+0
2018-06-28Merge "Replace nova delete instance with shade client." into stable/fraserRodolfo Alonso Hernandez5-32/+111
2018-06-28Merge "Replace nova create instance with shade client." into stable/fraserRodolfo Alonso Hernandez5-90/+202
2018-06-28Merge "Update neutron delete_neutron_net function." into stable/fraserRodolfo Alonso Hernandez4-24/+34
2018-06-28Merge "Replace neutron create security group full with shade." into ↵Rodolfo Alonso Hernandez5-110/+170
stable/fraser
2018-06-27Merge "Change IxNextgen library load" into stable/fraserRodolfo Alonso Hernandez2-23/+8
2018-06-27Replace glance delete image with shade client.Shobhi Jain5-44/+93
Remove get_image_id function. Function delete_image now uses shade client. JIRA: YARDSTICK-892 Change-Id: I6e8510dfa49aa14786ed7ac3382b85c4e699fb9e Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit d6c1b8b7bfd257efd5fe2df30dd450bdb2c57c7d)
2018-06-27Replace glance create image with shade client.Shobhi Jain5-78/+171
Function create_image now uses shade client. JIRA: YARDSTICK-892 Change-Id: Ia41d9ce702a1f24031080f8a365c1b2bd9ac9faa Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit c31edc5ab9013d93ffd32ed72adb14740e43b24a)
2018-06-27Replace cinder detach volume with shade client.Shobhi Jain5-30/+109
Function detach volume now uses shade client. JIRA: YARDSTICK-891 Change-Id: Ie437ccf1172cb82dc869963f0d62e31a5ab23ebb Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit f6cca46f6b1aa6134a0e634a3a9e524cdbbfa729)
2018-06-27Replace cinder delete volume with shade client.Shobhi Jain5-44/+98
Function delete volume now uses shade client. JIRA: YARDSTICK-891 Change-Id: I016e1d3bf5972879cad176b56c7282e35413945e Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 4c672aa7012a530806a2f8ff2d45a8badb7f7b21)
2018-06-27Replace cinder create volume with shade client.Shobhi Jain5-119/+143
Adds get_volume function. Function create volume now uses shade client. JIRA: YARDSTICK-891 Change-Id: I0b2fae5f2cf52eaf2e4a0062c858d49bc4ce9ccd Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 2d33d0f289f3dd3864fe57289e953b876f362c06)
2018-06-27Replace cinder get_volume_id with shade client.Shobhi Jain2-3/+24
Function get_volume_id now uses shade client. JIRA: YARDSTICK-891 Change-Id: I45ae40982a64f677dbbdeb6c9510a0ec9ac973f1 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit be197a6197e803b6334f2ccf72f561245ef7aac7)
2018-06-27Replace nova get flavor with shade client.Shobhi Jain5-31/+104
Rename get_flavor_by_name with get_flavor. Function get_flavor now uses shade client. JIRA: YARDSTICK-1088 Change-Id: Ic82127e475baf39643be0a254b177f3058b85748 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 35bbd618b1e69a5b5edbd64a333720bfa5a92400)
2018-06-27Replace nova get server with shade client.Shobhi Jain5-78/+125
Rename get_server_by_name with get_server. Function get_server now uses shade client. JIRA: YARDSTICK-1088 Change-Id: I69c59145cefdb565f3ece27baaaf932905e1b757 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit d75a91ebf2937e5cfe5cf2aa5a90db9121f73967)
2018-06-27Replace nova attach volume to server with shade client.Shobhi Jain5-35/+115
Function attach_volume_to_server now uses shade client instead of nova client. JIRA: YARDSTICK-1088 Change-Id: Id00df672c2c195b5c338cbbc30ddf2742a4e4d29 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 8fd82cd8d0146d8cebbc32ed7cbb6fb9d1861297)
2018-06-27Replace nova delete keypair with shade client.Shobhi Jain5-32/+92
Function delete_keypair now uses shade client. JIRA: YARDSTICK-1088 Change-Id: I46b895748c5c44b0bf7d5b035395676ebff48d7f Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry pick from commit aded0fdb30caf035e0eb94c1216f436ba597c2c7)
2018-06-27Replace nova client create keypair with shade.Shobhi Jain5-51/+102
Function create_keypair now uses shade client instead of nova client. JIRA: YARDSTICK-1088 Change-Id: I060580504d6969c5ba859ed4494082feb998d37d Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry pick from commit c1ab98526209a761a0565afa7ccd552ba9ac7ade)
2018-06-27Remove unused nova client functions.Shobhi Jain1-136/+0
Following funtions are not required by shade client also not been used in any of the scenario files: *create_aggregate *create_aggregate_with_host *create_instance *add_host_to_aggregate *create_aggregate_with_host *get_availability_zones *get_availability_zone_names *remove_hosts_from_aggregate *remove_host_from_aggregate *delete_aggregate *get_image_by_name *check_status JIRA: YARDSTICK-1088 Change-Id: I7ba0fbce6aa3e636aa55581a993c1ec1b48fbead Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 2ca15a8c87e171cbd82b1e748dfc60903662b73b)
2018-06-27Replace nova delete instance with shade client.Shobhi Jain5-32/+111
Function delete_instance now uses shade client. JIRA: YARDSTICK-1088 Change-Id: I5772a74c6dc2d103edd410042a8eaf721d1bcc5c Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 05f97c4e4ce1e8c7c97cda16f12215e663a13c23)
2018-06-27Replace nova create instance with shade client.Shobhi Jain5-90/+202
Remove redundant functions: *get_instances *get_instance_status *get_instance_by_name Function create_instance_and_wait_for_active now uses shade client. JIRA: YARDSTICK-1088 Change-Id: I766da333dabbb1b83a7b4ede4bf73567ec70eb8c Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 069d7a13d1f8b6b465ae164e2a440c25270f7e8e)
2018-06-27Update neutron delete_neutron_net function.Shobhi Jain4-24/+34
Update the changes done in patch [1]. JIRA: YARDSTICK-890 [1] https://gerrit.opnfv.org/gerrit/#/c/52361/ Change-Id: Iccbf16d0a2e72919d5092366241ff41686f01a58 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit 14615e286e67ca74a8c0ae55ffe043170e5ecbb6)
2018-06-27Replace neutron create security group full with shade.Shobhi Jain5-110/+170
Function create_security_group_full now uses shade client. Remove openstack util's private 'get_security_groups', 'get_security_group_id' & 'create_security_group' functions as 'create_security_group_full' now uses 'get_security_group' & 'create_security_group' function defined in shade client library. JIRA: YARDSTICK-890 Change-Id: Ibd5b9ca9b7ce99b3e40c5dcc545f2af672ce2203 Signed-off-by: Shobhi Jain <shobhi.jain@intel.com> (cherry picked from commit c00e2c606806b46111b108818235d236ba409515)
2018-06-26Bugfix: HA kill process recovery has a conflictrexlee87762-6/+31
It happens in Nokia SUT when running in the Plugfest. The problem happens when the start_process start to recover the killed process (like nova-api), but the self-cured mechanism already recovered. And somehow it lead to a conflict and has problems. So the recover of the HA attack-recover should be improved to only recover it when it needs to. JIRA: YARDSTICK-1222 Change-Id: I1acb5a7d59d6fe4e0de0b0c5942fa89e051dd1ff Signed-off-by: rexlee8776 <limingjiang@huawei.com> (cherry picked from commit 736f3fa5d52345d6fe5174b83de043f779fa0600)
2018-06-26Refactor "utils.parse_ini_file" testingRodolfo Alonso Hernandez1-16/+93
JIRA: YARDSTICK-1218 Change-Id: I5136b22110d215beb7af72998ad47a8dba27f63b Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from commit 4a186ef7fde978f89f4332990f70e396966f69e3)
2018-06-26Fix "os.path" mock problems during testsEmma Foley4-15/+7
This patch removes the global mocking applied on "os.path". Change-Id: Ia18d2c90195c5408a1852792bdf05b6f0c1ad21f Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> Signed-off-by: Emma Foley <emma.l.foley@intel.com> (cherry picked from commit d7f8717c3beb1854976e77d56823f482497ffff3)
2018-06-26Merge "Refactor RFC2455 TRex traffic profile injection" into stable/fraserEmma Foley17-1041/+855
2018-06-26Change IxNextgen library loadRodolfo Alonso Hernandez2-23/+8
Changed IxNextgen library load in IXIA RFC2544 traffic generator call. JIRA: YARDSTICK-1116 Change-Id: Icbdc5f1255dd2676584f3a1be767287e55e71f4a Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from commit 9d84f5ad73e9689d3131e4ce09fe7262697c5817)
2018-06-26Stop time.sleep mocks in unit testsRodolfo Alonso Hernandez2-2/+12
tVpeApproxVnf and TestProxSocketHelper classes mock "time.sleep" in the setUp method without deleting it at the end of the test execution. JIRA: YARDSTICK-1243 Change-Id: Iff31d9c7b400ad8a47f37792aeb0d20328b9d9e1 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from commit 9b22f5b23050a0be67f8237e4d0b412f58b43472)
2018-06-26Refactor RFC2455 TRex traffic profile injectionRodolfo Alonso Hernandez17-1041/+855
The TRex RFC2455 traffic profile configures the duration of the traffic injection. Once the traffic is started, the traffic profile should poll the traffic injector client for the injection status. When the injection is finished, the traffic execution should end. Instead of this, the traffic profile waits a fixed time (using time.sleep method) and then stops the traffic. This approach is not accurate and may cause shorter injection periods. JIRA: YARDSTICK-1197 Change-Id: I5090df81ef4ec7945ff6c1aff070656b48e0fe77 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from commit 340be73be5fd20067c23a7ddce9073639e355d3a)
2018-06-26Move tests: unit/network_services/helpersEmma Foley6-0/+2074
* Fix pylint errors * Add TODOs Some errors are ignored locally, as they were a symptom of other problems. These issues have been flagged with a TODO, and should be fixed later. JIRA: YARDSTICK-837 Signed-off-by: Emma Foley <emma.l.foley@intel.com> Change-Id: If0b77a6e0b102071ecfb212362647c62a621e4f9 (cherry-picked from commit 065c00d3147d12c692d43179d9c1c9afadb97825)
2018-06-26Merge "Move tests: unit/network_services/vnf_generic" into stable/fraserEmma Foley29-28/+10636
2018-06-26Merge "Standalone XML machine type is not longer valid" into stable/fraserEmma Foley1-1/+1
2018-06-26Move tests: unit/network_services/vnf_genericEmma Foley29-28/+10636
* Fix pylint errors * Add TODOs Some errors are ignored locally, as they were a symptom of other problems. These issues have been flagged with a TODO, and should be fixed later. JIRA: YARDSTICK-837 Signed-off-by: Emma Foley <emma.l.foley@intel.com> Change-Id: I3d95537a64bde923703421510d27bac0d6dd92bd (cherry-picked from commit 98294f2c8153f663c3b3a4e4cb98910e9d5cb602)
2018-06-26Merge "Remove instantiated contexts in "test_task"" into stable/fraserEmma Foley1-0/+9
2018-06-25Remove instantiated contexts in "test_task"Rodolfo Alonso Hernandez1-0/+9
During unit testing, all contexts instantiated must be deleted at the end of the test to avoid clashes with other tests. JIRA: YARDSTICK-1209 Change-Id: I1994b915001b4a518e096833a0c5d33febbd8de6 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> (cherry picked from commit 5e4d95ba299ce92588701d9481657c343b8ef609)
2018-06-25Merge "Move tests: unit/network_services/nfvi" into stable/fraserEmma Foley3-0/+449