Commit Graph

2091 Commits

Author SHA1 Message Date
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
Chris MacNaughton
85f33e8369 Merge pull request #751 from openstack-charmers/fix-add-disk-test
Setup loop devices early on in the Ceph tests
2022-04-14 16:51:20 +02:00
Frode Nordahl
68eb4f482a Update zaza/__init__.py from zaza (#750)
The zaza and zaza-openstack-tests project are currently installed
within the same package.  A side effect of that is that the
zaza/__init__.py from zaza is overwritten by the one in
zaza-openstack-tests.

We ought to find a better way of doing this but we're currently
blocked on using zaza + zaza-openstack-tests on systems with
Python 3.10 installed, and updating this file unblocks us.

Update zaza/__init__.py from openstack-charmers/zaza@c48c955ef7
2022-04-13 14:36:03 +01: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
Liam Young
c0d1a73259 Merge pull request #747 from wolsen/fix-neutron-qos-tests
Fix the qos tests for neutron
2022-04-12 16:40:59 +01: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
James Page
735f948260 Merge pull request #744 from openstack-charmers/bug/1968341
magpie: Relax the workload check in tests
2022-04-08 16:13:45 +01: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
coreycb
ed0bca46ff Merge pull request #736 from gnuoy/fix-netapp-tests
Fix netapp tests
2022-03-29 13:18:11 -04: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
Frode Nordahl
e9f32f0f85 Merge pull request #723 from gnuoy/bug/1964117
Add workaround for Octavia Bug #1964117
2022-03-21 17:20:00 +01: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
Liam Young
b5ba021785 Merge pull request #724 from freyes/octavia-fix-assert
Fix Octavia wait_for_lb_resource()
2022-03-15 15:40:24 +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
Chris MacNaughton
b7392bd923 Merge pull request #700 from gustavosr98/master
Add tests for cinder nimblestorage and solidfire
2022-02-25 12:32:18 +00:00
coreycb
96619fe9d7 Merge pull request #710 from coreycb/extra-specs
Use snapshot_support=True for manila share type
2022-02-24 12:31:26 -05:00
Corey Bryant
bf6b466b55 Use snapshot_support=True for manila share type
The extra specs of a manila share type need to match the
share service's capabilities. [1]

[1] https://docs.openstack.org/manila/pike/admin/shared-file-systems-troubleshoot.html#id2

Closes-Bug: #1962204
2022-02-24 12:26:52 -05:00
Aurelien Lourot
8d107c1117 Add NovaComputeNvidiaVgpuTest 2022-02-24 13:53:04 +01:00
Chris MacNaughton
a45db73007 Merge pull request #675 from openstack-charmers/osd-add-disk-test
Osd add disk test
2022-02-22 07:47:52 +00:00
Liam Young
118bea9796 Fix mysql test_800_remove_leader (#708)
test_800_remove_leader is getting a reference to the mysql lead
unit, removing the unit and then attempting to retrieve the ip.
This used to work but no longer does, perhaps due to changes
in the way zaza interfacts with libjuju. This change stores
the lead ip address before removing the unit.
2022-02-21 16:32:55 +00:00
Luciano Lo Giudice
11fa17fc6e Correctly prefix module access 2022-02-17 18:19:49 -03:00
Luciano Lo Giudice
ed47cb718a Correctly indent docstring 2022-02-17 18:15:46 -03:00