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
Update the pep8 to latest openstack infra requirements and move the pep8
zuul job definition in repo.
Change-Id: Idc727e5232c6b1697e65cbda8b955d9f4f1490d3
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
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
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
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
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
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
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
The docs can all fit into one easy-to-reference README. Do this.
Change-Id: I616a9bfb8446254d4f13de064328173ce5dd9b59
Depends-On: Ia00f32baee90594a4c91d872bbce83b9fdc927b7
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
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
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
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
As using tempest-lib is deprecated we need to
use lib under the main tempest library.
Change-Id: I0d3621bddf9d74818b96812292beed5746c8e794
Closes-Bug: #1572089
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
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
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
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
The names of the instance and image metadata options used for CPU
threads has changed. Update this.
Change-Id: I3b7537e79aa762a5f8fb0590afab165904202e33
Partial-Bug: #1535812
Move all files from 'docs' to 'doc/source'. This requires fixing
some links.
Change-Id: I69adf2930aa5ab09fdc3a66894f9122d44f2173d
Partial-Bug: #1535772
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
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