Commit Graph

2466 Commits

Author SHA1 Message Date
Alex Kavanagh
bbdaeb6c8c Merge pull request #1221 from xtrusia/stable/bobcat
[stable/bobcat] Adding fixing broken configuration test for mysql-router
2024-06-17 14:44:34 +01:00
Seyeong Kim
67aca7e44e Adding fixing broken configuration test for mysql-router
(cherry picked from commit 0a88897966)
2024-06-14 00:07:45 +00:00
Alex Kavanagh
244e20717e Merge pull request #1183 from rodrigogansobarbieri/bobcat_ceph_keys_test
Add test to check ceph keys (new)
2024-01-12 11:00:29 +00:00
Rodrigo Barbieri
e242121880 Add test to check ceph keys (new)
For https://review.opendev.org/897549

(cherry picked from commit 912f33e071)
2024-01-11 12:28:17 -03:00
Felipe Reyes
87210efa9c Merge pull request #1169 from openstack-charmers/bobcat-skip-test-due-to-LP2042944
[bobcat] Disable changing default_ttl test due to designate bug
2023-11-07 11:36:11 -03:00
Alex Kavanagh
fc508e8999 [bobcat] Disable changing default_ttl test due to designate bug
In designate bobcat the designate team re-organised the sql-alchemy code
and this has resulted in the bug [1] that means that the default values
for various zone creations are no longer used from the
/etc/designate/designate.conf file.  i.e. the defaults are fixed.

Related-Bug: LP#2042944
(cherry picked from commit a365823de0)
2023-11-07 15:42:02 +02:00
coreycb
a4b4b5e87e Merge pull request #1162 from openstack-charmers/add-nova-retrier-bobcat
Add a retrier-wrap to the nova client for octavia tests
2023-11-02 07:42:29 -04:00
Alex Kavanagh
045b115aa0 Add a retrier-wrap to the nova client for octavia tests
The nova service may not be quite ready after vault initialisation for
the basic network configuration, so add a retrier wrapper around the
client for every test to make sure that it retries.

(cherry picked from commit def0148642)
2023-10-31 19:48:56 +00:00
Alex Kavanagh
a0d6249a8d Merge pull request #1151 from freyes/swift-proxy-race-bobcat
Add tenacity retries around ring sync check [bobcat backport]
2023-10-13 10:28:23 +01:00
Corey Bryant
1c4279cf9c Add tenacity retries around ring sync check
This fixes a race when checking if object ring is synced.

(cherry picked from commit 0598ecfc9b)
2023-10-12 12:57:32 -03:00
hemanthnakkina
7bd89202cf Merge pull request #1148 from gnuoy/allow-401
Allow 401s when checking endpoints
2023-10-06 12:40:57 +05:30
Liam Young
ea7025c058 Allow 401s when checking endpoints
Some endpoints (heat) return 401s if you try and access them
without authenticating. Given the ep has been able to verify
whether you are authenticated a 401 is ok for a rudementary
health check
2023-10-06 04:56:25 +00:00
Guillaume Boutry
c16f070f3a Merge pull request #1147 from gnuoy/increase-traefik-retries
Increase number of retires for wait_for_traefik
2023-10-04 17:03:25 +02:00
Liam Young
19ab52b767 Increase number of retires for wait_for_traefik
Recent test runs have shown that the current number of retries is
not enough and traefik has still not updated its config. This PR
increases the number of retries in the hope that it will be
enough.
2023-10-04 14:58:02 +00:00
James Page
6466caab9d Merge pull request #1146 from gnuoy/wait-for-traefik
Add tactical work around for traefik
2023-10-04 10:45:36 +01:00
Liam Young
d670a2914c Add tactical work around for traefik
Add tactical work around for traefik readyness. Traefik takes
sometime to process changes to load balancer configuration.
Traefik has an api but it is turned off by default and currently
the charm does not expose a way to enable it. So, this change
looks at the traefik config on disk to check if it has the
correct number if units.
2023-10-03 17:04:06 +00:00
Liam Young
128b8980ed Merge pull request #1145 from gboutry/fix/temptest-imports
Import explicity keystone setup module
2023-10-03 10:56:28 +01:00
Guillaume Boutry
b44facf667 Import explicity keystone setup module
In gate, 'zaza.openstack.charm_tests.keystone.setup.wait_for_all_endpoints' is
not found without the explicit import of the keystone setup module
2023-10-03 11:52:57 +02:00
Liam Young
2c16a82e5d Merge pull request #1142 from gboutry/fix/tempest-k8s-endpoints
Add waiting for endpoints between units scaling
2023-10-03 08:42:21 +01:00
Alex Kavanagh
d69e9ae461 Merge pull request #1144 from fnordahl/tempest-concurrecny
tempest: Make concurrency configurable with a sane default.
2023-10-01 22:11:45 +01:00
Frode Nordahl
bf452c39e4 tempest: Make concurrency configurable with a sane default.
Tempest will by default run with a concurrency matching the
number of cores on the test runner.

