yardstick.git
6 years agoTestcase to find storage bottlenecks using Yardstick for Multistack 53/51753/3
Ace Lee [Tue, 6 Feb 2018 17:07:24 +0000 (17:07 +0000)]
Testcase to find storage bottlenecks using Yardstick for Multistack

JIRA: BOTTLENECK-217

This patch is used to find storage bottlenecks while using
yardstick for multistack.

Shubham is busy for his exam,
I can't change his patch, so I need to resubmit a patch.

Change-Id: Ibf8ec3ae7f19b27254eedabb1b95bd89a0993ed7
Signed-off-by: Ace Lee <liyin11@huawei.com>
6 years agoMerge "Fix i40vf driver download URL"
Emma Foley [Sat, 3 Feb 2018 16:15:17 +0000 (16:15 +0000)]
Merge "Fix i40vf driver download URL"

6 years agoFix i40vf driver download URL 03/51503/1
Rodolfo Alonso Hernandez [Fri, 2 Feb 2018 17:21:46 +0000 (17:21 +0000)]
Fix i40vf driver download URL

Fix the download URL of i40vf driver introduced in
15e122a770d6349c84801dd05891e21661cbad2c.

In order to avoid the redirection, the URL should be:
  https://netix.dl.sourceforge.net/project/e1000/
  i40evf%20stable/{{ i40evf_version }}/{{ i40evf_gzfile }}

JIRA: YARDSTICK-993

Change-Id: Ie19d11d36417914e823b81867046123204111d76
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRemoved zero from tc number 93/51493/1
Mika Rautakumpu [Fri, 2 Feb 2018 08:00:15 +0000 (10:00 +0200)]
Removed zero from tc number

Originally tc number was TC0042, after fix TC042.

Change-Id: I3c36e39a141ec8eb74f9f00d7218bd511a56fbc9
Signed-off-by: Mika Rautakumpu <mika.rautakumpu@nokia.com>
6 years agoMerge "Adding new vFirewall Test cases based on Concurrency, Connections per second...
Ross Brattain [Thu, 1 Feb 2018 19:25:11 +0000 (19:25 +0000)]
Merge "Adding new vFirewall Test cases based on Concurrency, Connections per second, Throughput and Transactions per second for various http locator image sizes including 1b, 4k, 64k, 256k, 1024k"

6 years agoMerge "Add "img_property" when building Yardstick image"
Ross Brattain [Thu, 1 Feb 2018 19:24:34 +0000 (19:24 +0000)]
Merge "Add "img_property" when building Yardstick image"

6 years agoMerge "Modify fuel_baremetal pod config file"
Ross Brattain [Wed, 31 Jan 2018 22:00:40 +0000 (22:00 +0000)]
Merge "Modify fuel_baremetal pod config file"

6 years agoAdd sample OpenStack/SRIOV RFC2544 based TC 13/51113/5
Mytnyk, Volodymyr [Thu, 25 Jan 2018 09:41:11 +0000 (09:41 +0000)]
Add sample OpenStack/SRIOV RFC2544 based TC

Add sample OpenStack/SRIOV RFC2544 based test case which can be
run using external Trex.

Console log: http://paste.openstack.org/show/658002/
Result output: http://paste.openstack.org/show/658004/

JIRA: YARDSTICK-967

Change-Id: Id0e2d6d47f459c7e6a3370735bab74f7ce502b24
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
6 years agoMerge "Add Intel Fortville 40G VF driver to sample VNF image"
Rodolfo Alonso Hernandez [Mon, 29 Jan 2018 23:26:52 +0000 (23:26 +0000)]
Merge "Add Intel Fortville 40G VF driver to sample VNF image"

6 years agoMerge "Change CivetWeb download URL"
Ross Brattain [Mon, 29 Jan 2018 19:31:39 +0000 (19:31 +0000)]
Merge "Change CivetWeb download URL"

6 years agoMerge "Fix up tests for Parser scenario"
Ross Brattain [Mon, 29 Jan 2018 19:31:22 +0000 (19:31 +0000)]
Merge "Fix up tests for Parser scenario"

6 years agoMerge "Move tests: unit/cmd/"
Ross Brattain [Mon, 29 Jan 2018 19:30:22 +0000 (19:30 +0000)]
Merge "Move tests: unit/cmd/"

6 years agoAdd Intel Fortville 40G VF driver to sample VNF image 11/51111/6
Mytnyk, Volodymyr [Thu, 25 Jan 2018 09:19:18 +0000 (09:19 +0000)]
Add Intel Fortville 40G VF driver to sample VNF image

1) Add common YAML config file to add kernel drivers to sample VNF image.
2) Add Intel Fortville 40G VF driverto sample VNF image using
   common YAML config file for drivers.
3) Configure i40evf driver to load on boot

JIRA: YARDSTICK-968

Change-Id: I223c8a10d77352baf4f41a481f465970655ba251
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
6 years agoMerge "Adding support to pull docker images behind proxy"
Emma Foley [Mon, 29 Jan 2018 09:48:44 +0000 (09:48 +0000)]
Merge "Adding support to pull docker images behind proxy"

