Commit Graph

1287 Commits

Author SHA1 Message Date
Liam Young 39b09a3754 Merge pull request #1121 from gboutry/feat/designate
Add tempests tests for Designate K8S
2023-09-13 17:18:12 +01:00
Felipe Reyes f9a4c92993 Use self.assertIsInstance()
Replace "assert type(...) is Foo" with "self.assertIsInstance(..., Foo)"
this produces a more meaningful test error message and fixes pep8 rule
E721[0]

[0] https://www.flake8rules.com/rules/E721.html
2023-09-11 08:35:11 -03:00
Guillaume Boutry 04f4694099 Add tempests tests for Designate K8S 2023-09-08 11:30:11 +02:00
Liam Young bd8d7e8b29 Gate quorum queue tests on whether the charm supports them 2023-09-06 09:01:49 +00:00
Edward Hope-Morley ddd99ba582 Skip glance cinderbackend tests for < xena 2023-09-05 14:45:57 +01:00
Alex Kavanagh 7925fd0447 Merge pull request #1101 from freyes/watcher
Add Watcher Test Case
2023-09-05 08:48:13 +01:00
Felipe Reyes b087c0c2bd Retry check to avoid live migration unstability. 2023-09-04 15:49:31 -03:00
Felipe Reyes 862e3b16af Merge pull request #1109 from openstack-charmers/bug/1107/change-manila-test-order
Change order of operations in test_manila_share()
2023-09-04 11:58:13 -03:00
Alex Kavanagh 3c00b93579 Change order of operations in test_manila_share()
The existing order of operations after restarting the share is:

 1. mount share on ins-1
 2. validate the test file on ins-1
 3. mount share on ins-2
 4. clear the test file using 'rm' on ins-1
 5. write the test file on ins-1
 6. read the test file on ins-2

The issue is that step 4. can result in a stale file handle on ins-2
which takes an unspecified amount of time to clear.  Mounting the share
on ins-2 after the file is re-written does however work without a stale
file handle.  The new order is:

 1. mount share on ins-1
 2. validate the test file on ins-1
 3. clear the test file using 'rm' on ins-1
 4. write the test file on ins-1
 5. mount share on ins-2
 6. read the test file on ins-2

Closes-Bug: #1107
2023-09-01 14:01:07 +01:00
Peter Sabaini 2968bf8e31 Retry ceph-proxy pool test
When running the pool setup we test after the model is idle, but that
is not a guarantee that all pools have finished setup, so that the test
could race the pool creation.

