Commit Graph

38 Commits

Author SHA1 Message Date
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
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
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
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
Michal Ptacek b7b73d2052 Fixing discrepancy in TestServerNumaTopo object
Change-Id: I6345642cf350963d915dfe656d2cef0a9cbddf00
Closes-Bug: #1590725
2016-06-09 12:06:17 +01: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
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 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
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
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 e7d85ec1df license: Update license to Apache
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
2016-01-18 06:50:02 +00:00
Vaclav Hejral 11321699e8 Fixed getting credentials
Since tempest change 290b3e138317062bd165df9eeaf17495135dfcfe
setUpClass (tempest.scenario.test_hugepages) fails
>>
File "tempest/scenario/test_hugepages.py", line 62, in setup_credentials
    credentials=cred_provider.get_configured_credentials(
AttributeError: 'module' object has no attribute 'get_configured_credentials'
>>

http://intel-openstack-ci-logs.ovh/compute-ci/refs/changes/29/247729/1/compute-nfv-flavors/tempest/scenario-on-nfv-flavors/testr_results.html

This commit should fix that.

Change-Id: I01f9b3d00e674a7cddd34ed85c3171e02eb90e97
2015-11-20 07:45:36 +00:00
Vaclav Hejral cfb36f1291 floating_ips_client => compute_floating_ips_client
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
2015-11-18 11:22:57 +00:00
Przemyslaw Czesnowicz 0b3f5d9885 Initial nfv testcases
Includes tests for cpu pinning, numa topology and hugepages.

Change-Id: I2124bdf308b24f749eaea17b20a7e7fabbb2840a
2015-09-21 12:37:11 +00:00
Waldemar Znoinski 34832f591a adding unit/functional/integration directory structure
Change-Id: I4a014d78cef3d0ec5343815c111d5b031e05cc32
2015-06-17 13:14:03 +00:00
Waldemar Znoinski 137a633ba2 Repository for Intel's tests for NFV CI system
Repository initialisation

Change-Id: If5a22fbff6627cc2e9dc7c7ccec04157147e81b6
2015-06-16 12:36:34 +00:00