6 years agoFix up tests for Parser scenario 59/47759/5
Emma Foley [Fri, 24 Nov 2017 09:46:37 +0000 (09:46 +0000)]
Fix up tests for Parser scenario

* Check the results at the test methods
* Remove print statement from Parser scenario
* Replace assertEquals(x, True) with assertTrue(x)

Change-Id: I5c2612692e625fc888c7ce7637b9e1625440724a
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoAdding support to pull docker images behind proxy 71/51171/2
Deepak S [Fri, 26 Jan 2018 07:37:44 +0000 (13:07 +0530)]
Adding support to pull docker images behind proxy

This patch creates a http_proxy.conf in docker service,
to enable docker commands behind the proxy

Change-Id: Iac38a086026c11e89e534728467dc7da0e01ba59
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "Add python-openstackclient in docker image"
Ross Brattain [Fri, 26 Jan 2018 21:13:16 +0000 (21:13 +0000)]
Merge "Add python-openstackclient in docker image"

6 years agoMerge "Replace assertEqual(x, True|False) with assert[True|False](x)"
Ross Brattain [Fri, 26 Jan 2018 21:12:53 +0000 (21:12 +0000)]
Merge "Replace assertEqual(x, True|False) with assert[True|False](x)"

6 years agoMerge changes from topic 'bug/yardstick-864'
Ross Brattain [Fri, 26 Jan 2018 21:12:01 +0000 (21:12 +0000)]
Merge changes from topic 'bug/yardstick-864'

* changes:
  Replace assertEquals with assertEqual
  Make files pep8 compliant before using assertTrue|False

6 years agoMerge "Remove generated file in 'test_build_vm_xml'"
Rodolfo Alonso Hernandez [Fri, 26 Jan 2018 10:54:55 +0000 (10:54 +0000)]
Merge "Remove generated file in 'test_build_vm_xml'"

6 years agoModify fuel_baremetal pod config file 99/50699/3
ting wu [Tue, 16 Jan 2018 12:27:28 +0000 (13:27 +0100)]
Modify fuel_baremetal pod config file

The current HA testcases failed on fuel baremetal installer
with reason "SSHTimeout". This is due to incorrect ssh login
info in the pod config file. The change is to by running
'prepare_env.sh' script to

- read env vars 'USER_NAME' and 'SSH_KEY'
- replace the 'node_username' to env var 'USER_NAME'
- replace the "node_keyfile" to env var 'SSH_KEY'

JIRA: ARMBAND-317

Change-Id: I0239892f447ae99ab4025eedcd133e1b6f04e5a5
Signed-off-by: ting wu <ting.wu@enea.com>
6 years agoAdd python-openstackclient in docker image 99/51099/2
Alex Yang [Thu, 25 Jan 2018 06:51:19 +0000 (14:51 +0800)]
Add python-openstackclient in docker image

"openstack: command not found" error occurred in [1].
The version of python-openstackclient is listed in [2].
This program should be installed in the container image
to make CI work for now.

[1]: https://build.opnfv.org/ci/job/yardstick-daisy-baremetal-daily-master/114/
[2]: https://github.com/openstack/requirements/blob/stable/pike/global-requirements.txt

Change-Id: Idb50e26bb2ca36f2dd6b6dddf94680d479cb9c9f
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
6 years agoReplace assertEqual(x, True|False) with assert[True|False](x) 99/49299/6
Emma Foley [Tue, 19 Dec 2017 15:15:37 +0000 (15:15 +0000)]
Replace assertEqual(x, True|False) with assert[True|False](x)

Change-Id: Id19df79b4d27aab1a83d8350ce6395e87c13472b
JIRA: YARDSTICK-903
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoReplace assertEquals with assertEqual 89/49289/7
Emma Foley [Tue, 19 Dec 2017 11:45:57 +0000 (11:45 +0000)]
Replace assertEquals with assertEqual

unittest.assertEquals is deprecated[1], and has been replaced with
unittest.assertEqual.

[1] https://docs.python.org/2/library/unittest.html#deprecated-aliases

Change-Id: I9c6320e3a9ec5528036b529a9c32fc48b0bcfd62
JIRA: YARDSTICK-864
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMake files pep8 compliant before using assertTrue|False 73/50373/5
Emma Foley [Wed, 10 Jan 2018 10:48:29 +0000 (10:48 +0000)]
Make files pep8 compliant before using assertTrue|False

JIRA: YARDSTICK-903
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: Id7912b5ddee36e7366bcfa824379853efd0a89f1

6 years agoMove tests: unit/cmd/ 51/48251/9
Emma Foley [Wed, 29 Nov 2017 23:33:27 +0000 (23:33 +0000)]
Move tests: unit/cmd/

* 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.

Change-Id: I505d72e1c646fea1976a0bf854369c6b6308bbb1
Jira: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoRemove img_modify_playbook from nsb_setup.sh script 09/51009/2
Mytnyk, Volodymyr [Tue, 23 Jan 2018 17:35:05 +0000 (17:35 +0000)]
Remove img_modify_playbook from nsb_setup.sh script

The `img_modify_playbook` variable is not used anymore by the
build_yardstick_image.yml. The `img_property` variable is used
instead. The `img_modify_playbook` usage has been removed and
the `img_property` has been introduced in
YARDSTICK-879 JIRA story.

