Kubi [Fri, 17 Feb 2017 07:31:34 +0000 (07:31 +0000)]
Merge "solve apex ci problem (new scenario)"
Kubi [Fri, 17 Feb 2017 07:31:25 +0000 (07:31 +0000)]
Merge "tc076 rst documentation"
rexlee8776 [Thu, 16 Feb 2017 11:33:46 +0000 (11:33 +0000)]
solve apex ci problem (new scenario)
new scenario os-odl-gluon-noha in apex pod
Change-Id: I0151ce227e2a3ff476044f0b5c8d4ed61d20b21a
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
rexlee8776 [Thu, 16 Feb 2017 09:33:26 +0000 (09:33 +0000)]
tc076 rst documentation
JIRA: YARDSTICK-534
Change-Id: Idcd8fb600d64c0300b5aaf9bd4108eca6c866526
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Kubi [Thu, 16 Feb 2017 10:20:41 +0000 (10:20 +0000)]
Merge "This Patch is used to add grafana config to opnfv dashboard for kvmfornfv_cyclictest_cpustress_idle,kvmfornfv_cyclictest_memorystress_idle and kvmfornfv_cyclictest_iostress_idle testcases"
Rex Lee [Thu, 16 Feb 2017 09:38:29 +0000 (09:38 +0000)]
Merge "Scenario is reporting result for last test only"
Jing Lu [Thu, 16 Feb 2017 09:38:02 +0000 (09:38 +0000)]
Merge "Bugfix: report date format wrong when upload result data to mongoDB"
chenjiankun [Thu, 16 Feb 2017 11:09:11 +0000 (11:09 +0000)]
Bugfix: report date format wrong when upload result data to mongoDB
JIRA: YARDSTICK-562
Currently we use the follow code to upload data to mongoDB:
report $scenario_status $start_date $stop_date
And the date format will be '%Y-%m-%d' while we want to it be '%Y-%m-%d
%H:%M:%S'ã
Change-Id: I07e601a6362c844a77f9b15a6bcd225ac2ab3f95
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Rex Lee [Thu, 16 Feb 2017 09:37:16 +0000 (09:37 +0000)]
Merge "Context improvement: add support for configing node environment"
chenjiankun [Mon, 13 Feb 2017 11:24:20 +0000 (11:24 +0000)]
Context improvement: add support for configing node environment
JIRA: YARDSTICK-556
Currently we do can not config the node environment before heat create a
stack.
But in lots of scene, we need to config node environment before heat.
So I add support for it.
Change-Id: Iac1b74dc780eb40e6ab2c9cf04ed14e2b8f91ca8
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jing Lu [Thu, 16 Feb 2017 09:36:46 +0000 (09:36 +0000)]
Merge "Bugfix: AttributeError: 'dict' object has no attribute 'encode'"
Rex Lee [Thu, 16 Feb 2017 09:06:49 +0000 (09:06 +0000)]
Merge "New reliability/availability testcase - IP datagram error rate and etc."
Rex Lee [Thu, 16 Feb 2017 06:49:53 +0000 (06:49 +0000)]
Merge "NSBPerf: fix indent"
Kubi [Thu, 16 Feb 2017 06:44:57 +0000 (06:44 +0000)]
Merge "load_images: update flavor for _ovs_ scenarios"
Rex Lee [Thu, 16 Feb 2017 06:30:28 +0000 (06:30 +0000)]
Merge "pylint fixes: remove redundant parens, fix comparison order"
Rex Lee [Thu, 16 Feb 2017 02:40:17 +0000 (02:40 +0000)]
Merge "Update Openstack CLI Command in yardstick ha test framework configuration files and TC052"
Rex Lee [Thu, 16 Feb 2017 02:39:54 +0000 (02:39 +0000)]
Merge "set log file to store debug info"
chenjiankun [Tue, 14 Feb 2017 10:06:25 +0000 (10:06 +0000)]
Bugfix: AttributeError: 'dict' object has no attribute 'encode'
JIRA: YARDSTICK-557
If we run task with sample/ping.yaml
We will encounter below error, here is the log:
Traceback (most recent call last):
File "/usr/local/bin/yardstick", line 11, in <module>
load_entry_point('yardstick==0.1.dev0', 'console_scripts',
'yardstick')()
File "/usr/local/lib/python2.7/dist-packages/yardstick/main.py",
line 49, in main
YardstickCLI().main(sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/yardstick/cmd/cli.py",
line 167, in main
self._dispath_func_notask()
File "/usr/local/lib/python2.7/dist-packages/yardstick/cmd/cli.py",
line 145, in _dispath_func_notask
func(CONF.category)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/cmd/commands/task.py",
line 45, in do_start
Task().start(param, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/core/task.py",
line 83, in start
self._run(scenarios, run_in_parallel, args.output_file)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/core/task.py",
line 131, in _run
runner = run_one_scenario(scenario, output_file)
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/core/task.py",
line 410, in run_one_scenario
if is_ip_addr(scenario_cfg["target"]):
File
"/usr/local/lib/python2.7/dist-packages/yardstick/benchmark/core/task.py",
line 358, in is_ip_addr
ipaddress.ip_address(addr.encode('utf-8'))
AttributeError: 'dict' object has no attribute 'encode'
Change-Id: Iba1570416bd8614e38c9e847de730a31d9ddedc2
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Tue, 7 Feb 2017 17:41:38 +0000 (17:41 +0000)]
Scenario is reporting result for last test only
JIRA: YARDSTICK-548
If executing Yardstick scenario with multiple tests, result to file is
reported only for the last test.
In attachment screen output and yardstick.out from following command
yardstick task start --suite tests/opnfv/test_suites/opnfv_smoke.yaml
--output-file /mnt/log/yardstick.out
Change-Id: I8aa446b284dca1bbd1667de2f476ddadfad1337f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Ross Brattain [Tue, 7 Feb 2017 10:18:43 +0000 (02:18 -0800)]
NSBPerf: fix indent
Change-Id: Ic51168aa786a5ac5ed589c2c4d23882d76253343
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Maryam Tahhan [Tue, 14 Feb 2017 14:30:21 +0000 (14:30 +0000)]
load_images: update flavor for _ovs_ scenarios
Update the nova flavor used for the following scenarios:
* os-nosdn-kvm_ovs_dpdk_bar-ha
* os-nosdn-kvm_ovs_dpdk-ha
without interfering with older scenario os-nosdn-ovs-noha.
Change-Id: Id641e57a5f41413a891d4335ce2d119a5e8088e9
Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
tjuyinkanglin [Tue, 14 Feb 2017 12:37:24 +0000 (07:37 -0500)]
Update Openstack CLI Command in yardstick ha test framework configuration files and TC052
JIRA: YARDSTICK-547
Change-Id: Idde2dc56436c9cf4b8696bfd0056ab4e47c97c9a
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Kubi [Tue, 14 Feb 2017 09:24:29 +0000 (09:24 +0000)]
Merge "Update Openstack CLI Command for Scenario-based HA Testcases which have multiple commands: yardstick tc025, tc050 ,tc051, tc053, tc054"
Kubi [Tue, 14 Feb 2017 09:23:33 +0000 (09:23 +0000)]
Merge "Update CLI Command in yardstick TC019, TC045~TC048"
Kubi [Tue, 14 Feb 2017 09:23:17 +0000 (09:23 +0000)]
Merge "heat: minor fixes, don't use len > 0 and use next instead of [0]"
Shravani [Tue, 14 Feb 2017 08:54:18 +0000 (14:24 +0530)]
This Patch is used to add grafana config to opnfv dashboard for
kvmfornfv_cyclictest_cpustress_idle,kvmfornfv_cyclictest_memorystress_idle
and kvmfornfv_cyclictest_iostress_idle testcases
Change-Id: Ia49c33a658f342e96cb9cb3fbc499e56bb08ebd6
Co-Authored by:Rajitha <y.rajitha@tcs.com>
Signed-off-by:Shravani <shravani.p@tcs.com>
Rex Lee [Tue, 14 Feb 2017 08:45:58 +0000 (08:45 +0000)]
Merge "Bux: task_id parameter from API can not pass to yardstick core"
tjuyinkanglin [Tue, 14 Feb 2017 08:12:41 +0000 (03:12 -0500)]
Update Openstack CLI Command for Scenario-based HA Testcases which have multiple commands: yardstick tc025, tc050 ,tc051, tc053, tc054
JIRA: YARDSTICK-546
Change-Id: Id94b32f5e053f3f6a7c78980dce22b3aab7bbd13
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Rex Lee [Tue, 14 Feb 2017 07:30:56 +0000 (07:30 +0000)]
Merge "fix super() calls, must use explicit class name"
Rex Lee [Tue, 14 Feb 2017 07:27:40 +0000 (07:27 +0000)]
Merge "more logging fixes"
Rex Lee [Tue, 14 Feb 2017 06:42:53 +0000 (06:42 +0000)]
Merge "remove trex install from run_tests.sh."
Rex Lee [Tue, 14 Feb 2017 06:36:14 +0000 (06:36 +0000)]
Merge "heat: convert open to context manager"
Rex Lee [Tue, 14 Feb 2017 06:34:18 +0000 (06:34 +0000)]
Merge "heat: close file before parsing template"
Jing Lu [Tue, 14 Feb 2017 06:05:28 +0000 (06:05 +0000)]
Merge "vnf_generic: replace list comprehension with generator expression"
Jing Lu [Tue, 14 Feb 2017 06:05:22 +0000 (06:05 +0000)]
Merge "Bugfix: write_json_to_file: use json.dump with files"
Jing Lu [Tue, 14 Feb 2017 06:05:01 +0000 (06:05 +0000)]
Merge "nsb: move NSB root to constant, add unittest"
Jing Lu [Tue, 14 Feb 2017 06:04:53 +0000 (06:04 +0000)]
Merge "vnf_generic: convert sshmanager to class"
Jing Lu [Tue, 14 Feb 2017 06:04:31 +0000 (06:04 +0000)]
Merge "test_tg_text: fix indentation"
Jing Lu [Tue, 14 Feb 2017 06:04:13 +0000 (06:04 +0000)]
Merge "vnfdgen: replace six.iteritems() with .items()"
Jing Lu [Tue, 14 Feb 2017 06:03:57 +0000 (06:03 +0000)]
Merge "test_vnf_generic: fix unitests when files are present"
Jing Lu [Tue, 14 Feb 2017 06:03:40 +0000 (06:03 +0000)]
Merge "Bugfix: apex_lake: sort json keys for git"
Jing Lu [Tue, 14 Feb 2017 06:03:22 +0000 (06:03 +0000)]
Merge "test_env_action: use dict literal"
rexlee8776 [Tue, 14 Feb 2017 03:13:56 +0000 (03:13 +0000)]
set log file to store debug info
so the debug info can be pushed into artifacts
JIRA: YARDSTICK-507
Change-Id: I35f50e69adc0125f6136aab3ca0e35e2d9500112
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
tjuyinkanglin [Sun, 5 Feb 2017 07:32:59 +0000 (02:32 -0500)]
Update CLI Command in yardstick TC019, TC045~TC048
JIRA: YARDSTICK-545
Change-Id: Ifd3348e029f0ddbfa0117b4eef4493d443a4de4d
Signed-off-by: tjuyinkanglin <14_ykl@tongji.edu.cn>
Kubi [Mon, 13 Feb 2017 05:10:41 +0000 (05:10 +0000)]
Merge "Push yardstick debug log into the artifacts"
JingLu5 [Fri, 13 Jan 2017 14:48:25 +0000 (14:48 +0000)]
New reliability/availability testcase - IP datagram error rate and etc.
JIRA: YARDSTICK-534
This test case uses nstat to monitor network metrics provided by the kernel in
a host and calculate IP datagram error rate, ICMP message error rate, TCP
segment error rate and UDP datagram error rate.
Change-Id: I2fe6457bb5c95d0446c1463991ae31cc664b09f8
Signed-off-by: JingLu5 <lvjing5@huawei.com>
chenjiankun [Tue, 7 Feb 2017 09:13:17 +0000 (09:13 +0000)]
Bux: task_id parameter from API can not pass to yardstick core
JIRA: JIRA: YARDSTICK-531
Now in API entry the task_id parameter will not pass to yardstick core.
I fix it by pass task_id to yardstick.benchmark.core.task.start() method.
Change-Id: Icf58f2f68549ca3314d6ec0f118b360537126d41
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jing Lu [Fri, 10 Feb 2017 06:31:40 +0000 (06:31 +0000)]
Merge "KVMFORNFV: Implementing test suites for kvmfornfv ovs+dpdk+barometer scenarios."
Navya [Fri, 10 Feb 2017 06:23:32 +0000 (11:53 +0530)]
KVMFORNFV: Implementing test suites for kvmfornfv ovs+dpdk+barometer scenarios.
This patch implements test suites for kvmfornfv os-nosdn-kvm_ovs_dpdk_bar-ha
and os-nosdn-kvm_ovs_dpdk_bar-noha scenarios.
Change-Id: Idb7d360aa5b91a15d1c69566418a9da4b68db7ab
Signed-off-by: Navya Bathula <navyax.bathula@intel.com>
Jing Lu [Fri, 10 Feb 2017 06:19:21 +0000 (06:19 +0000)]
Merge "uwsgi: move init_db to uwsgi entry point"
Ross Brattain [Wed, 8 Feb 2017 22:42:08 +0000 (14:42 -0800)]
fix super() calls, must use explicit class name
self.__class__ is not correct. For Python 2 we have to
explicitly use the class name
see http://stackoverflow.com/questions/
4235078/how-to-avoid-infinite-recursion-with-super
Change-Id: I584ca565707b7331c1742fb33c8b524f7b7c9bf9
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
JingLu5 [Thu, 9 Feb 2017 07:53:10 +0000 (07:53 +0000)]
Fix: yardstick-docker-build-push-master failure
JIRA: YARDSTICK-552
Change-Id: I5c006b2fcbffb6a3904c378ab0557b5ce437d9ed
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Ross Brattain [Tue, 7 Feb 2017 10:17:43 +0000 (02:17 -0800)]
remove trex install from run_tests.sh.
We have mocked out all the Trex imports, so we don't need to download
the Trex library
It doesn't really make sense to down external libraries
each time we run unittests. Trex is a large stand-alone package
and shouldn't really be used during unittests
Importing Trex caused some odd pyzmq import errors on Python 3
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: I2ed06c0f88061baeff9ec96534cc59cca81924cc
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Tue, 24 Jan 2017 21:12:21 +0000 (13:12 -0800)]
uwsgi: move init_db to uwsgi entry point
uwsgi will call the 'callable' function which should normally be
Flask.__call__().
But we need to init the db first, so make a wrapper function that inits
the db and then calls app()
Also refactor add_resource into for loop instead of reduce. reduce is
not really approriate here since we aren't consuming the return value
JIRA: YARDSTICK-543
Change-Id: I692d6d42de09f7d6ecf1a67a22e3019d97a4f3ca
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 00:15:24 +0000 (16:15 -0800)]
more logging fixes
don't use .format() with logging, use regular %s logginer formatter
Change-Id: I1ce0d81cc3f81c35003ef453e82c57faeb46c49f
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Wed, 25 Jan 2017 01:12:16 +0000 (17:12 -0800)]
test_env_action: use dict literal
use literal forms when possible
Change-Id: I2d815f40007aa2259f3f3bcb2b9cd84a11027422
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Wed, 25 Jan 2017 00:46:05 +0000 (16:46 -0800)]
Bugfix: apex_lake: sort json keys for git
experiment_1.yaml.json are in git
and everytime the unnitests are run the
json file is re-generated with a slightly different
key order so it make the git directory dirty.
use sort_keys=True to try to maintain a consistent
json file so git doesn't detect a difference
Change-Id: I7859664e00561e8db032849a6664fb933a36702b
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 00:15:52 +0000 (16:15 -0800)]
pylint fixes: remove redundant parens, fix comparison order
removed redundant parens in if and while clauses
use var != constant, not constant != var.
Python doesn't allow for assignment in if statements, so we don't have
to use the old C workarounds
remove unwanted commas
use raw strings for regexps with backslashes, e.g. r'\s' instead of '\s'
Change-Id: I7aad645dd3d7f4b4b62f4e4510a425611c9d28f2
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 19:19:25 +0000 (11:19 -0800)]
nsb: move NSB root to constant, add unittest
add unittest for non-None default
fixup get_nsb_option to return default correctly.
use NSB_ROOT for all paths
Change-Id: Idd1951a8d436bc49c30d59d84ca12a5f26e9148f
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 22:03:27 +0000 (14:03 -0800)]
test_vnf_generic: fix unitests when files are present
replace paths with empty strings so unittests see
the Exception they expect when the files are not present
Otherwise unitests are dependent on local filesystem state
fix pylint issues, adjust formatting
removed duplicate key
Change-Id: I7857988c6e6bf586b0eb403fb1d3a3da7f170cbf
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 19:26:22 +0000 (11:26 -0800)]
vnfdgen: replace six.iteritems() with .items()
Openstack python3 style guide prefers to not use six.iteritems() but
instead use data.items() for all cases.
We should follow the Openstack guides since OPNFV is aligned with
Openstack
https://wiki.openstack.org/wiki/Python3#Port_Python_2_code_to_Python_3
Common patterns:
* Replace "for key in dict.iterkeys()" with "for key in dict"
* Replace dict.iteritems() with dict.items()
* Replace dict.itervalues() with dict.values()
Change-Id: I99b0505199a568771341658caf8b71c1896db9cd
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 22:04:52 +0000 (14:04 -0800)]
vnf_generic: replace list comprehension with generator expression
no need to build a list, just use next
Change-Id: I8a899ac538849b765f12bebda4fb8c89c84f333e
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Thu, 26 Jan 2017 23:14:59 +0000 (15:14 -0800)]
vnf_generic: convert sshmanager to class
@contextmanager have an issue with respect to exceptions that makes
them not suitable for real usage.
@contextmanager uses yield to create a generator and then uses
generator.throw() to raise any exceptions. Exceptions thrown from
generators loose their call stack due to the way generators work, so any
exception inside a context manager is harder to debug. For this reason
we don't use @contextmanager and instead always define a new class with
__enter__ and __exit__.
There is sample code that demonstrates the
issue with @contextmanager and generator.throw() here
https://gist.github.com/rbbratta/
e28b6e64a4551522c3ac9815ca7f25f0
Change-Id: I5383c01f40a63e33680112f39b5bd9c858e328f1
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Fri, 27 Jan 2017 00:00:38 +0000 (16:00 -0800)]
Bugfix: write_json_to_file: use json.dump with files
In python3 file objects automatically handle encoding to utf-8 and expect
string, not bytes, so use regular json.dump() with the file object
We should only use dump_as_bytes to replace json.dumps(), not
to replace json.dump()
This fixes Python3 issue:
Traceback (most recent call last):
File "yardstick/main.py", line 52, in <module>
main()
File "yardstick/main.py", line 49, in main
YardstickCLI().main(sys.argv[1:])
File "yardstick/yardstick/cmd/cli.py", line 167, in main
self._dispath_func_notask()
File "yardstick/yardstick/cmd/cli.py", line 145, in _dispath_func_notask
func(CONF.category)
File "yardstick/yardstick/cmd/commands/task.py", line 48, in do_start
self._init_result_file()
File "yardstick/yardstick/cmd/commands/task.py", line 57, in _init_result_file
write_json_to_file(consts.DEFAULT_OUTPUT_FILE, data)
File "yardstick/yardstick/common/utils.py", line 152, in write_json_to_file
write_file(path, jsonutils.dump_as_bytes(data), mode)
File "yardstick/yardstick/common/utils.py", line 157, in write_file
f.write(data)
TypeError: write() argument must be str, not bytes
Change-Id: I573419be25d8fa1f015e1507730ba66c05f86686
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Tue, 7 Feb 2017 00:45:58 +0000 (16:45 -0800)]
test_tg_text: fix indentation
flake8 error
Change-Id: Ia4c90c2703335123ea48c8421a84d7288126dcf6
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
kubi [Thu, 26 Jan 2017 01:16:41 +0000 (01:16 +0000)]
Proposing Trevor Cooper as a commiter in yardstick
Trevor Cooper has contributed greatly to yardstick D release.
Achievement/Contributions include:
Vsperf integration with yardstick.
NSB integration coordination.
Host US slot yardstick weekly meeting.
Draft Stress Test proposal in testperf.
Draft new Testing Projects Ecosystem graph.
Change-Id: I783335a77cfe3926c0c8ff76174ef3cc4f203fd6
Signed-off-by: kubi <jean.gaoliang@huawei.com>
kubi [Thu, 26 Jan 2017 01:35:03 +0000 (01:35 +0000)]
Proposing Ross Brattain as a commiter in yardstick
Ross has contributed greatly to yardstick D release.
Achievement/Contributions include:
Provided quite many high-quality review comments.
Prepare Yardstick for Python3
Support Vsperf integration with yardstick.
Support NSB integration.
Jenkins verify test evolvement.
Yardstick Architecture Improvement.
LOG system unified.
https://gerrit.opnfv.org/gerrit/#/q/project:yardstick+owner:%22Ross+Brattain+%253Cross.b.brattain%2540intel.com%253E%22
Change-Id: Ided9c95e856269277ff09572e92e9fda7288734e
Signed-off-by: kubi <jean.gaoliang@huawei.com>
Deepak S [Wed, 8 Feb 2017 01:33:16 +0000 (17:33 -0800)]
Pass environment variables of proxy to tox
When a development environment is under a proxy, tox is failed even if
environment variables of the proxy are set.
Change-Id: Ia6f8f2a1f215fc4c861d7dbc7a61dcd6973fb3cb
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Wed, 8 Feb 2017 02:24:57 +0000 (18:24 -0800)]
fix unittests failures due to py3
Traceback (most recent call last):
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/network_services/vnf_generic/vnf/test_vpe_vnf.py", line 306, in test_instantiate
self.context_cfg))
AssertionError: 0 != None
Traceback (most recent call last):
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/network_services/vnf_generic/vnf/test_base.py", line 55, in test_clear
self.assertEqual(queue_file_wrapper.q_out.empty(), True)
File "/usr/lib/python3.5/unittest/case.py", line 820, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.5/unittest/case.py", line 813, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: False != True
Traceback (most recent call last):
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/network_services/vnf_generic/vnf/test_tg_trex.py", line 321, in test_run_traffic
self.assertEqual(True, result)
File "/usr/lib/python3.5/unittest/case.py", line 820, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.5/unittest/case.py", line 813, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: True != False
Traceback (most recent call last):
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/tests/unit/network_services/vnf_generic/vnf/test_tg_rfc2544_trex.py", line 369, in test_run_traffic
self.assertEqual(True, result)
File "/usr/lib/python3.5/unittest/case.py", line 820, in assertEqual\
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.5/unittest/case.py", line 813, in _baseAssertEqual\
raise self.failureException(msg)
AssertionError: True != False
Change-Id: I68340196b8cc9f0fc2e4e0ef1022e8098fc860f0
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Ross Brattain [Tue, 7 Feb 2017 10:17:43 +0000 (02:17 -0800)]
fix unittests, mock trex_stl_lib, fix raw_input, division
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>
Jing Lu [Tue, 7 Feb 2017 00:16:42 +0000 (00:16 +0000)]
Merge "KVMFORNFV: Implementing test suites for kvmfornfv ovs+dpdk scenarios."
Kubi [Mon, 6 Feb 2017 09:59:08 +0000 (09:59 +0000)]
Merge "Adding simple cmdline to run the Network service testcases"
Kubi [Mon, 6 Feb 2017 09:58:57 +0000 (09:58 +0000)]
Merge "Setup yardstick_virtual environments for Network Service Testing"
Kubi [Mon, 6 Feb 2017 09:58:05 +0000 (09:58 +0000)]
Merge "Adding sample Thoughput Test case for vPE."
Kubi [Mon, 6 Feb 2017 09:57:34 +0000 (09:57 +0000)]
Merge "Adding vPE VNF class aligned with IETS per-deploy senarios"
Kubi [Mon, 6 Feb 2017 09:56:44 +0000 (09:56 +0000)]
Merge "Adding Trex rfc2544 VNF class to initate Traffic for throughput"
Kubi [Mon, 6 Feb 2017 09:56:11 +0000 (09:56 +0000)]
Merge "Adding trex trafficgen example."
Kubi [Mon, 6 Feb 2017 09:51:37 +0000 (09:51 +0000)]
Merge "Adding ping testcase to demonstrate the isb Generic framework"
Kubi [Mon, 6 Feb 2017 09:50:55 +0000 (09:50 +0000)]
Merge "Adding ping based sample VNF appliance"
Kubi [Mon, 6 Feb 2017 09:47:50 +0000 (09:47 +0000)]
Merge "Adding generic traffic profiles for trex traffic generator"
KalyanReddy [Mon, 6 Feb 2017 06:20:41 +0000 (11:50 +0530)]
KVMFORNFV: Implementing test suites for kvmfornfv ovs+dpdk scenarios.
This patch implements test suites for kvmfornfv os-nosdn-kvm_ovs_dpdk-ha
and os-nosdn-kvm_ovs_dpdk-noha scenarios.
Change-Id: Ia7b17dda262df5d81cac87372b70510192044a40
Co-Authored-By: Navya <b.navya4@tcs.com>
Signed-off-by: KalyanReddy <reddyx.gundarapu@intel.com>
rexlee8776 [Thu, 29 Dec 2016 11:03:31 +0000 (11:03 +0000)]
Push yardstick debug log into the artifacts
the log directory should be specific yardstick so
it can be easily pushed into artifacts with the
directory.
JIRA: YARDSTICK-507
Change-Id: If28b0c3938e123c8a55272cb98291fb76aaf6f9e
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Ross Brattain [Mon, 6 Feb 2017 07:19:55 +0000 (23:19 -0800)]
nfvi: disable failing AMQP unittest
Failures:
test_connect (network_services.nfvi.test_collectd.TestAmqpConsumer) ... ERROR:pika.adapters.base_connection:Connection to 1.1.1.1:5672 failed: timeout
WARNING:pika.connection:Could not connect, 0 attempts left
ERROR:pika.callback:Calling <bound method SelectConnection._on_connection_error of <pika.adapters.select_connection.SelectConnection object at 0x7fe7e2333710>> for "0:_on_connection_error" failed
Traceback (most recent call last):
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py27/local/lib/python2.7/site-packages/pika/callback.py", line 236, in process
callback(*args, **keywords)
File "/home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master/.tox/py27/local/lib/python2.7/site-packages/pika/connection.py", line 1265, in _on_connection_error
self.params.connection_attempts)
AMQPConnectionError: Connection to 1.1.1.1:5672 failed: timeout
ok
Firstly, 1.1.1.1 is not an approriate fake address, use 127.0.0.1 so we don't try
to connect to anything external
But 127.0.0.1 won't work anyway, so disable test_connect
replace 152.16.0.0 with 172.16.0.0
Remove network_services.nfvi.test_resource.TestResourceProfile since it
also fails due to same error
Remove test_amqp_collect_nfvi_kpi_exception
Change-Id: I00bb1729658e18b4651129661ad9dd9c0dedcf37
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Ross Brattain [Wed, 25 Jan 2017 00:30:25 +0000 (16:30 -0800)]
Fix: network_services: decode stdout instead of encode
Fixes unittest on Python 3
stdout is bytes, so we need to decode bytes to unicode using utf-8
bytes.decode(); str.encode()
Change-Id: I4b19d237139f338a648d04aa44cd4f199bb901c3
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Kubi [Thu, 26 Jan 2017 08:08:02 +0000 (08:08 +0000)]
Merge "Add infrastructure to add the NFVi KPI collections"
Kubi [Thu, 26 Jan 2017 08:07:25 +0000 (08:07 +0000)]
Merge "Adding sample yardstick.conf & pod files to help describe the topology"
Kubi [Thu, 26 Jan 2017 08:06:51 +0000 (08:06 +0000)]
Merge "Introducing Generic framework to do pre-deployment VNF & Network service testing"
Kubi [Wed, 25 Jan 2017 09:18:26 +0000 (09:18 +0000)]
Merge "basic tox.ini for python 2.7 and python 3 unittests"
Rex Lee [Tue, 24 Jan 2017 08:45:19 +0000 (08:45 +0000)]
Merge "Generic helper function to provision and get path from config"
Rex Lee [Mon, 23 Jan 2017 02:52:24 +0000 (02:52 +0000)]
Merge "Record task status if running via CLI"
chenjiankun [Thu, 19 Jan 2017 20:24:48 +0000 (20:24 +0000)]
Record task status if running via CLI
JIRA: YARDSTICK-542
Currently we do not record task status when using CLI to run task.
So I add this function.
If status=0, task is not done.
if status=1, task is done.
if status=2, there is an error.
Change-Id: Ib9b3c8abd233909c04f792115199250419fa8d7a
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
chenjiankun [Thu, 12 Jan 2017 07:50:30 +0000 (07:50 +0000)]
Create API to get a list of all test cases
JIRA: YARDSTICK-456
Currently we do not have a API to get a list of all test cases;
Currently the test case info is from the comment;
So I create a API to get a list of all test cases;
And create a 'description' attribute to record info of a test case;
And use the CLI call this API;
Change-Id: Ife800600446683664097835c7b9f11899c85771d
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Jing Lu [Fri, 20 Jan 2017 01:09:36 +0000 (01:09 +0000)]
Merge "Bugfix:can not run a test suite if not under yardstick root path"
Jing Lu [Fri, 20 Jan 2017 01:08:39 +0000 (01:08 +0000)]
Merge "Bugfix: task_id parameter from API can not pass to yardstick core"
Ross Brattain [Wed, 11 Jan 2017 21:09:47 +0000 (13:09 -0800)]
basic tox.ini for python 2.7 and python 3 unittests
Nothing fancy for now, just call run_tests.sh
If we want to expand we could add pep8, coverage
to tox. See dovetail tox.ini for example
Change-Id: I8b5897779ed9622dd1b38612cb393fc214ec6300
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Deepak S [Wed, 18 Jan 2017 06:54:02 +0000 (12:24 +0530)]
Adding simple cmdline to run the Network service testcases
JIRA: YARDSTICK-522
Change-Id: I5000c0ae9cf128f09b273afd85fd797068516484
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Fri, 30 Dec 2016 17:26:57 +0000 (09:26 -0800)]
Setup yardstick_virtual environments for Network Service Testing
JIRA: YARDSTICK-521
Change-Id: Ib91d231120067e58d2e1df7f1b42db216d15c468
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Fri, 30 Dec 2016 17:26:26 +0000 (09:26 -0800)]
Adding sample Thoughput Test case for vPE.
TestCases:
- 64B TC
- 1518B TC
- IMIX TC
JIRA: YARDSTICK-520
Change-Id: Ic7842de8afb0f5c222de42f99bf70af29442c94a
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Fri, 30 Dec 2016 17:25:53 +0000 (09:25 -0800)]
Adding vPE VNF class aligned with IETS per-deploy senarios
VNF life cycle
- instantiate
- collect_kpi
- terminate
JIRA: YARDSTICK-520
Change-Id: Ied6ac79870fa35cc3dd14fd7a99b6bade3b77c81
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Deepak S [Fri, 30 Dec 2016 17:25:26 +0000 (09:25 -0800)]
Adding Trex rfc2544 VNF class to initate Traffic for throughput
JIRA: YARDSTICK-520
Change-Id: I1c683236a7fb946873418fb67f63500e1ba8fc91
Signed-off-by: Deepak S <deepak.s@linux.intel.com>