Commit Graph

59 Commits

Author SHA1 Message Date
Masayuki Igawa cfe66fe563 Add pypi libraries
This commit adds a couple of libraries which are required by test
running and listing. And this commit also removes tempest-lib from
requirements.txt because there's no usage in this repo and tempest-lib
is already deprecated.

Also replace zuul aopenstack-tox-pep8 job with nfv-tox-pep8 job to
resolve its installation dependency issues.

Co-Authored-By: Lianhao Lu <lianhao.lu@intel.com>
Change-Id: I14707abded6ae337f41823614779f778694b3c64
2021-03-02 09:32:16 +08:00
Lianhao Lu b07b373992 move pep8 zuul job definition in repo
Update the pep8 to latest openstack infra requirements and move the pep8
zuul job definition in repo.

Change-Id: Idc727e5232c6b1697e65cbda8b955d9f4f1490d3
2021-02-26 09:24:46 +08:00
OpenDev Sysadmins e6ce725be3 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:33 +00:00
Artom Lifshitz 3c636db406 Use admin client to create/modify flavors
To avoid potential 403 policy errors, use the admin client to
create/modify flavors.

Change-Id: I5a1a48781697b1f3d05081ce743bb344e8191e72
2018-06-18 09:32:39 -04:00
Artom Lifshitz 17e1c78c67 Do validation properly
Commit 9f416dd25 stopped implicit validation_resources provisioning.
This patch updates our tests to keep in line with tempest's new way of
doing things. We also remove the admin password, since pubkey
authentication is enough, and pass the network parameter to
create_server to make sure we can SSH to it.

Change-Id: Ie0cda772b732b7db8cac2b84c800a4bd225c46a8
2018-06-18 09:03:36 -04:00
Artom Lifshitz 24967f89de Fix deprecations
Update the code to reflect the deprecation of os_adm (replaced by
os_admin) and is_extension_enabled's move to tempest.common.utils.

Change-Id: Ic47f053a994d9ced276d61fbc920209fe51e2cc8
2018-06-18 09:03:30 -04:00
Artom Lifshitz 9ee2dd4529 Improve README
Update REAMDE to reflect:
* Disappearance of run_tempest.sh
* Tempest's use of stestr instead of testr

Also, add line about installation in development mode.

Change-Id: If927fe93efa3fa6a9d026f97880a21aff3114819
2018-06-18 09:03:14 -04:00
Kalaswan Datta 0b931f336f H402 hacking have been deprecated
Change-Id: I4395d0c01fffb6f4f61d289437984a87d7c19fd8
2017-01-06 11:32:21 -05:00
Waldemar Znoinski 643200e9aa fix nits + validate numa_topology_test
Change-Id: I901c399e53b7c62ac92ac9c54bea0ebea5c040b5
2016-12-12 10:31:07 +00:00
Stephen Finucane ba71d6ed58 Rework 'test_numa_topology'
This is a little cludgy and could make better use of existing test
classes found in Tempest. The main changes are:

- The test class is no longer unnecessarily split into a base class and
  test class
- The test class now inherits from 'base.BaseV2ComputeAdminTest' rather
  than from 'manager.NetworkScenarioTest', allowing us to remove a lot
  of boilerplate
- 'remote_client.RemoteClient' is subclassed to indicate how we're
   retrieving host NUMA topology
- Some variables are renamed to clarify their purpose.

This adds a dependency of the '[validation] run_validation' config
option, which must now be set to 'True' to ensure networks are
provisioned for guest instances that need them.

Change-Id: Idfa521e81aba93c863b8996b6f42645711312759
2016-12-09 21:40:43 +00:00
Stephen Finucane a8807613ad Move get_placement out of test
This doesn't really need to be a class function, due to the limited use
of 'self'

Change-Id: Ib397ef59730786ca970cf5cae2ce1087abcdb8c5
2016-12-09 16:59:57 +00:00
Stephen Finucane b0d2756732 Remove configurability
The tests provided the option to configure the amount of RAM, CPU, etc.
used, but this configuration wasn't being exercised. Simplify the code
by removing these knobs. They can be re-added in the future if the need
arises.