JIRA: YARDSTICK-964

Change-Id: I0239544c4f4078de7a4817292ab6bd789c21e944
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Signed-off-by: Alonso Hernandez, Rodolfo <rodolfo.alonso.hernandez@intel.com>
6 years agoRemove generated file in 'test_build_vm_xml' 09/50409/2
Rodolfo Alonso Hernandez [Thu, 11 Jan 2018 12:08:30 +0000 (12:08 +0000)]
Remove generated file in 'test_build_vm_xml'

Change I22e95c488e27d6e2a8fdf6c1a07faab275fa6bba introduced a change in
test case 'test_build_vm_xml' [1]. This test case generates a file which
is stored locally but never removed.

[1]https://github.com/opnfv/yardstick/blob/80dc9034edeb05f66bfa6264ae0adf0f6aea60da/tests/unit/benchmark/contexts/standalone/test_model.py

JIRA: YARDSTICK-918

Change-Id: I91d39bb37c3d8a273fe68155bb308c5a3bc1ca9d
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "'libvirt' guest console in Standalone model"
Ross Brattain [Wed, 24 Jan 2018 17:52:24 +0000 (17:52 +0000)]
Merge "'libvirt' guest console in Standalone model"

6 years agoMerge "Check RS for virtualized OpenStack/Yardstick"
Ross Brattain [Wed, 24 Jan 2018 16:12:18 +0000 (16:12 +0000)]
Merge "Check RS for virtualized OpenStack/Yardstick"

6 years agoMerge "Cleanup of redundant files from Prox directory"
Rodolfo Alonso Hernandez [Wed, 24 Jan 2018 15:52:32 +0000 (15:52 +0000)]
Merge "Cleanup of redundant files from Prox directory"

6 years agoCheck RS for virtualized OpenStack/Yardstick 01/50501/8
Stepan Andrushko [Thu, 11 Jan 2018 17:51:45 +0000 (19:51 +0200)]
Check RS for virtualized OpenStack/Yardstick

Draft for env requirements reading and validation
Script can be run from tools/virt_ci_rampup.sh. First requirement file is
parsed/stored. This file must be created in ahead and named as
'infra_deploy.yaml'. Then separate ansible role is used to validate
resources. Ansible-role fails if there is not enough resources on the host
for cpu, ram, disk space.

JIRA: YARDSTICK-945

Change-Id: I86cd4bdc963de3aa51392fc73a239cbd426bc64a
Signed-off-by: Stepan Andrushko <stepanx.andrushko@intel.com>
6 years agoMerge "Use assertIn(x, y) instead of other variations"
Rodolfo Alonso Hernandez [Tue, 23 Jan 2018 21:16:12 +0000 (21:16 +0000)]
Merge "Use assertIn(x, y) instead of other variations"

6 years agoCleanup of redundant files from Prox directory 99/50999/1
Abhijit Sinha [Tue, 23 Jan 2018 16:09:53 +0000 (16:09 +0000)]
Cleanup of redundant files from Prox directory

JIRA: YARDSTICK-965

Removed the redundant files and directory from
Prox test folder.

Change-Id: I6167f0a4ccdd581153dad3ec9f5eaaf2619aacbd
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
6 years agoMerge "Enable iommu support in grub"
Ross Brattain [Tue, 23 Jan 2018 15:43:03 +0000 (15:43 +0000)]
Merge "Enable iommu support in grub"

6 years agoRename ResourceProfile.check_if_sa_running() 05/47605/8
Emma Foley [Tue, 21 Nov 2017 16:56:42 +0000 (16:56 +0000)]
Rename ResourceProfile.check_if_sa_running()

* Update log message and rename method to make debugging easier
* Fix pep8 violations in touched files

JIRA: YARDSTICK-859

Change-Id: Id138d72cd8557ffacd5dcc81d06feeb484e13625
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoEnable iommu support in grub 45/47645/10
Jan Malanik [Tue, 21 Nov 2017 20:05:43 +0000 (12:05 -0800)]
Enable iommu support in grub

JIRA: YARDSTICK-895
It's required for sriov standalone yardstick tests.
This part of commit message will be deleted:
This code will be enabled when https://gerrit.opnfv.org/gerrit/#/c/47957/ will be merged,
because it requires host reboot.

Change-Id: I0ec9cbf90a9d83d54e545fcf421b8baf206601a4
Signed-off-by: Jan Malanik <janx.malanik@intel.com>
Signed-off-by: Malanik Jan <janx.malanik@intel.com>
6 years agoMerge "Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py"
Ross Brattain [Mon, 22 Jan 2018 21:50:37 +0000 (21:50 +0000)]
Merge "Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py"

6 years agoMerge "Move tests: unit/dispatcher"
Ross Brattain [Mon, 22 Jan 2018 21:47:07 +0000 (21:47 +0000)]
Merge "Move tests: unit/dispatcher"

6 years agoMerge "Move tests: unit/orchestrator/"
Ross Brattain [Mon, 22 Jan 2018 21:46:43 +0000 (21:46 +0000)]
Merge "Move tests: unit/orchestrator/"

