aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
AgeCommit message (Collapse)AuthorFilesLines
2018-05-22Bugfix: openrc api dump should be safe_dumprexlee87762-0/+27
1. fix safe_dump 2. fix pep8 problem, use flask_restapi custom error handling [1] [1] https://flask-restful.readthedocs.io/en/latest/extending.html#custom-error-handlers JIRA: YARDSTICK-1165 RestApi openrc dump clouds.yaml error it now use yarml.dump, should be yaml.safe_dump. dump would gererate !!python/unicode and cause error when upload openrc file in gui Change-Id: Id3e85f7ba7d4967277ef79109b07d7552179e5db Signed-off-by: rexlee8776 <limingjiang@huawei.com>
2018-05-17Merge changes from topics 'YARDSTICK-1154', 'YARDSTICK-1160'Rodolfo Alonso Hernandez3-6/+11
* changes: Kubernetes API "delete_service" missing parameter Bump Kubernetes Python client to version 6.0.0 Avoid "volumeMounts" with "configMap" fixed permissions
2018-05-17Merge "Parse "dispatcher" options correctly from InfluxDB client"Rodolfo Alonso Hernandez4-27/+73
2018-05-17Merge "Fix PEP8 errors in prox_binseach"Abhijit Sinha1-5/+5
2018-05-16Merge "Add --hwlb options as a command line argument for SampleVNF"Rodolfo Alonso Hernandez5-5/+14
2018-05-16Add --hwlb options as a command line argument for SampleVNFChornyi, TarasX5-5/+14
To enable HWLB queues in samplevnf on supported hardware (e.g Intel Fortville) --hwlb option needs to be passed as a VNF command line argument. JIRA: YARDSTICK-1159 Change-Id: I6e5c098dc71a711252b545c7622ee52085fa81f0 Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
2018-05-15Move tests: unit/network_services/helpersEmma Foley6-0/+2131
* 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
2018-05-15Move tests: unit/network_services/nfviEmma Foley3-0/+448
* 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: Id330ee1c89d54ef487edb7fe160e5a31d9a3094f
2018-05-15Move tests: unit/network_services/traffic_profileEmma Foley12-0/+2193
* 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: Id983a2e415d66633331e7fea96a377e2a7589980
2018-05-15Merge "Fix PROX throughput result calculation"Abhijit Sinha1-1/+0
2018-05-15Fix PEP8 errors in prox_binseachAbhijit Sinha1-5/+5
There were some pep8 errors in the prox_binsearch.py file. These are fixed here. JIRA: YARDSTICK-1173 Change-Id: I817bba89c6ba298bb0f27b2538aa7585cb286754 Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
2018-05-15Fix PROX throughput result calculationAbhijit Sinha1-1/+0
The success criteria needed a fix for throughput calculation. The results on success criteria were muliplied by 1000*1000 which is not correct and not needed as this was leading to false results in grafana. JIRA: YARDSTICK-1172 Change-Id: I56b24a700f8a565db80897aeab796e7039cae5c9 Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
2018-05-15Merge "Replace cinder detach volume with shade client."Rodolfo Alonso Hernandez5-30/+109
2018-05-15Merge "Replace cinder delete volume with shade client."Rodolfo Alonso Hernandez5-44/+98
2018-05-15Merge "Replace cinder create volume with shade client."Rodolfo Alonso Hernandez5-119/+143
2018-05-14Merge "Do not start collectd twice when SampleVNF is running on Baremetal"Rodolfo Alonso Hernandez5-74/+113
2018-05-14Do not start collectd twice when SampleVNF is running on BaremetalChornyi, TarasX5-74/+113
JIRA: YARDSTICK-1167 Change-Id: I7591bbb2a84ee4039a20c5da2914f1e374299015 Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
2018-05-09Merge "Re enable pip package unit tests"Rodolfo Alonso Hernandez1-0/+88
2018-05-09Kubernetes API "delete_service" missing parameterRodolfo Alonso Hernandez1-4/+9
Kubernetes method "delete_service" calls core API function "delete_namespaced_service". The parameter "body" [1] is missing:     :param V1DeleteOptions body: (required) [1] https://github.com/kubernetes-client/python/blob/6.0.0/kubernetes/client/apis/core_v1_api.py JIRA: YARDSTICK-1154 Change-Id: I40bca2af0f5359eaa788d3b81d82897a770329f0 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-09Avoid "volumeMounts" with "configMap" fixed permissionsRodolfo Alonso Hernandez2-2/+2
To access to the container without using a password, the jumphost RSA public key is copied to each container, using "volumeMounts" defined as "configMap", to /root/.ssh/authorized_keys. To work properly, the following permissions must be set: - /root/.ssh: 700 - /root/.ssh/authorized_keys: 600 Because of [1][2], the mounted folders have fixed permissions and cannot be modified. [1]https://groups.google.com/forum/#!topic/kubernetes-dev/eTnfMJSqmaM [2]https://github.com/kubernetes/kubernetes/issues/28317 JIRA: YARDSTICK-1149 Change-Id: I821064da56699c5b4f509d233c33e55af119fd56 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-09Merge "Fix log typos in benchmark/scenarios/availability"Emma Foley8-40/+36
2018-05-09Merge "Replace cinder get_volume_id with shade client."Rodolfo Alonso Hernandez2-3/+24
2018-05-08Replace 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>
2018-05-08Replace 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>
2018-05-08Merge "Bug Fix: Start openvswitch service in Centos distro"Ross Brattain1-4/+2
2018-05-08Merge "Add support for restarting a service"Ross Brattain1-3/+4
2018-05-08Fix log typos in benchmark/scenarios/availabilityMiikka Koistinen8-40/+36
This commit fixes multiple log message typos and all the emerged pylint errors. MonitorProcess/MonitorOpenstackCmd.verify_SLA() repeat already logged information, so these prints are removed. JIRA: YARDSTICK-1145 Change-Id: Ifef26e4b4ff7766089caec24785511969c2d663e Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
2018-05-08Replace 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>
2018-05-08Replace 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>
2018-05-08Re enable pip package unit testsRodolfo Alonso Hernandez1-0/+88
In [1] the pip unit test cases were removed, because of a problem in pip3 library. Currently there is a reported error in pip 9.0.2 version, in _vendor.urllib3 library [2]. This error is solved in [3]. [1]I43b1edc23cebe0db97b6b56a551acd376986dfea [2]https://github.com/pypa/pip/issues/5079 [3]I2ee28749f146cd3b0e1bf4ed92b51cbe6db8b2f3 JIRA: YARDSTICK-1087 Change-Id: Id4f0e1accf3240b5f27d3698323e679a27f63f87 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-08Merge "Add IxNetwork API Python Binding package"Rodolfo Alonso Hernandez2-26/+20
2018-05-04Merge "Add "os_cloud_config" as a new context flag parameter"Emma Foley9-27/+97
2018-05-04Merge "Update the dummy-scenario-heat-context testcase"Rodolfo Alonso Hernandez1-3/+4
2018-05-04Parse "dispatcher" options correctly from InfluxDB clientRodolfo Alonso Hernandez4-27/+73
The InfluxDB client needs first to retrieve which dispatchers are available from "DEFAULT:dispatcher". This parameter accepts comma separated values. "get_data_db_client" method needs to search for "influxdb" in this string parameter. JIRA: YARDSTICK-1136 Change-Id: I5efafcffbd3dbf906ca9bebd75b3717df8bbb75d Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-04Add IxNetwork API Python Binding packageRodolfo Alonso Hernandez2-26/+20
Add IxNetwork python package to the requirements list. This module is needed for the "NSPerf" scenarios using IXIA as traffic generator, when IxNetwork is the program used to handle the IXIA generator. The latest version of this module is 8.40.1124.9 [1]. The license type is MIT. [1] https://pypi.python.org/pypi/ixnetwork JIRA: YARDSTICK-1106 Change-Id: I279933c95994f5120930256a104c4192a0b9900d Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-03MQ startup process refactorChornyi, TarasX3-30/+38
YARDSTICK-1112 Change-Id: Id30236e190bae9fb0f5b5ebd4c5e04798e4fd443 Signed-off-by: Chornyi, TarasX <tarasx.chornyi@intel.com>
2018-05-03Merge "Remove unused methods in SampleVNF"Abhijit Sinha1-44/+0
2018-05-03Bug Fix: Start openvswitch service in Centos distroDimitrios Markou1-4/+2
JIRA: YARDSTICK-1142 Change-Id: I82c479c95e10de37416081eacf2d8bee396e50dc Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2018-05-03Add support for restarting a serviceDimitrios Markou1-3/+4
JIRA: YARDSTICK-1138 Change-Id: Id57defb574eb7e0f5be81b52803cdb05f46796ab Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
2018-05-03Replace 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>
2018-05-03Replace 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>
2018-05-03Add "os_cloud_config" as a new context flag parameterRodolfo Alonso Hernandez9-27/+97
This new parameter will contain the OpenStack cloud specific configuration used by Shade client. This new flag is used only in Heat context. By default, this new parameter (dict) will contain this content: 'os_cloud_config': {'verify': False} This field will be used by HeatStack [1] to create a Shade cloud. Shade retrieves, if not defined, the OpenStack configuration from "os_client_config". This configuration is used to generate the cloud configuration, which is the description of the OpenStackCloud returned. The default parameter defined, "verify", refers to the related bug. By default, in case of using SSL certificate it will not be verified. [1] https://github.com/opnfv/yardstick/blob/b338d3091bb0beb89d4ad9f7c144f43a31a19a74/yardstick/orchestrator/heat.py#L47 JIRA: YARDSTICK-1139 Change-Id: I875a7018401b84e51dab775b8194174645d27e06 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-02Merge "Move tests: unit/network_services/{lib/,collector/,*.py}"Abhijit Sinha9-0/+1269
2018-05-02Merge "Replace nova attach volume to server with shade client."Rodolfo Alonso Hernandez5-35/+115
2018-05-02Move tests: unit/network_services/{lib/,collector/,*.py}Emma Foley9-0/+1269
* 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: Idc2e70291b6d9b4cf7e7249a10c4a290b999206c
2018-04-30Replace 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>
2018-04-27Add active wait functionRodolfo Alonso Hernandez3-2/+84
Added function "wait_until_true". This function will make an active wait until the predicate passed as an argument returns True. If the timeout expires, the function will raise a generic exception or a user defined one passed as an argument. This function will be used in YARDSTICK-1127. JIRA: YARDSTICK-1128 Change-Id: I9854e465ac6b586bf4be39ab4b266d5625b39e30 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-04-26Merge "Get HA test case results on failure"Ross Brattain5-75/+55
2018-04-26Merge "Replace nova delete keypair with shade client."Rodolfo Alonso Hernandez5-32/+92
2018-04-26Merge "Replace nova client create keypair with shade."Rodolfo Alonso Hernandez5-51/+102