Change-Id: Ie14ed284c10d0c12f6bd851c689ae2738044d793
2016-12-09 15:12:05 +00:00
Stephen Finucane 4e58eb7df3 Remove dead code
These functions are no longer called anywhere and can be removed.

Change-Id: I6d59a02864d4d5f6445117335d7488ba5db33cd3
2016-12-09 15:12:02 +00:00
Jenkins bfefa68acb Merge "trivial: Realign some function calls" 2016-11-25 20:48:56 +00:00
Jenkins b9c251973d Merge "test_cpu_pinning: Enable resize tests" 2016-11-14 10:18:06 +00:00
Michal Ptacek e40eae5d19 get rid of useless tenant_id attribute
reflecting the same change in tempest

Change-Id: I24f0b456beb4f98269c8ff6141103271850731d0
Closes-Bug: #1640430
2016-11-09 09:40:24 +00:00
Stephen Finucane 1573f1fc37 trivial: Realign some function calls
This makes comparison between different tests a little easier.

Change-Id: Ica0dcb4f4d7231e00335b7df41a3117091420125
2016-11-08 16:07:53 +00:00
Stephen Finucane e6d9eb56fe test_cpu_pinning: Enable resize tests
The bugs that caused these issues have been resolved upstream. Time to
re-enable these tests. There are two fixes required:

- Correct invalid Tempest API calls
- Add missing resize confirmation steps

Change-Id: I9c489ccebde9a91a9aca7a8196952bd2f245f2c1
2016-11-08 16:07:11 +00:00
Jenkins 7018e5a0c8 Merge "cleanup references to stackforge" 2016-10-24 12:52:44 +00:00
Waldemar Znoinski be273956bf cleanup references to stackforge
Change-Id: I6a74890fec2fc4dec104bbc18a4af2186c8cf7d4
2016-10-24 12:41:03 +00:00
Waldemar Znoinski e4a4313cc3 nit: fix Intel NFV CI link in README
Change-Id: I906face7c0c1dc84f57ce3fbd850f97df94ad477
2016-10-18 21:02:17 +00:00
Radek Zetik 85ec30ac4d tempest-dsvm-intel-nfv cannot import tempest.scenario.utils module
utils.py was removed from Tempest scenarios in Ie7814bd5. Update the
TestServerNumaBase test to resolve new found import issues.

Change-Id: I6789f531714468107fff3f85e87b593c9556ae4b
Closes-Bug: #1596460
2016-07-01 08:41:07 +00:00
Jenkins aed19b879f Merge "doc: Move docs into README" 2016-06-18 12:09:52 +00:00
Michal Ptacek b7b73d2052 Fixing discrepancy in TestServerNumaTopo object
Change-Id: I6345642cf350963d915dfe656d2cef0a9cbddf00
Closes-Bug: #1590725
2016-06-09 12:06:17 +01:00
Stephen Finucane ae4417b6bd doc: Move docs into README
The docs can all fit into one easy-to-reference README. Do this.