6 years agoMerge "Replace "oslo_utils.importutils" with standard library "importlib""
Ross Brattain [Mon, 22 Jan 2018 21:44:51 +0000 (21:44 +0000)]
Merge "Replace "oslo_utils.importutils" with standard library "importlib""

6 years agoClean unit tests in "benchmark.scenarios.lib.test_create_volume.py 25/47525/6
Emma Foley [Mon, 20 Nov 2017 15:20:49 +0000 (15:20 +0000)]
Clean unit tests in "benchmark.scenarios.lib.test_create_volume.py

* Use mock_object.assert_called_with instead of
    self.assertTrue(mock_object.called)
* Remove an unneeded if clause in CreateVolume
* Add individual tests for each method in CreateVolume

Change-Id: I54cc56434d316f059b3822879145e6a299866fcb
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "update docs for procedure after host reboot"
Ross Brattain [Sat, 20 Jan 2018 00:06:36 +0000 (00:06 +0000)]
Merge "update docs for procedure after host reboot"

6 years agoMerge "Vincenzo stepping down as Yardstick committer"
Ross Brattain [Fri, 19 Jan 2018 19:06:09 +0000 (19:06 +0000)]
Merge "Vincenzo stepping down as Yardstick committer"

6 years agoChange ansible version to 2.4.2 33/50833/3
John O Loughlin [Fri, 19 Jan 2018 10:49:53 +0000 (10:49 +0000)]
Change ansible version to 2.4.2

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>
6 years agoReplace "oslo_utils.importutils" with standard library "importlib" 35/50835/1
Rodolfo Alonso Hernandez [Fri, 19 Jan 2018 11:36:25 +0000 (11:36 +0000)]
Replace "oslo_utils.importutils" with standard library "importlib"

The current implementation of dynamic library importation is prone
to failure [1]:
- "sys.modules" is modified manually, which is something not
  recommended [2].
- When a module is imported is added to "sys.modules"; that means
  there is no need to manually create an entry in this object.
- "importlib" library is part of the standard library and is now
  available in PY3 and PY2 (backported). This library contains a
  function called "import_module" to import a module in runtime.

[1]https://github.com/opnfv/yardstick/blob/d2c7cc4e9768ed003257a95c92cdb278d516761b/yardstick/common/utils.py#L72-L93
[2]http://justus.science/blog/2015/04/19/sys.modules-is-dangerous.html

JIRA: YARDSTICK-949

Change-Id: Ide3b74f98858d06fa275fb6c9b78ceeaa64feed5
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoVincenzo stepping down as Yardstick committer 89/50789/1
Ross Brattain [Thu, 18 Jan 2018 19:22:50 +0000 (11:22 -0800)]
Vincenzo stepping down as Yardstick committer

From: opnfv-tech-discuss-bounces@lists.opnfv.org [mailto:opnfv-tech-discuss-bounces@lists.opnfv.org] On Behalf Of Riccobene, Vincenzo M
Sent: Thursday, January 18, 2018 2:35 AM
To: opnfv-tech-discuss@lists.opnfv.org
Subject: [opnfv-tech-discuss] Stepping down as Yardstick committer

Hello,
I am currently a committer for the OPNFV Yardstick project, but as I see unfortunately in the last months I have been absent from the project since other commitments took higher priorities and all my time, resulting in no major contributions to Yardstick, and I consequently decided to step down from the positon of committer.

It has been a great pleasure to contribute to the community and I hope I will be able to contribute again in the future.
Thank you very much all!

Best Regards.
Vince

Change-Id: I809021b4081caddb60549204a742b93134190a87
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Fix Cirros image name in CI script"
Ross Brattain [Wed, 17 Jan 2018 22:17:52 +0000 (22:17 +0000)]
Merge "Fix Cirros image name in CI script"

6 years agoMove tests: unit/orchestrator/ 69/48269/7
Emma Foley [Wed, 17 Jan 2018 11:23:27 +0000 (11:23 +0000)]
Move tests: unit/orchestrator/

* Fix pylint errors
* Add notes where additional action is needed.

Some errors are ignored locally, as they were a symptom of other problems.
These issues have been flagged for follow-up, and should be fixed later.

JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Change-Id: Idbf56d0cd3b29b70691acd6af4d5ac3c400d2ccc

6 years agoProposing Emma Foley as a committer in Yardstick 21/50621/2
Ross Brattain [Mon, 15 Jan 2018 08:20:07 +0000 (00:20 -0800)]
Proposing Emma Foley as a committer in Yardstick

Emma has contributed to Yardstick in many ways
Achievement/Contributions include:
- Provided high-quality code review comments.
- Tox improvements
- Refactored unittest to OpenStack conventions
- Improved unittest code coverage
- Improved code quality by fixing warnings and errors
- Documentation review and update
- Split out test-requirements.txt
- Attending OPNFV Euphrates Plugfest Portland
- Starting Traffic-Generator-as-a-service initiative with NFVBench and VSPerf
- Contributions:
  https://gerrit.opnfv.org/gerrit/#/q/owner:emma.l.foley%2540intel.com

