Commit Graph

1279 Commits

Author SHA1 Message Date
Corey Bryant 41bc9e0069 Add manila support to tempest 2022-05-19 17:09:07 +00:00
Dmitrii Shcherbakov 8fae05e0c2 Merge pull request #746 from openstack-charmers/hugepages-vfio
Add connectivity test with DPDK
2022-05-12 17:25:12 +03:00
Billy Olsen 0d07a39d60 Merge pull request #667 from gnuoy/ceph-radosgw-multi
Add wait for sync to ceph RGW tests
2022-05-10 10:11:28 -07:00
Luciano Lo Giudice 1a5b3f6152 Also wait for the SAML 'enabled' message 2022-05-02 17:31:27 -03:00
Luciano Lo Giudice eaf33ab2bd Add docstring to public method 2022-05-02 14:43:36 -03:00
Luciano Lo Giudice a6846dd161 Add a few retries to avoid race conditions 2022-05-02 14:37:54 -03:00
Luciano Lo Giudice 7d70b22846 PEP8 style fixes 2022-04-29 18:04:15 -03:00
Luciano Lo Giudice d9a2c95cd5 Fix ceph-dashboard SAML tests
This PR ensures that the SAML tests are using a fully valid IDP
metadata (Ceph's dashboard doesn't report its validity until SAML
features are used), as well as using TLS in the requests, in addition
to some cleanups here and there.
2022-04-29 18:00:18 -03:00
Frode Nordahl ffa98f31b2 ovn: Add chassis DPDK test 2022-04-26 13:09:27 +02:00
Frode Nordahl 7a192e56c9 dvr_enabled: Avoid KeyError when Neutron not present 2022-04-26 11:48:38 +02:00
Frode Nordahl 7984d783fa Add undercloud_and_charm_setup configure step
The neutron ``basic_overcloud_network`` setup job performs both
undercloud and charm configuration prior to configuring the
overcloud network.  The undercloud and charm configuration steps
are useful outside the context of OpenStack Neutron.

Split undercloud and charm setup into a new configure step.
2022-04-26 11:48:33 +02:00
Frode Nordahl 899f2b7cd2 Move hugepages/vfio helpers to common test utils
Update CPU topology flavor advice.

The example currently listed would create a two socket CPU with
only one NUMA node, which is a invalid configuration which leads
to undefined results.

Instead list two examples one with a single socket for simpler
end to end tests and a two socket two numa node example for more
advanced low level tests.
2022-04-26 11:48:28 +02:00
Frode Nordahl 16e0fbbfa7 ovn: Fix `wrong_bridge_config` test
The test blindly reverts the ``bridge-interface-mappings``
configuration to an empty string, which would be the wrong thing
to do if it was previously set up by a test configure step.

The test also does not properly populate target_deploy_status and
the test will always wait for the next update status to run,
which may take several minutes, before completing.
2022-04-26 11:44:59 +02:00
Frode Nordahl f38448fee7 neutron: Add connectivity test with DPDK
The test will prepare hypervisor units in virtual machines by
enabling hugepages configuration and rebooting them and
subsequent required runtime changes.  If the hypervisor units
are physical machines the test assumes they already have
received the appropriate configuration from the bare metal
provisioning system.

Launch nested instance using flavor that enables hugepages and
attach it directly to the external network and perform
connectivity tests.