Change-Id: I616a9bfb8446254d4f13de064328173ce5dd9b59
Depends-On: Ia00f32baee90594a4c91d872bbce83b9fdc927b7
2016-06-08 13:20:06 +00:00
Waldemar Znoinski 5a1379ab01 change call to get configured credentials
Due to recent change in in credentials_factory
in tempest (https://review.openstack.org/#/c/321805)
function get_configured_credentials
is no longer available.
test_hugepages is now calling
the new function

Change-Id: I41229a9250e62b26d958c66beef76ef146a80c42
Closes-Bug: #1586701
2016-05-28 22:46:30 +01:00
Waldemar Znoinski 153db3fdab remove TestServerNumaPCI
This change removes TestServerNumaPCI due to fact
that there's only one PCI HostBridge in a host VM
the test may be giving false positives if the guest VM
is scheduled to NUMA Node 0.

Change-Id: Ie3f87620841e024fd42eea4187e31d46c57e7e84
Closes-Bug: #1573282
2016-04-21 23:43:19 +01:00
Waldemar Znoinski 824805d91d fix get_placement function to use ps and new cgroup path
Change in path to cgroup that has vcpu placement
information is required for the function to work properly
when run on host VM with Ubuntu 14. This breaks this
function run in a docker container where cgroup paths
are different. get_placement function now uses
ps instead of pgrep due to fact pgrep was picking
up more than qemu/VM process - it was not filtering
'/bin/sh pgrep...' line.

Change-Id: I7772dee3f9cf8680a65681fe642eba6e0724f80e
Closes-Bug: #1573157
2016-04-21 18:37:28 +01:00
Waldemar Znoinski 8d82cbe0d6 add waiter for server to become ACTIVE after reboot
There looks to be a race condition between server
reboot request and cleanup fuction that runs when the test finishes.
This change add explicit waiting for server to be back to 'ACTIVE'
state after being rebooted.

Change-Id: I990977e02bd09e59b52ab72cb461aa720b8e2052
Closes-Bug: #1572197
2016-04-19 16:16:10 +01:00
Waldemar Znoinski fce1b57553 replace tempest_lib with tempest.lib
As using tempest-lib is deprecated we need to
use lib under the main tempest library.

Change-Id: I0d3621bddf9d74818b96812292beed5746c8e794
Closes-Bug: #1572089
2016-04-19 15:43:57 +01:00
Waldemar Znoinski a87391af68 lower flavor requirements for test_cpu_pinning
Lowering vcpu and ram requirements to lowest possible
to maximise tempest concurrent workers running that test.
It's especially important on small/mid-sized testing hosts or VMs.

Change-Id: Ia5f119a702f2950e7299feb8fc1f494361af52d1
Closes-Bug: #1570951
2016-04-19 11:40:33 +01:00
Waldemar Znoinski 535bb01cba add get_host_cpu_siblings() in test_cpu_pinning
This change replaces get_core_mappings()
with get_host_cpu_siblings() in test_cpu_pinning scenario
test set. New function uses libvirt getCapabilities to discover
CPU thread siblings on the host.

Change-Id: I95a4c9952a57a0b2121cb77d7becf31fae11af7f
Closes-Bug: #1568032
2016-04-19 11:39:31 +01:00
Waldemar Znoinski 5e95dcddb2 remove test_oversubscribed_server, not useful
This test should fail with Forbidden exception when trying
to spawn more servers than allowed vCPU quota is. This is
because each vcpu->cpu pinned server requires a dedicated
cpu from the host. If spawning 5 servers with 4 pinned
vCPUs each it would over allowed in quota or available
on the host 16 or 20 pCPU (depending on the setup).
Currently when this test is run in parallel
(tempest/testr concurrency) to other tests it doesn't
hit the quota limits but instead fails with
'no valid host was found' instead of Forbidden exception.
Lowering quota will limit other tests so it's not
an option either.

Change-Id: Ib5fdad6f941ea92864f048938021b16dbb41478c
Related-Bug: 1571723
2016-04-19 10:37:39 +01:00
Jenkins fa18ba6a8e Merge "Correct invalid docstring" 2016-02-15 12:51:18 +00:00
Jenkins b978bf68b4 Merge "test_cpu_pinning: Rename the test" 2016-02-15 12:50:50 +00:00
Jenkins d3c07c1c5d Merge "Rename and enable 'isolate' test case" 2016-02-11 11:34:21 +00:00
Jenkins 012d8ae513 Merge "make: Remove Makefile" 2016-02-09 13:52:47 +00:00
Stephen Finucane c7c6a6061b Correct invalid docstring
The 'get_core_mappings' function does not accept any arguments so don't
say it does.

Change-Id: I7fffef50ab6d59bf72a70be7dfd028fb6d72afbf
2016-02-09 13:31:01 +00:00
Stephen Finucane 798d588485 test_cpu_pinning: Rename the test
The existing name for this test is rather undescriptive. Correct this
oversight.

Change-Id: If38538ea555bfe23cee5ca68e2dac17fd31265be
2016-02-09 13:30:49 +00:00
Stephen Finucane a0bd839e9e Rename and enable 'isolate' test case
There was a test case provided for the 'isolate' policy, formerly known
as 'separate', but it was disabled due to missing support for this
feature. Because support has now been added we can enable this test.

Change-Id: If8a96b0016ea05260dc598334ba434d9e4045ecf
Partial-Bug: #1535812
2016-02-09 13:29:58 +00:00
Stephen Finucane 72ed61c1c2 make: Remove Makefile
This isn't necessary thanks to tox. Remove it.

Change-Id: I2fe8dd1dc58097aa5f2dc39c4fcdd40b223bdfed
Closes-Bug: #1535772
2016-02-05 14:13:33 +00:00
Stephen Finucane 76bd9162cb Correct metadata option name
The names of the instance and image metadata options used for CPU
threads has changed. Update this.

Change-Id: I3b7537e79aa762a5f8fb0590afab165904202e33
Partial-Bug: #1535812
2016-02-05 12:52:20 +00:00
Stephen Finucane 58ebef5521 doc: Restructure directory per OpenStack standards
Move all files from 'docs' to 'doc/source'. This requires fixing
some links.

Change-Id: I69adf2930aa5ab09fdc3a66894f9122d44f2173d
Partial-Bug: #1535772
2016-02-04 16:23:45 +00:00
Jakub Jasek 80e608d5b6 Fix test_numa_topology tests
Wait for status=ACTIVE before associating floating_IP.

Change-Id: I9372501779ca25f1a0e22191a6ea26bcfbf33a69
2016-02-03 13:23:16 +00:00
Stephen Finucane 0a8d11b07d tox: Integrate 'flake8wrap' script
Integrate the 'flake8wrap' scripts, which provide useful functionality.

Change-Id: I06d7d9d816d855b6ce4f1748b29a3ed916e3bbf8
Partial-Bug: #1535772
2016-02-01 13:15:09 +00:00
Vaclav Hejral 5e7ade513a Fix tests for new tempest API
The Tempest API has been changed.
As such, some function calls need to be updated.

Change-Id: I028f861779ca25f1a0e22191a6ea26bcfbf33a69
2016-01-27 13:52:06 +00:00
Stephen Finucane cefd3ee274 Resolve issue with 'test_reboot_pinned_server'
The 'reboot_server' function now requires a named parameter.

Change-Id: Ia30f79287f565ce2eed3f9ec22ef02b7f7c7354a
Closes-Bug: #1535812
2016-01-25 21:28:09 +00:00
Stephen Finucane 4c4897883f Restructure directory as a Tempest plugin
Previously this project was structured like an OpenStack project. It
would be easier to run the contained tests if the project was formatted
as a Tempest plugin. Migrate the directory structure accordingly.

Change-Id: I03601f2f0c01580d072e47af60a96e9fbfd632b3
Partial-Bug: #1535772
2016-01-18 07:05:39 +00:00
Stephen Finucane 14cc8e7d71 Convert to pbr
Use pbr for packaging instead of manual setup tools. This allows us to
take advantage of a number of features provided by pbr, such as
automated generation of AUTHORS, HISTORY and MANIFEST files.

This removes two doc files due to reliance on the removed AUTHORS and
HISTORY files.

Finally, the 'full' tox target is removed and the 'pyN' targets are
stubbed out. These are broken by the move to pbr and will be rendered
irrelevant by a follow-up change.

Change-Id: I098979a6033afcff9abfbf60de63825f073dc15b
Partial-Bug: #1535772
2016-01-18 07:01:26 +00:00
Stephen Finucane 6f2bed176c setup.py: Correct URL
Refer to 'openstack' instead of 'stackforge'

Change-Id: Iee952eda8afd653a03272cfee472006c086c85d1
Partial-Bug: #1535772
2016-01-18 06:57:24 +00:00