Add retry to the test to give the system another chance to complete
pool creation
2023-09-01 13:19:42 +02:00
James Page 0db3a02609 Merge pull request #1081 from gnuoy/add-rabbit-quorum-queue-tests
Add Quorum Queue rabbit tests
2023-08-29 11:42:06 +01:00
Felipe Reyes 1d42b643f4 Add 'watcher' to tempest list of services 2023-08-24 19:38:11 -04:00
Felipe Reyes 6787c84267 Add watcher test.
This test launches 1 instance per hypervisor, and then launches a new
audit to optimize the use of hypervisors and consolidate the instances
in a single hypervisor, but also disabling the nova-compute service to
avoid new instances get allocated.
2023-08-24 19:38:11 -04:00
Guillaume Boutry 9e9401f10e Add tempests tests for Magnum k8s 2023-08-24 11:03:39 +02:00
Rodrigo Barbieri e0498d6a16 Convert images to raw if ceph image backend (#1078)
Convert images to raw if ceph image backend

We are currently uploading qcow2 images, and
Nova is converting them to raw when running
the tests, sometimes timing out the tests.

With this change we are pre-converting the
images and uploading them as raw, so Nova
does not have to convert them.
2023-08-21 14:15:51 +01:00
Alex Kavanagh 3b17ad9d97 Merge pull request #1090 from UtkarshBhatthere/cephDashboardTest
Adds ssl config switch test to ceph-dashboard
2023-08-16 15:05:47 +01:00
Corey Bryant 5eab75b907 Prevent kerberos setup conflicts
This patch ensures kerberos setup does not create duplicate
domains, projects, or users. Duplicate domains were seen to
be caused when the tenacity decorator ran the function multiple
times.

Fixes #1094
2023-08-14 22:15:51 +00:00
Utkarsh Bhatt c0b2a2cdb0 Adds SSL config switch test to ceph-dashboard
Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
2023-08-14 16:41:02 +05:30
coreycb 931a00cbca Merge pull request #1093 from freyes/retry-mysql-exporter
Retry when checking mysql exporter endpoint
2023-08-08 20:17:37 -04:00
coreycb dd1a891106 Merge pull request #1062 from freyes/fix-attribute-error
Refactor Hacluster.
2023-08-08 17:27:20 -04:00
Felipe Reyes 97d1b15d10 Retry when checking mysql exporter endpoint 2023-08-08 10:29:36 -04:00
Liam Young 543846d0c7 Merge pull request #1092 from hemanthnakkina/gnocchi-k8s-tempest-tests
Add tempest tests for Gnocchi k8s
2023-08-08 12:42:39 +01:00
hemanthnakkina 3c10dade2b Merge pull request #1091 from xtrusia/ceilometer_pep8_error
Fix pep8 error in ceilometer
2023-08-08 16:28:36 +05:30
Hemanth Nakkina 9eaafaa269 Add tempest tests for Gnocchi k8s
Add tempest tests for Gnocchi k8s
2023-08-08 16:23:41 +05:30
Alex Kavanagh 6896da206f Merge pull request #558 from freyes/bug/1922195
Add support for testing CephFS and ceph-proxy.
2023-08-08 09:53:48 +01:00
Seyeong Kim f76b226ca4 Fix pep8 error in ceilometer
Fix below pep8 error message
zaza/openstack/charm_tests/ceilometer/tests.py:129:16: E721 do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinst
ance()`
2023-08-08 09:06:19 +09:00
Felipe Reyes 8991edd83b Merge pull request #1084 from openstack-charmers/vault-cache-test
Add vault cachine of secrets on relation test
2023-07-26 17:29:10 -04:00
Guillaume Boutry fb95915c3e Add tempest tests for Barbican k8s 2023-07-24 14:49:03 +02:00
Hemanth Nakkina a00c828f26 Add tempest tests for Heat k8s
Add tempest tests for Heat k8s
2023-07-21 10:36:17 +05:30
Alex Kavanagh 752e643c33 Add vault cachine of secrets on relation test
This specific test is for the certificates relation to ensure that the
data presented to units related to vault have a consistent set of data.
2023-07-20 12:17:57 +01:00
Liam Young 53a1ef7b21 Add Quorum Queue rabbit tests
Add tests for the rabbitmq charm managing quorum queues.
2023-07-10 15:01:17 +00:00
Liam Young 6ee5fff038 Add tests for rabbit on k8s 2023-07-07 12:42:17 +00:00
Peter Sabaini 9e5f2e829d Merge pull request #1066 from sabaini/bug/1968369
Add a new TestClass that verifies test permissions change on charm up…
2023-06-30 14:56:09 +02:00
Peter Sabaini a0c8576bfa Fix dashboard test
Remove old and broken guard in ceph-dashboard testing
2023-06-26 13:51:41 +02:00
Frode Nordahl b05161a226 Merge pull request #1076 from dshcherb/2023-06-ndr
Add relevant infrastructure for performing NDR-related data plane tests and actual testing
2023-06-21 07:36:00 +03:00
Dmitrii Shcherbakov 35c5fca0c7 Fix an incomplete comment about the Nova client 2023-06-17 15:07:33 +04:00
Dmitrii Shcherbakov e6d215119e Be specific about a FIP to be checked in CP tests
The configure step for the DRAgent tests configures a name for a
floating IP to be checked for at the peer side. Since the data plane
tests add one as well for an instance, make sure the control plane-only
tests rely on the FIP that has a specific name. This can be useful if
the tests are run in a different order.
2023-06-17 14:59:03 +04:00
Felipe Reyes 7ec9b9198c Make CephProxyTest wait on the defined states in tests.yaml 2023-06-16 22:54:04 -04:00
Felipe Reyes 4b7d97168c Add support for testing CephFS and ceph-proxy.
This change allows to use ceph-mon or ceph-proxy for testing ceph-fs.

Closes-Bug: https://pad.lv/1922195
2023-06-16 22:54:01 -04:00
Dmitrii Shcherbakov 8fae640826 Add L3 data plane testing NDR tests
In order to actually test L3 for advertised routes, a simple ping test
is necessary to perform from a unit that receives dynamic routes.
2023-06-15 06:51:09 +04:00
Dmitrii Shcherbakov 77aeb7300f Allow skipping instance connectivity checks
For the NDR data plane testing case those checks cannot be performed
from the node that runs Zaza and instead need to be performed from a
unit that receives dynamic routes from the BGP speaker.

In order to allow for that case an additional argument is introduced.
2023-06-15 06:50:53 +04:00
Peter Sabaini b9ef2a30ec Fix: retry rbd pool status command
The rbd mirror status command has spurious faults on occasion. Retry
after some waiting.
2023-06-14 12:59:30 +02:00
Dmitrii Shcherbakov 110242796c Allow an optional FIP service subnet to be set up
A separate service subnet for FIPs is useful in making sure that
connectivity based on the advertised routes really works as opposed to
relying on directly connected routes to FIPs in the undercloud network
subnet used as an external network.
2023-06-12 21:35:57 +04:00
Dmitrii Shcherbakov 0bb84af4a4 Reuse the existing net setup code
As a prerequisite to testing the data plane connectivity with routes
advertised by NDR, this change makes the configuration step reuse the
existing network config code that is able to do things like plugging an
extra interface to be used in bridge-interface-mappings.
2023-06-07 23:41:29 +03:00
Peter Sabaini 17cb89a76b Merge pull request #1063 from sabaini/ceph-rbd-mirror-fix
Fix: upstream tooling output change
2023-06-02 16:48:48 +02:00
Edward Hope-Morley 5b1991bbc2 Retry octavia get_lb_providers
The octavia tests can sometimes fail when calling
get_lb_providers if they have not been setup yet.
This adds a retry if keystoneauth1.exceptions.http.NotFound
is raised.
2023-05-30 15:16:16 +01:00
Chris MacNaughton 7edf82503e Add a new TestClass that verifies test permissions change on charm upgrade 2023-05-30 11:18:34 +02:00
Peter Sabaini 6f7b8794e8 Fix: upstream tooling output change
Ceph rbd mirroring fixes:

- Upstream ceph mirror tooling modernized its output, need to update
test to reflect that.

- Avoid spamming run-action in a loop

- Don't consider system pools for failover

- Remove obsolete workaround for LP: #1820976
2023-05-26 16:39:03 +02:00
Felipe Reyes a67e1e0ec7 Refactor Hacluster.
Moving the attributes from HaclusterScaleBackAndForthTest to
HaclusterBaseTest allows HaclusterTest to access them and identify the
hacluster application correctly.
2023-05-26 10:13:48 -04:00
Frode Nordahl 4b56ec170e Merge pull request #1060 from openstack-charmers/2023-05-quagga-to-frr
Switch from Quagga to FRR
2023-05-25 07:52:03 +02:00