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
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
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
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
All code in the repo is Apache licensed, yet the LICENSE file and
'license' parameter of 'setup.py' state BSD. Reference Apache
everywhere.
In addition, add missing licenses to any files that require one.
Finally, change references from a developer to Intel Corporation
Change-Id: I8564d0e1a23961e8c09359da24bcc8e2b6d4c87c
Partial-Bug: #1535772
Since commit 74890acee32b1 in tempest tempest/scenario/manager.py
tempest.scenario.test_numa_topology.TestServerNumaTopo started to fail.
>>
File "tempest/scenario/test_numa_topology.py", line 111, in verify_ssh
floating_ip = self.floating_ips_client.create_floating_ip()[
AttributeError:
'TestServerNumaTopo' object has no attribute 'floating_ips_client'
>>
This commit should fix that.
Change-Id: I5d38b7d9962cb14ae502906ffba2611bd2882a66