Change-Id: I639fa27a7271bf9996b2ee0e19a689644af54afe
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoProposing Rodolfo Alonso Hernandez as a committer in Yardstick 87/50487/3
Rodolfo Alonso Hernandez [Fri, 12 Jan 2018 10:22:44 +0000 (10:22 +0000)]
Proposing Rodolfo Alonso Hernandez as a committer in Yardstick

Rodolfo has contributed to Yardstick in many ways
Achievement/Contributions include:
- Userguide review and update
- Provided high-quality code review comments.
- Improved unittest code coverage
- Improved code quality by fixing warnings and errors
- Jenkins gate check improvements
- Pip requirements checking and updating
- Migration to Shade removing OpenStack project clients.
- Regularly attending Yardstick meetings
- JIRA personal dashboard:
  https://jira.opnfv.org/secure/Dashboard.jspa?selectPageId=11400
- Contributions:
  https://gerrit.opnfv.org/gerrit/#/q/owner:rodolfo.alonso.hernandez%2540intel.com

Change-Id: I3e5f14a3f99fffcd4bd4973aedc44ce4beeb22be
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Proposing Jack Chan as a committer in Yardstick"
Ross Brattain [Wed, 17 Jan 2018 02:33:35 +0000 (02:33 +0000)]
Merge "Proposing Jack Chan as a committer in Yardstick"

6 years agoFix Cirros image name in CI script 87/49487/3
Rodolfo Alonso Hernandez [Thu, 21 Dec 2017 15:59:05 +0000 (15:59 +0000)]
Fix Cirros image name in CI script

Fixed the name of Cirros image used in OpenStack. The image name
is written in lowercase letters.

JIRA: YARDSTICK-842

Change-Id: Iff0b494125be61a055da753eaf57903b64f18509
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "bugfix: Fix duplicate 'address' in standlone SRIOV"
Ross Brattain [Tue, 16 Jan 2018 23:14:09 +0000 (23:14 +0000)]
Merge "bugfix: Fix duplicate 'address' in standlone SRIOV"

6 years agobugfix: Fix duplicate 'address' in standlone SRIOV 11/49711/3
Dino Madarang [Wed, 27 Dec 2017 23:52:12 +0000 (15:52 -0800)]
bugfix: Fix duplicate 'address' in standlone SRIOV

* Add unit test per Rodolfo's comment

Creating a VM using generted xml file /tmp/vm_sriov_0.xml returns
an XML error: missing source address type.

This fix modifies generted xml from:
<source>
<address>
<address bus="0x1a" domain="0x0000" function="0x0" slot="0x10" type="pci" />
</address>
</source>

to:

<source>
<address bus="0x1a" domain="0x0000" function="0x0" slot="0x10" type="pci" />
</source>

Change-Id: I694153e7468986bacb19ba3e09e761993aad7184
Signed-off-by: Dino Simeon Madarang <dinox.madarang@intel.com>
Reviewed-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Reviewed-by: Ross Brattain <ross.b.brattain@intel.com>
Reviewed-by: Alain Jebara <alain.jebara@intel.com>
Reviewed-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "bugfix:Incorrect title for testcase 081"
Jing Lu [Tue, 16 Jan 2018 02:28:43 +0000 (02:28 +0000)]
Merge "bugfix:Incorrect title for testcase 081"

6 years agoMerge "Update Dockerfile.aarch64.patch"
Ross Brattain [Tue, 16 Jan 2018 01:11:56 +0000 (01:11 +0000)]
Merge "Update Dockerfile.aarch64.patch"

6 years agoupdate docs for procedure after host reboot 07/50507/2
John O Loughlin [Fri, 12 Jan 2018 17:23:04 +0000 (17:23 +0000)]
update docs for procedure after host reboot

Added instructions to restart nginx and uwsgi after the host is rebooted.
Added instructions to start yardstick container if the host is rebooted.
Removed section on virtual python environment as it is not needed.

JIRA: YARDSTICK-919

Change-Id: I6e8bd1d52954c2aa138ce7879211b91b3644ecb2
Signed-off-by: John O Loughlin <john.oloughlin@intel.com>
6 years agoProposing Jack Chan as a committer in Yardstick 19/50619/1
Ross Brattain [Mon, 15 Jan 2018 07:53:51 +0000 (23:53 -0800)]
Proposing Jack Chan as a committer in Yardstick

Jack Chan has contributed to the Yardstick project in many ways
Achievements/Contributions include:
- Kubernetes context
- GUI
- Yardstick API
- Reporting fixes
- Attending OPNFV Summit Beijing
- Regularly attending Yardstick meetings

Change-Id: Ie46a99619365893f3b877822f82f626cf7a36deb
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agobugfix:Incorrect title for testcase 081 13/50613/1
JingLu5 [Mon, 15 Jan 2018 06:48:02 +0000 (06:48 +0000)]
bugfix:Incorrect title for testcase 081

JIRA: YARDSTICK-915

fix the wrongly numbered testcase title

Change-Id: I61f94b66e3f9dac655b5c71646524b19bae7307c
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Testcase 084 documentation"
Jing Lu [Mon, 15 Jan 2018 06:31:22 +0000 (06:31 +0000)]
Merge "Testcase 084 documentation"

