aboutsummaryrefslogtreecommitdiffstats
path: root/requirements.txt
AgeCommit message (Collapse)AuthorFilesLines
2018-12-06Fix pip environmentJohn O Loughlin1-1/+2
oslo.log==3.41.0 needs to be fixed for tox to pass JIRA: YARDSTICK-1560 Change-Id: I01d257e892aa835775456d8334f2c4358b120c08 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2018-11-22Remove Django from requirements and update docsPatrice Buriez1-3/+0
Since ``yardstick report generate`` now uses Jinja2, there is no need for python-django, which was only being used for that command. Update docs accordingly, and provide links to InfluxDB, Jinja2 and Highcharts. JIRA: YARDSTICK-1367 Topic: report/html_table (3 of 11) Change-Id: I63ab03e0b57901f250920487760507062825d812 Signed-off-by: Emma Foley <emma.l.foley@intel.com> Signed-off-by: Patrice Buriez <patrice.buriez@intel.com>
2018-07-04Bump requirements to match OpenStack Queens release upper requirementsrexlee87761-8/+8
tox -e os-requiremnts results: Validating requirements file "requirements.txt" Package "oslo.config" version 4.11.1 outdated, minimum version 5.1.0 Package "keystoneauth1" version 3.1.0 outdated, minimum version 3.3.0 Package "python-cinderclient" version 3.1.0 outdated, minimum version 3.3.0 Package "requests" version 2.11.1 outdated, minimum version 2.14.2 Package "osc-lib" version 1.7.0 outdated, minimum version 1.8.0 Package "oslo.utils" version 3.28.0 outdated, minimum version 3.33.0 Package "oslo.privsep" version 1.22.1 outdated, minimum version 1.23.0 Incompatible requirement found! JIRA: YARDSTICK-1283 Change-Id: I362c1e2b5c61abf09810ce2a2fe6bab39097d017 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
2018-06-21Bump ansible version to 2.5.5Rodolfo Alonso Hernandez1-1/+1
Increase ansible version to 2.5.5. There is a closed bug present in version 2.4.2 which affects to some ansible scripts. When calling recursively different roles, the maximum recursion depth can be exceeded [1]. This bug is fixed in proposed version. [1] https://github.com/ansible/ansible/issues/23609 JIRA: YARDSTICK-1249 Change-Id: Ia45b6a2ab44203e39c52357eb3cfee1e0c77eed3 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-28Bump oslo.messaging version to 5.36.0Rodolfo Alonso Hernandez1-1/+1
A decoding error was introduced in the AMQP libraries installed by oslo.messaging version 5.30.2. Error example: File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/ .tox/functional/local/lib/python2.7/site-packages/amqp/utils.py", line 89, in str_to_bytes return s.encode('utf-8') UnicodeDecodeError: 'ascii' codec can't decode byte 0xd2 in position 3: ordinal not in range(128) This problem is fixed in the library versions installed in version 5.36.0. JIRA: YARDSTICK-1204 Change-Id: I4719d8e0a0891ebbb3b87c31d593d15f897ef53a Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-28Set "cmd2" library to version 0.8.6Rodolfo Alonso Hernandez1-0/+1
Last "cmd2" version, 0.9.0, removed Python 2+ support [1]. In order to support Python 2.7, version 0.8.6 (or earlier) must be installed. [1] https://github.com/python-cmd2/cmd2/commit/e54e5a5b891548df4df0acb04b6e607ad8f871b1 JIRA: YARDSTICK-1205 Change-Id: Ic2fe57438720de5b21c75f9456e653c6facf3ae9 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-09Bump Kubernetes Python client to version 6.0.0Rodolfo Alonso Hernandez1-1/+1
Bump Kubernetes Python client to version 6.0.0. This versions supports Kubernetes service from 1.4 to 1.10 (current version) [1]. Current version of Kubernetes service: 1.10.2 [1] https://github.com/kubernetes-client/python/tree/6.0.0#compatibility-matrix JIRA: YARDSTICK-1153 Change-Id: I96e855a68e39b17af02cd362040f8c765a9531f0 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-05-04Add IxNetwork API Python Binding packageRodolfo Alonso Hernandez1-0/+1
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-04-13Add MQ consumer, producer and payload base classesRodolfo Alonso Hernandez1-0/+1
Added MessagingProducer base class. A class implementing this base class can send a cast message using the MQ service installed in the Yardstick jumphost (RabbitMQ by default, other MQ could be implemented). The producer will send messages to an specific topic. Added MessagingConsumer base class. A class implementing this base class will be able to receive any message sent by a MessagingPorducer class publishing messages in the topic subscribed. By default both Producer and Consumer "fanout" is True. That means every Consumer will create a fanout Queue attached to the MQ Exchange topic. All Consumers attached to this topic will receive the message sent by the Producer [1]. Added Payload base class. To send data through the message queue service, a Payload derived object should be created. This base class allows to define the attributes container in the class, convert the object to a dict and retrieve the object from a dict. Added a new library, "oslo.messaging", to implement the RPC client and server. [1]http://blog.thedigitalcatonline.com/blog/2013/08/21/some-tips-about-amqp-direct-exchanges/ JIRA: YARDSTICK-1074 Change-Id: I63932b5fb3de2bdc1270fc83295630a2a349e2a6 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-03-23Bugfix: 'module' object has no attribute 'UnsupportedExtension'chenjiankun1-1/+1
JIRA: YARDSTICK-1100 This Error occur when run kuberntes test case: The Key is the pyopenssl dependency, it seems YARDSTICK-1032(https://jira.opnfv.org/browse/YARDSTICK-1032) encounter the same problem. Downgrade requests from 2.18.2 to 2.11.1 would solve this problem. Here it is the error log: Traceback (most recent call last): File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/home/opnfv/repos/yardstick/yardstick/benchmark/core/task.py", line 301, in atexit_handler context.undeploy() File "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/kubernetes.py", line 63, in undeploy self._delete_ssh_key() File "/home/opnfv/repos/yardstick/yardstick/benchmark/contexts/kubernetes.py", line 133, in _delete_ssh_key k8s_utils.delete_config_map(self.ssh_key) File "/home/opnfv/repos/yardstick/yardstick/common/kubernetes_utils.py", line 179, in delete_config_map **kwargs) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py", line 9059, in delete_namespaced_config_map (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/apis/core_v1_api.py", line 9159, in delete_namespaced_config_map_with_http_info collection_formats=collection_formats) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 321, in call_api _return_http_data_only, collection_formats, _preload_content, _request_timeout) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 155, in __call_api _request_timeout=_request_timeout) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/api_client.py", line 387, in request body=body) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 256, in DELETE body=body) File "/usr/local/lib/python2.7/dist-packages/kubernetes/client/rest.py", line 166, in request headers=headers) File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 66, in request **urlopen_kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 87, in request_encode_url return self.urlopen(method, url, **extra_kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 321, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 346, in _make_request self._validate_conn(conn) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 850, in _validate_conn conn.connect() File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 337, in connect cert = self.sock.getpeercert() File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 348, in getpeercert 'subjectAltName': get_subj_alt_name(x509) File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 202, in get_subj_alt_name except (x509.DuplicateExtension, x509.UnsupportedExtension, AttributeError: 'module' object has no attribute 'UnsupportedExtension' Change-Id: I444dde829c91defb475e045aea094d74fc43e75b Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2018-03-20Enforce pip version during installationRodolfo Alonso Hernandez1-1/+1
Currently there is a reported problem in pip library [1]. To avoid this problem, the pip version should be enforced during the installation. [1]https://github.com/pypa/pip/issues/5079 JIRA: YARDSTICK-1087 Change-Id: I2ee28749f146cd3b0e1bf4ed92b51cbe6db8b2f3 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-03-01Merge "Module to manage pip packages"Rodolfo Alonso Hernandez1-0/+2
2018-02-09Module to manage pip packagesRodolfo Alonso Hernandez1-0/+2
This new module provides methods to manage Python PIP packages from a URL, from a local directory or from a build PIP package. The implemented commands are: - Install package. - Remove package. - List all installed packages in the system. JIRA: YARDSTICK-910 Change-Id: I8f7d1b77c0c384b801cc6f5e67d8b45ce7c6bfdf Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-02-09Replace "python-heatclient" with "shade" clientRodolfo Alonso Hernandez1-1/+0
Replaced "python-heatclient" with "shade" client. The "python-heatclient" library is removed from requirements file. "shade" client version 1.22.2 is the required one for OpenStack Pike release. shade is the recommended client to interact with OpenStack clouds [1] [1] https://github.com/openstack-infra/shade JIRA: YARDSTICK-880 Change-Id: Ibbdfc42a543d2d9ed4cf70d78de3de8cbecd0076 Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
2018-01-19Change ansible version to 2.4.2John O Loughlin1-1/+1
Modified requirements.txt to update ansible version to 2.4.2 For the ansible virt module [1] XML templates are required. To edit, the XML templates the XML module is required. This is new in ansible 2.4 [2] There is no max version restriction for ansible in OpenStack [3]. [1] http://docs.ansible.com/ansible/latest/virt_module.html [2] https://docs.ansible.com/ansible/2.4/xml_module.html [3] https://github.com/openstack/kolla-ansible/blob/stable/pike/doc/source/user/quickstart.rst JIRA: YARDSTICK-948 Change-Id: I19b178f695f7381a3ecfbdb74f953a1276250958 Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
2017-12-21Bump requirements to match OpenStack Pike releaseRoss Brattain1-55/+34
Bumped requirements to match OpenStack Pike release requirements [1]. [1] https://github.com/openstack/requirements/tree/stable/pike JIRA: YARDSTICK-889 Change-Id: I18ccdc01c14693cb63bd74d29c14554f610629e3 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-12-15pretty cli format: runner/scenario/testcase listrexlee87761-1/+1
JIRA: YARDSTICK-855 1. using prettytable to reformat cli below: yardstick runner list yardstick scenario list yardstick testcase list 2. remove redundant function print_hbar 3. fix pep8 problems, the framework using do_list dynamicly, so disable unused-argument check for now. Change-Id: I79e1226e21fca4624bf4436414917bd07ecabca0 Signed-off-by: rexlee8776 <limingjiang@huawei.com>
2017-11-17Move test requirements into test-requirements.txtEmma Foley1-87/+76
Move the packages required for testing into test-requirements.txt This follows conventions used in OpenStack projects. JIRA: YARDSTICK-837 Change-Id: If08fc416aa21b11250066bc19a54daa35e863407 Signed-off-by: Emma Foley <emma.l.foley@intel.com>
2017-09-20requirements: bump Ansible version to 2.3Ross Brattain1-1/+1
Change-Id: Ib429ba24d2b7287b6ec4e749386da0e1242d6a20 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-09requirements.txt: add license infoRoss Brattain1-87/+89
Change-Id: I9de6a51e7efb9e49da5bbd541c466f106c3a52e3 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-08-09Bugfix: remove ping package for it is GPL licensechenjiankun1-1/+0
JIRA: YARDSTICK-777 In migrate test case, we use ping to count downtime. But ping package is GPL license, so we need remove it. Since ping command tool can not set timeout less then 1 second, and the downtime is less then 1 second, so we need find another package to replace. For now, I find most ping tool is GPL license, so maybe later we need to implement ping ourselves. And the migrate case can not calculate downtime unless user install ping themselves. Change-Id: I78cba5e4af9de2e3c0bb16b27570bed951caf440 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-08-02Add task-args(from yaml file) candidates in /api/v2/yardstick/testcases APIchenjiankun1-0/+1
JIRA: YARDSTICK-766 We have the demand to get all task-args candidates in test case yaml file, so that user get easily change it. The response will like: { 'status': 1, 'result': { 'testcase': case content, 'args': { 'image': {'description': '', 'type': 'String'} } } } In this patch, I add jinja2schema 0.1.4 in requirements.txt. Change-Id: I450082402370add5ab29090286f026fe3cc8c36e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-26Test Case: OPNFV_YARDSTICK_TC023: VM availability during live migrationchenjiankun1-0/+1
JIRA: YARDSTICK-174 This live migration test case is based on share storage, default share storage is enabled. This test case will do some config work. And do live migration and calculate the migration time and downtime. Change-Id: I6601601edebdd0ac6434ba632b1eba9e9bd4fda0 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-17Kubernetes (k8s) supportchenjiankun1-0/+1
JIRA: YARDSTICK-682 We decide to support k8s in E release. We need to discuss with openretriver team and then rewrite the ping test case under k8s as the first step. Change-Id: I3f81ebca8de5c1f3a8b7d42581cd7342dc320239 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-07-11ipaddress: don't use backport on python 3Ross Brattain1-1/+1
JIRA: YARDSTICK-645 Change-Id: I7b6d4222d58c29a0f5d1817fa84351c0f09404f7 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-06-05update requirements.txt for OpenStack OcataRoss Brattain1-54/+53
add shade for ansible update other versions to make OpenStack Ocata upper-contraints.txt sort file using C.UTF-8 locale as OpenStack does. C.UTF-8 locale sorts Upper-case before lower-case. Change-Id: Ia20eaa2b024be5cc8595873b8cc5dcba5f25d10b Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-05-16Bumped ansible version to 2.2.2.Maciej Skrocki1-1/+1
Change-Id: Ibdf633bd475cc295f53e8236b1938a3354cb4f99 Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
2017-04-24Merge "standardize ssh auth"Rex Lee1-0/+1
2017-04-20Yardstick virtualenv supportchenjiankun1-1/+0
JIRA: YARDSTICK-620 In the patch, I separate python-setuptools from install.sh and separate appdirs from requirements.txt because there will be error when install them in virtualenv. Also I will update the documentation when this patch merged; Change-Id: I99a532d1851983775869e7c5e8e65fd0229e86df Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-04-13Bugfix: fix typoJingLu51-0/+2
Change-Id: I9b7cd5f94b1663af3b807ce24c941868b10d85d1 Signed-off-by: JingLu5 <lvjing5@huawei.com>
2017-04-11standardize ssh authRoss Brattain1-0/+1
we need to be following defautl paramiko rules, first use pkey, then key_filenames (autodetecting ~/.ssh/ keys), then password We have too much boilerplate redudant code everywhere, we need to standardize on a factory function that takes a node dict. Using Python3 ChainMap we can layer overrides and defaults. VNF descriptors have to default key_filename, password to Python None. The only way to do this is to omit key values if the variable is not defined, this way the dict will not have the value and it will default to Python None Add python2 chainmap backport Updated unittest mocking to use ssh.SSH.from_node Change-Id: I80b0cb606e593b33e317c9e5e8ed0b74da591514 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-03-23Merge "Bugfix: Could not load EntryPoint.parse when using 'openstack -h'"Jing Lu1-10/+10
2017-03-21Bugfix: Could not load EntryPoint.parse when using 'openstack -h'JingLu51-10/+10
JIRA: YARDSTICK-599 Python-openstackclient 3.7.0 has a issus that cause -help info can not be loaded properly when executing 'openstack -h' command. Change-Id: I0a5f7a0943d56764b1c4d5d7335aa67b30f39b4c Signed-off-by: JingLu5 <lvjing5@huawei.com>
2017-03-17Yardstick: User interface for Yardstick.rajesh_4k1-0/+1
Currently Yardstick doesnt have any UI which gives detail analysis of the test-results. This commit generates a HTML page after the execution of a command "yardstick report generate <task-ID> <TC-name>" which intern can be executed after the execution of test-case. Used: Highcharts.js for the graphs. JIRA: YARDSTICK-280 Change-Id: Ic98cc348719f3922bff178f52e7944a4a931763a Signed-off-by: Rajesh K <4k.rajesh@gmail.com>
2017-02-22BugFix: update to paramiko 1.18.0 to fix TypeErrorRoss Brattain1-1/+1
with python 3 there is a paramiko error due to .keys() usages in python 3 File "python3.5/site-packages/paramiko/ssh_exception.py", line 166, in __init__ body = ', '.join([x[0] for x in addrs[:-1] TypeError: 'dict_keys' object is not subscriptable paramiko 1.16.0 tries to index addr.keys() but addr.keys() is not a dict view in Python 3 and not a list so we need to convert .keys() to a list, using sorted() This was most recently fixed in https://github.com/paramiko/paramiko/commit/0411010d55755913fa7bd5b0a9c719c8548549f4 which should be in paramiko 1.18.0 Change-Id: I6b10664611cab3b21d3aa33ecf1343ff134f59a1 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-02-07fix unittests, mock trex_stl_lib, fix raw_input, divisionRoss Brattain1-1/+2
replace raw_input with six.moves.raw_input fix raw_input mock force float division in python 2 re-added trex download to try to workaround coverage failing try installing pyzmq=14.5.0 and see if that helps trex compatibility ====================================================================== ERROR: test__fill_traffic_profile (benchmark.scenarios.networking.test_vnf_generic.TestNetworkServiceTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/benchmark/scenarios/networking/test_vnf_generic.py", line 399, in test__fill_traffic_profile self.context_cfg)) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/benchmark/scenarios/networking/vnf_generic.py", line 144, in _fill_traffic_profile return TrafficProfile.get(traffic_profile) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/network_services/traffic_profile/base.py", line 35, in get "yardstick.network_services.traffic_profile") File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/common/utils.py", line 86, in import_modules_from_package try_append_module(module_name, sys.modules) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/common/utils.py", line 70, in try_append_module modules[name] = importutils.import_module(name) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py3/lib/python3.5/site-packages/oslo_utils/importutils.py", line 73, in import_module __import__(import_str) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/network_services/traffic_profile/rfc2544.py", line 19, in <module> from yardstick.network_services.traffic_profile.traffic_profile \ File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/yardstick/network_services/traffic_profile/traffic_profile.py", line 24, in <module> from stl.trex_stl_lib.trex_stl_client import STLStream File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py", line 7, in <module> from .trex_stl_jsonrpc_client import JsonRpcClient, BatchMessage File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py", line 3, in <module> import zmq File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/__init__.py", line 49, in <module> from zmq import backend File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/__init__.py", line 41, in <module> reraise(*exc_info) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/utils/sixcerpt.py", line 34, in reraise raise value File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/__init__.py", line 29, in <module> _ns = select_backend(first) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/select.py", line 27, in select_backend mod = __import__(name, fromlist=public_api) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/cython/__init__.py", line 6, in <module> from . import (constants, error, message, context, ImportError: cannot import name 'constants' ====================================================================== ERROR: network_services.vnf_generic.vnf.test_tg_trex (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: network_services.vnf_generic.vnf.test_tg_trex Traceback (most recent call last): File "/usr/lib/python3.5/unittest/loader.py", line 428, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name __import__(name) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/network_services/vnf_generic/vnf/test_tg_trex.py", line 24, in <module> from stl.trex_stl_lib.trex_stl_client import STLClient File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py", line 7, in <module> from .trex_stl_jsonrpc_client import JsonRpcClient, BatchMessage File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_jsonrpc_client.py", line 3, in <module> import zmq File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/__init__.py", line 49, in <module> from zmq import backend File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/__init__.py", line 41, in <module> reraise(*exc_info) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/utils/sixcerpt.py", line 34, in reraise raise value File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/__init__.py", line 29, in <module> _ns = select_backend(first) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/select.py", line 27, in select_backend mod = __import__(name, fromlist=public_api) File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/trex/scripts/external_libs/pyzmq-14.5.0/python3/fedora18/64bit/zmq/backend/cython/__init__.py", line 6, in <module> from . import (constants, error, message, context, ImportError: cannot import name 'constants' Change-Id: I832bf8c912dea6d85131ee6603b408b3198cef2f Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2017-01-19Bugfix: command "openstack image list" failedchenjiankun1-1/+1
JIRA: YARDSTICK-537 Now the openstackclient version is set to 3.3.0, but it cannot support osc-lib 1.3.0 whose version is automatic set. So I set openstackclient version to 3.7.0 and osc-lib version to 1.2.0 Change-Id: If4ccd517f6a572f6c463270596d0e1019ba9a1e6 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-01-17Bugfix: command "openstack image list" failedchenjiankun1-1/+2
JIRA: YARDSTICK-537 Now the openstackclient version is set to 3.3.0, but it cannot support osc-lib 1.3.0 whose version is automatic set. So I set openstackclient version to 3.3.0 and osc-lib version to 1.3.0 Change-Id: Ia480feb3621be97a4a97bb027685cc438e01c53e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2017-01-17Merge "Adding python package requirement for VNF testing."Jing Lu1-0/+2
2017-01-12Add support for Python 3Ross Brattain1-2/+3
Porting to Python3 using Openstack guidelines: https://wiki.openstack.org/wiki/Python3 This passes unittests on Python 3.5 and passes opnfv_smoke suite Updates: use six for urlparse and urlopen fix exception.message attribute removal run unittests on python3 use unitest.mock on python 3 fix open mock for vsperf fix float division by using delta/eplison comparison use unicode in StringIO use plugin/sample_config.yaml relative path from test case fixed apexlake unittests upgraded to mock 2.0.0 to match python3 unittest.mock features fixed flake8 issues implement safe JSON decode with oslo_serialization.jsonutils.dump_as_bytes() implement safe unicode encode/decode with oslo_utils.encodeutils heat: convert pub key file from bytes to unicode pkg_resources returns raw bytes, in python3 we have to decode this to utf-8 unicode so JSON can encode it for heat template JIRA: YARDSTICK-452 Change-Id: Ib80dd1d0c0eb0592acd832b82f6a7f8f7c20bfda Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
2016-12-30Adding python package requirement for VNF testing.Deepak S1-0/+2
List of packages: zmq - Py lib helps to publish/subscribe for ZeroMQ for data exchange pika - Py lib helps setup amqp for data exchange with collectd JIRA: YARDSTICK-453 Change-Id: Ic537d677622167fdb3aef81fb0c313553fcf087a Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2016-12-24Add sqlite and SQLAlchemy support for APIchenjiankun1-0/+1
JIRA: YARDSTICK-505 Now yardstick API need a database to store API data. And for future the yardstick GUI also need a self database. So I choose a light-weight database sqlite. And use SQLAlchemy to do ORM. Change-Id: I1edc350ec6f57ad67785de549c2135c86ea60a4a Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2016-12-08BugFix: Upgrade python-novaclient and other dependenciesJingLu51-9/+9
JIRA: YARDSTICK-454 The python-novalient need to upgraded to fix the error in jenkin CI joid environment. Related dependencies also need to be updated. Change-Id: I63ce57aadbd46f159df2b5371caf3725e311ab34 Signed-off-by: JingLu5 <lvjing5@huawei.com>
2016-12-01Add swagger support for Rest APIchenjiankun1-0/+2
JIRA: YARDSTICK-439 Change-Id: I36ad0663455c51d635c4329f5cbb9da25d8042e1 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2016-11-30Create API and command to create a influxDB containerchenjiankun1-0/+1
JIRA: YARDSTICK-425 This API is used to create a influxDB Container Add command line to create a influxDB Container, too Change-Id: If9c2d04b779924d492a5d5ea91f7968fa959570e Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2016-11-21Create API to run test caseschenjiankun1-0/+4
JIRA: YARDSTICK-413 Change-Id: Ibf58b50b568fae3f2eea985b25ee33be0a3666b7 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
2016-11-15Yardstick installation unified (pip/setup)chenjiankun1-0/+79
JIRA: YARDSTICK-394 Change-Id: I486aa24121b2ad8d66cd6df97ca86ef826862c91 Signed-off-by: chenjiankun <chenjiankun1@huawei.com>