When running on a workstation, it is likely that the default
concurrency will be too high for the scale of deployed workload.

Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
2023-10-01 08:52:51 +02:00
Guillaume Boutry
850db0c5e3 Add waiting for endpoints between units scaling
Traefik might take some time to update its configuration,
and switch multiple times between active and maintenance for the duration.
Waiting only for tests is not enough. This change introduce a wait
for endpoints to be ready.

Moreover, at glance call to setup the image might fail because of this
very reason, add a retry on render_tempest_config_keystone_v3.
2023-09-28 16:51:37 +02:00
Liam Young
89ef6faadb Merge pull request #1140 from gboutry/fix/glance-k8s-tests
Remove scaling tests from glance
2023-09-28 13:34:41 +01:00
Guillaume Boutry
5b5021cef8 Remove scaling tests from glance
Current install does not offer a storage backend
for glance, therefore it cannot scale.
2023-09-28 14:25:03 +02:00
Alex Kavanagh
f143d7cb12 Merge pull request #1139 from freyes/swift-proxy-race-master
swift-proxy: wait for model to settle after running action
2023-09-28 13:16:40 +01:00
Felipe Reyes
13a728d262 Add logging 2023-09-27 23:33:05 -03:00
Felipe Reyes
0ca305f6c8 swift-proxy: wait for model to settle after running action
Let the units run all the hooks before attempting to check if the ring
is synced, because the action set-weight triggers the hook
swift-storage-relation-changed in the swift-storage units which it's the
one in charge of getting the new ring data.
2023-09-27 16:51:43 -03:00
Billy Olsen
eba90c711a Merge pull request #1137 from sabaini/ceph-dashboard-verify-ssl
Retry ceph-dashboard ssl verification test
2023-09-26 16:11:33 -07:00
Peter Sabaini
cfcee88c20 Retry ceph-dashboard ssl verification test
Avoid a race in configuring ssl on endpoints and services
2023-09-26 15:55:35 +02:00
Felipe Reyes
ea36acd3cc Merge pull request #37 from gnuoy/use-correct-mysql-pwd-key
Stop using legacy root-password key
2023-09-15 09:35:11 -03:00
Guillaume Boutry
d2df59c6e2 Merge pull request #1131 from hemanthnakkina/octavia-k8s-tempest-tests
Add tempest tests for Octavia k8s
2023-09-15 10:46:43 +02:00
Hemanth Nakkina
9439c8b292 Add tempest tests for Octavia k8s
Add tempest tests for Octavia k8s with
scale-in/scale out.
Apply tempest config for octavia only
if it is not a k8s deployment.
2023-09-15 13:58:57 +05:30
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
coreycb
f345e93f70 Merge pull request #1130 from freyes/use-isinstance
Use self.assertIsInstance()
2023-09-11 08:23:40 -04: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
Alex Kavanagh
054e2fe849 Merge pull request #1119 from freyes/content-too-short
Retry on ContentTooShort
2023-09-08 08:42:46 +01:00
Felipe Reyes
91c1cc3c33 Retry on ContentTooShortError
This patch makes the download_image() to retry automatically on
ContentTooShortError exception, this is an issue that has been seen on
the gate, see [0].

[0] https://openstack-ci-reports.ubuntu.com/artifacts/3ae/891712/3/check/focal-wallaby-pacemaker-remote-ssl_masakari/3ae840c/job-output.txt
2023-09-07 10:19:28 -03:00
James Page
e095da5032 Merge pull request #1118 from gnuoy/skip-qq-tests
Gate quorum queue tests on whether the charm supports them
2023-09-06 10:34:37 +01:00
Liam Young
bd8d7e8b29 Gate quorum queue tests on whether the charm supports them 2023-09-06 09:01:49 +00:00
coreycb
5d23bee36d Merge pull request #1112 from dosaboy/skip-glance-cinder-backend-test-lt-xena
Skip glance cinderbackend tests for < xena
2023-09-05 09:53:38 -04: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
7b4a2931a3 Merge pull request #1089 from lmlg/reef-master
Add the mapping for Ceph's Reef release (master)
2023-09-04 12:56:57 -03:00
Luciano Lo Giudice
cbf5cefb96 Fix mapping for Ceph Reef 2023-09-04 12:11:27 -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
989144275b Merge pull request #1108 from sabaini/master
Retry ceph-proxy pool test
2023-09-04 11:08:16 +01: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