6 years agoDo not hide unit tests execution fail 49/50549/1
Rodolfo Alonso Hernandez [Sat, 13 Jan 2018 09:00:50 +0000 (09:00 +0000)]
Do not hide unit tests execution fail

While moving tests from ./tests/ to ./yardstick/tests, both unit tests
directories are executed. If the first test run fails, do not hide
the error and exit immediately.

Change-Id: Ib6c64ccf2f4b19722722eb43b3d45d5ad5f0169d
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoAdd "img_property" when building Yardstick image 47/50547/1
Rodolfo Alonso Hernandez [Sat, 13 Jan 2018 08:26:03 +0000 (08:26 +0000)]
Add "img_property" when building Yardstick image

Since [1], when "build_yardstick_image.yml" is executed, a variable called
"img_property" must be set. This variable could be "normal" or "nsb",
depending on the type of image to generate.

[1] I9fdf30084511ca9a008df3b53887b06273bbd549

JIRA: YARDSTICK-921

Change-Id: Ie3ca6fcf76b94eb9604847aefa77c6a644dddd14
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoChange CivetWeb download URL 11/50511/1
Rodolfo Alonso Hernandez [Fri, 12 Jan 2018 17:48:02 +0000 (17:48 +0000)]
Change CivetWeb download URL

Changed CivetWeb download URL to [1].

[1] https://iweb.dl.sourceforge.net/project/civetweb/1.9.1/CivetWeb_V1.9.1.zip

JIRA: YARDSTICK-920

Change-Id: Ida014a57bd5b87d26c6cb8f5d36d43060f08026d
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoUse assertIn(x, y) instead of other variations 15/49315/8
Emma Foley [Tue, 19 Dec 2017 15:44:11 +0000 (15:44 +0000)]
Use assertIn(x, y) instead of other variations

unittest.assertIn(x,y) should be used instead of:
* unittest.assertTrue(x in y)
* unittest.assertEqual(x in y, True)

Also fixes pep8 violations existing in the file.

Change-Id: I705c1bd4af74757b5c928995894aede436d66817
JIRA: YARDSTICK-901
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoUpdate Dockerfile.aarch64.patch 39/50439/3
Cristina Pauna [Thu, 11 Jan 2018 17:22:56 +0000 (19:22 +0200)]
Update Dockerfile.aarch64.patch

The docker image was not built for aarch64 due to recent changes in the
Dockerfile. The updates to the Dockerfile.aarch64.patch are:
- update docker version to 16.04
- install dependencies for pyopenssl==17.5.0 (libssl-dev and libffi-dev)

JIRA: ARMBAND-353

Change-Id: I915172d4e7ce21b1f5de044b20301b076cb6fe20
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
6 years agoMove tests: unit/dispatcher 65/48265/5
Emma Foley [Wed, 29 Nov 2017 23:35:05 +0000 (23:35 +0000)]
Move tests: unit/dispatcher

* 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: I1f8a6041424c4c69f46ef30bd5c66d2d51d24347

6 years agoMove tests: unit/common 55/48255/8
Emma Foley [Wed, 29 Nov 2017 23:34:15 +0000 (23:34 +0000)]
Move tests: unit/common

* 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
Change-Id: I2847c380556985fae2c92bb8a7da9c47e91e1338
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agopylint: try to change formatting for Jenkins again 59/50459/1
Ross Brattain [Thu, 11 Jan 2018 23:03:23 +0000 (15:03 -0800)]
pylint: try to change formatting for Jenkins again

looks like we have to add var to tox passenv

Change-Id: Iba2da2123ae531e026897308769aa832c7eb6d04
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Move tests: functional/"
Ross Brattain [Thu, 11 Jan 2018 22:25:06 +0000 (22:25 +0000)]
Merge "Move tests: functional/"

6 years agoMerge "Move tests: unit/apiserver/"
Ross Brattain [Thu, 11 Jan 2018 22:23:18 +0000 (22:23 +0000)]
Merge "Move tests: unit/apiserver/"

6 years agoMove tests: unit/apiserver/ 71/48271/6
Emma Foley [Wed, 29 Nov 2017 23:01:33 +0000 (23:01 +0000)]
Move tests: unit/apiserver/

* 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: I30d3f61e5ea479758f9a2f39cf415da18e49b9d6

6 years agoMove tests: unit/test_ssh.py 01/48201/7
Emma Foley [Thu, 30 Nov 2017 00:20:09 +0000 (00:20 +0000)]
Move tests: unit/test_ssh.py

Change-Id: I0eabdd5d7e918dcf0df747119a104dedf125606f
Jira: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMove tests: functional/ 27/48227/6
Emma Foley [Wed, 29 Nov 2017 23:02:43 +0000 (23:02 +0000)]
Move tests: functional/

All tests in tests/functional have been moved to yardstick/tests/functional

JIRA: YARDSTICK-837
Change-Id: I89276b36635de74dd7b8f70e961c71aa0d2c494e
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agopylint: make Jenkins output parseable 55/50455/1
Ross Brattain [Thu, 11 Jan 2018 19:09:45 +0000 (11:09 -0800)]
pylint: make Jenkins output parseable

Jenkins doesn't handle the color and the output is hard to read in
Jenkins logs