After a successful test the hypervisor units are brought back
to their original state to not influence subsequent tests.
2022-04-21 17:27:37 +02:00
Frode Nordahl ba0dc0232d Support connectivity check without FIPs 2022-04-21 17:22:47 +02:00
Frode Nordahl ad16b5a7fc Make project network and subnet configurable 2022-04-21 16:03:54 +02:00
Frode Nordahl 3ec64703ed Support launch instance on external provider network
Allow launching an instance and attaching it directly to the
external provider network.  This is useful in its own right and
is also a requirement in order to successfully test some
configurations.
2022-04-21 16:03:48 +02:00
Frode Nordahl 3f711ff6da openstack: Add update subnet DHCP helper 2022-04-21 14:08:55 +02:00
coreycb 59d5d24acf Merge pull request #759 from gnuoy/remove-unkown-metric-test
Stop failing on unknown ceilometer metrics
2022-04-20 11:12:52 -04:00
Liam Young 21179a1125 Stop failing on unknown ceilometer metrics
The metric test is too strict and fails if it finds a metric that
is not explicitly listed in the test. Given the test does check
that the expected metrics are present there seems not need to fail
if a new one has added upstream.
2022-04-20 12:46:59 +00:00
Luciano Lo Giudice a7f4e92e02 Reorder storage operation 2022-04-12 21:16:27 -03:00
Luciano Lo Giudice b7bb8597ce Sync kernel partitions 2022-04-12 19:47:43 -03:00
Luciano Lo Giudice f09bc087b3 Setup loop devices early on in the Ceph tests
There appears to be a race condition between the loop device creation
and its actual usage. In order to prevent that, this PR setups these
devices during the test initialization instead of right before using
them in the 'add-disk' tests.
2022-04-12 17:30:25 -03:00
Billy Olsen 8c1722502f Remove lowercase of qos_enabled
Its a boolean, it doesn't have a lowercase method.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-12 06:29:57 -07:00
Billy Olsen 7975258453 Fix the qos tests for neutron
Only run the test_401_enable_qos tests when qos is not enabled prior to
test execution.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-11 19:46:57 -07:00
Frode Nordahl 59c8dd6e1d magpie: Relax the workload check in tests 2022-04-08 16:15:16 +02:00
Chris MacNaughton aa24cb9f03 Merge pull request #741 from openstack-charmers/ceph-dashboard-saml-tests
Add test for ceph-dashboard SAML functionality
2022-04-08 14:07:25 +02:00
Dmitrii Shcherbakov c57ae0ccbf Merge pull request #742 from openstack-charmers/bug/1968008
ovn: Skip NRPE tests on Jammy
2022-04-07 13:52:34 +03:00
Chris MacNaughton 8c6ee4c758 Add Ceph versions to OS_CODENAMES (#743)
There are some Ceph charms that do not install the
openstack-release package, so fall through to the
dict to identify which release they are on, and can
fail with a KeyError when not finding a matching
entry for Pacific and Quincy.
2022-04-07 09:24:28 +01:00
Frode Nordahl 0ca76a86a5 ovn: Skip NRPE tests on Jammy
Related-Bug: #1968008
2022-04-06 15:39:00 +02:00
Luciano Lo Giudice b7d7588f46 Test SAML redirect and presence of metadata 2022-04-05 14:50:15 -03:00
Luciano Lo Giudice 99b3cd6dec Use ceph-mon as application 2022-04-04 19:59:43 -03:00
Luciano Lo Giudice d1ad9f7a2a Use an existing application for version fetching 2022-04-04 18:21:31 -03:00
Luciano Lo Giudice 124d16acbb Add test for ceph-dashboard SAML functionality 2022-04-04 15:49:34 -03:00
James Page 9b17e61124 Merge pull request #696 from wolsen/vtpm-tests
Add vtpm functional tests
2022-04-04 14:36:36 +01:00
Chris MacNaughton 4fb139e24b Merge pull request #683 from openstack-charmers/osd-remove-test
Implement test for disk replacement
2022-04-02 08:50:41 +02:00
Billy Olsen c7e7443c63 Add vtpm functional tests
Add functional tests for vTPM enablement within guests.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-04-01 15:37:38 -07:00
Liam Young df91c1e6cb Fix netapp tests
* Check the charm config options when constructing the expected
  cinder.conf contents. This makes the tests less brittle when
  bundles are changed.

* Only check the volume backend name for netapp as the host part
  is now the cinder units hostname
2022-03-29 16:17:16 +00:00
Chris MacNaughton 140268d75c Merge pull request #720 from peterctl/keystone-rotate-admin-password
Add rotate-admin-password functional test
2022-03-22 12:37:05 +00:00
James Page 57f420629e Merge pull request #719 from AurelienLourot/nvidia-vgpu
Add NovaComputeNvidiaVgpuTest
2022-03-22 10:00:10 +00:00
Luciano Lo Giudice 3a7afecf4d Remove spurious loop device 2022-03-21 19:51:59 -03:00
Luciano Lo Giudice e1d10f9359 Use the correct module 2022-03-21 18:44:42 -03:00
Luciano Lo Giudice 1b01ff2c51 Merge branch 'master' into osd-remove-test 2022-03-21 18:39:59 -03:00
Aurelien Lourot 7338af093e Add NovaComputeNvidiaVgpuWithHardwareTest 2022-03-17 13:55:47 +01:00
Liam Young 4fcf8d2c7a Do not apply work-around to OVN deploys 2022-03-16 06:29:55 +00:00
Liam Young 20e3e1412d Add workaround for Octavia Bug #1964117
Add a work around for Bug #1964117. To ensure that this is only
a temporary measure the fix is tied to specific OpenStack releases
and package versions.
2022-03-15 15:40:48 +00:00
Felipe Reyes 6ae8ae47fe Fix Octavia wait_for_lb_resource()
This change drops the use of AssertionError in favor of
LoadBalancerUnexpectedState that was introduced by commit acaeb62 which
stopped retrying on AssertionError.
2022-03-15 12:23:14 -03:00
Pedro Castillo 602a078faa Add rotate-admin-password functional test
Add a functional test that verifies the rotate-admin-password action
in the keystone charm.

Relevant patch in the charm-keystone repo:
https://review.opendev.org/c/openstack/charm-keystone/+/832665
2022-03-15 01:53:17 +00:00
Billy Olsen cd5c8c26eb Import exceptions module instead of exception (#722)
A missing 's' on importing the zaza.openstack.utilities.exceptions in
the octavia tests are causing gate tests to fail. This fixes the import
to point at the right module.

Fixes #721

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-03-14 20:36:33 +00:00
Felipe Reyes acaeb62a4d Stop retrying if LB provisioning status reached ERROR (#682)
* Stop retrying if LB provisioning status reached ERROR

The method `wait_for_lb_resource()` retries for 15m while the load
balancer could have reached to ERROR during the provisioning in the
first few minutes, this approach makes the testing take longer for no
reason.

This change makes the ERROR state in provisioning_status final and
abort raising a ValueError() exception.

More details of the provisioning_status possible states can be found at:
https://docs.openstack.org/api-ref/load-balancer/v2/#provisioning-status-codes

* Use LoadBalancerUnexpectedState and LoadBalancerUnrecoverableError.

Drop the (re-)use of AssertionError and ValueError to identify when a
load balancer status is in a state where the test needs to retry or
break and fail respectively.

This change introduces 2 new exceptions to be explicit of what the code
is trying to do.

- LoadBalancerUnexpectedState is raised when the status of the load
  balancer is in a state different from the one requested by the caller,
  but said state can be considered as transitory.
- LoadBalancerUnrecoverableError is raised when the status of the load
  balancer is in ERROR state and said state is final for the
  proviniong_status property, hence retrying only delays the failure.
2022-03-08 13:11:51 +00:00