Change-Id: Ie8fc5a78e89f72c829e4bbbcbd1291a723dfde72
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
6 years agoMerge "Run tests in yardstick/tests/"
Ross Brattain [Thu, 11 Jan 2018 16:00:31 +0000 (16:00 +0000)]
Merge "Run tests in yardstick/tests/"

6 years agoRun tests in yardstick/tests/ 31/47331/20
Emma Foley [Wed, 29 Nov 2017 22:18:55 +0000 (22:18 +0000)]
Run tests in yardstick/tests/

* Edit .testr.conf and tools/run_tests.sh
  * Run functional and unit tests in tests/ and yardstick/tests/
* Add yardstick/tests/unit/__init__.py and yardstick/tests/__init__.py
* Update pylintrc rules to disable:
  * missing-docstring
  * fixme
  * protected-access

Test will run in both tests/ and yardstick/tests/ initially

Change-Id: Iccd0df0d1b85b5d08f7faa56669bc32687925f7e
JIRA: YARDSTICK-837
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
6 years agoMerge "pyOpenSSL missing: cause 'git review' failed"
Ross Brattain [Thu, 11 Jan 2018 06:40:32 +0000 (06:40 +0000)]
Merge "pyOpenSSL missing: cause 'git review' failed"

6 years agopyOpenSSL missing: cause 'git review' failed 05/49605/3
JingLu5 [Wed, 10 Jan 2018 02:42:56 +0000 (02:42 +0000)]
pyOpenSSL missing: cause 'git review' failed

JIRA: YARDSTICK-905

In the latest Yardstick container, when use git review to upload patches, an Attribute Error will cause failure.

root@a80081a4dccd:/home/opnfv/repos/yardstick# git review
Traceback (most recent call last):
  File "/usr/bin/git-review", line 6, in <module>
    from git_review.cmd import main
  File "/usr/lib/python2.7/dist-packages/git_review/cmd.py", line 32, in <module>
    import requests
  File "/usr/local/lib/python2.7/dist-packages/requests/_init_.py", line 52, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/_init_.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>
    SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

pyOpenSSL is required.

Change-Id: I88a4916c9c2dfcdee45320f6b1a37eaae0803671
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Bump requirements to match OpenStack Pike release"
Ross Brattain [Wed, 10 Jan 2018 21:23:31 +0000 (21:23 +0000)]
Merge "Bump requirements to match OpenStack Pike release"

6 years agoMerge "Remove unnecessary function definition in IxLoadTrafficGen"
Ross Brattain [Wed, 10 Jan 2018 18:53:24 +0000 (18:53 +0000)]
Merge "Remove unnecessary function definition in IxLoadTrafficGen"

6 years agoTestcase 084 documentation 45/49645/3
JingLu5 [Tue, 26 Dec 2017 03:42:28 +0000 (03:42 +0000)]
Testcase 084 documentation

JIRA: YARDSTICK-906

TC084 is to evaluate the IaaS compute performance by using SPEC CPU 2006 benchmark

Change-Id: I628edf1d73e12d9f18eaf9609fa862ca456a1c71
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Rename test/unit/cmd directory"
Ross Brattain [Mon, 8 Jan 2018 18:21:47 +0000 (18:21 +0000)]
Merge "Rename test/unit/cmd directory"

6 years agoRemove unnecessary function definition in IxLoadTrafficGen 77/47777/7
Rodolfo Alonso Hernandez [Fri, 24 Nov 2017 16:42:42 +0000 (16:42 +0000)]
Remove unnecessary function definition in IxLoadTrafficGen

Removed call to 'instantiate' base class in IxLoadTrafficGen.

JIRA: YARDSTICK-894

Change-Id: I0ebee1f5e0f22cfd3a67eaac8accc67ecd35ad0c
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "ansible image build improvement"
Rex Lee [Mon, 8 Jan 2018 08:11:32 +0000 (08:11 +0000)]
Merge "ansible image build improvement"

6 years agoMerge "delete obsoleted zte pod info"
Ross Brattain [Thu, 4 Jan 2018 07:02:17 +0000 (07:02 +0000)]
Merge "delete obsoleted zte pod info"

6 years agoMerge "SPEC cpu2006 test case for VM"
Jing Lu [Thu, 4 Jan 2018 04:59:38 +0000 (04:59 +0000)]
Merge "SPEC cpu2006 test case for VM"

6 years agodelete obsoleted zte pod info 93/49993/1
zhihui wu [Thu, 4 Jan 2018 02:01:31 +0000 (10:01 +0800)]
delete obsoleted zte pod info

Delete zte pod info in yardstick/etc/yardstick/nodes.

Change-Id: Ie22fd9fa4b84529f0b2a7d113776d3559106e67a
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
6 years agoRemove tool provisioning in PROX helper 51/47951/5
Rodolfo Alonso Hernandez [Tue, 28 Nov 2017 16:39:15 +0000 (16:39 +0000)]
Remove tool provisioning in PROX helper

Tool provisioning in PROX setup environment helper is not needed [1]. The
tool (PROX traffic injector) is already provided during the VNF building:
  ./ansible/nsb_setup.yml -->
  ./ansible/build_yardstick_image.yml -->
  ./ansible/ubuntu_server_cloudimg_modify_samplevnfs.yml -->
  ./ansible/roles/install_samplevnf

[1]https://github.com/opnfv/yardstick/blob/master/yardstick/network_services/vnf_generic/vnf/prox_helpers.py#L641

JIRA: YARDSTICK-872

Change-Id: I0f925a7967a35a97901fbe5053793a791a7b1b01
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMake GenericVNF an abstract class 25/47725/11
Rodolfo Alonso Hernandez [Thu, 23 Nov 2017 09:08:14 +0000 (09:08 +0000)]
Make GenericVNF an abstract class

GenericVNF class is now an abstract class. Only optional methods are
implemented. Mandatory methods:
  - instantiate
  - wait_for_instantiate
  - terminate
  - scale
  - collect_kpi.

JIRA: YARDSTICK-866

Change-Id: Ia8766f9f98816e11894d1e72b0f3bd573d091d99
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoRemove 'inconsistent-return-statements' check from Pylint 47/49947/1
Rodolfo Alonso Hernandez [Wed, 3 Jan 2018 16:08:51 +0000 (16:08 +0000)]
Remove 'inconsistent-return-statements' check from Pylint

There are several bugs in Pylint [1] [2] affecting
'inconsistent-return-statements' check. It will be temporarily
removed.

[1] https://github.com/PyCQA/pylint/issues/1782
[2] https://github.com/PyCQA/pylint/issues/1794

JIRA: YARDSTICK-911

Change-Id: Ib655ef1befdc734c646cdfb9b48f1db0ccdf676d
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
6 years agoMerge "Fix inventory.ini for build_yardstick_image"
zhihui wu [Wed, 3 Jan 2018 00:56:43 +0000 (00:56 +0000)]
Merge "Fix inventory.ini for build_yardstick_image"

6 years agoMerge "Adding vFW RFC2544 and ixload test cases with various packet sizes"
Ross Brattain [Tue, 2 Jan 2018 08:47:13 +0000 (08:47 +0000)]
Merge "Adding vFW RFC2544 and ixload test cases with various packet sizes"

6 years agoansible image build improvement 09/48309/4
Ace Lee [Mon, 4 Dec 2017 09:07:14 +0000 (09:07 +0000)]
ansible image build improvement

JIRA: YARDSTICK-879

Add some image build vars
Add automatic image build of nsb
yardstick_image: ansible-playbook -e img_property="normal" -vvv -i inventory.ini build_yardstick_image.yml

nsb_image_build: ansible-playbook -e img_property="nsb" -vvv -i inventory.ini build_yardstick_image.yml

prepare for yardstick image uploading

Change-Id: I9fdf30084511ca9a008df3b53887b06273bbd549
Signed-off-by: Ace Lee <liyin11@huawei.com>
6 years agoSPEC cpu2006 test case for VM 15/49615/10
JingLu5 [Mon, 25 Dec 2017 06:50:20 +0000 (06:50 +0000)]
SPEC cpu2006 test case for VM

JIRA: YARDSTICK-906

This test case is for benchmarking VM(VNF) compute performance using SPEC CPU2006.

Change-Id: Ida87aa4d394e38b398acb0af3176dd1b4c858c35
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoFix inventory.ini for build_yardstick_image 13/49613/1
Alex Yang [Mon, 25 Dec 2017 06:25:46 +0000 (14:25 +0800)]
Fix inventory.ini for build_yardstick_image

In [1], 'no hosts matched' occured because 'jumphost' was not defined
in inventory.ini.

[1]: https://build.opnfv.org/ci/job/yardstick-daisy-baremetal-daily-master/72/console

Change-Id: I8cb36bf083ce589e94f5f8b115e99556f0bcb053
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
6 years agoAdd get function in ssh.py 97/49597/2
JingLu5 [Mon, 25 Dec 2017 01:47:16 +0000 (01:47 +0000)]
Add get function in ssh.py

JIRA: YARDSTICK-904

This task is about to implement a get function in ssh.py to
fetch desired files/folder in a remote VM to a local path.

In some test cases, test tools will produce results in files.
We want retain the original result files and archive them in
Yardstick docker for future usage.

Change-Id: Ifd333eb044ce31cffa6f5b2a8f6a46648a8858d1
Signed-off-by: JingLu5 <lvjing5@huawei.com>
6 years agoMerge "Replace subprocess "check_output" with "Popen""
Ross Brattain [Fri, 22 Dec 2017 19:35:50 +0000 (19:35 +0000)]
Merge "Replace subprocess "check_output" with "Popen""

6 years agoMerge changes from topics 'YARDSTICK-875', 'YARDSTICK-874'
Ross Brattain [Fri, 22 Dec 2017 11:42:27 +0000 (11:42 +0000)]
Merge changes from topics 'YARDSTICK-875', 'YARDSTICK-874'

* changes:
  Check if multiverse repository is available in Ubuntu
  Specify supported architectures for Ubuntu backports repository

6 years agoMerge "Bugfix in role enable_hugepages_on_boot"
Ross Brattain [Fri, 22 Dec 2017 11:42:15 +0000 (11:42 +0000)]
Merge "Bugfix in role enable_hugepages_on_boot"