Commit Graph

2703 Commits

Author SHA1 Message Date
Martin Kalcok
5e69dcf8c4 test_utils: Await application state after Error
Error state during VFIO enablement is discovered by
'wait_for_application_state' function. So that's the one
that should be re-tried after error recovery.

Fixes: e4e1d18624
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-21 13:33:35 +02:00
Frode Nordahl
f5e82f949b Merge pull request #1325 from mkalcok/ovn-metric-test
ovn: Change metric that verifies OVN exporter
2025-05-20 14:50:33 +02:00
Martin Kalcok
b5ac43aceb ovn: Change metric that verifies OVN exporter
It is possible for OVN exporter to run even if it
can't connect to OVN sockets. In that case it will
report only reduced number of metrics. We need to
use metric that confirms that the exporter is successfully
connected to the OVN.

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-20 12:36:14 +02:00
Martin Kalcok
42e82ce2ba Merge pull request #1323 from mkalcok/ovn-central-cos
ovn: ovn-central COS Integration tests
2025-05-08 14:30:14 +02:00
Martin Kalcok
9ec95cd6ba ovn: Wait for correct status in downscale test
When adding/removing units during the downscale test,
the test should take into consideration 'target_deploy_status'.

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-06 12:11:44 +02:00
Martin Kalcok
ddb6d4d432 ovn: ovn-central COS Integration tests
Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-06 09:24:39 +02:00
Myles Penner
745ef51a9f Merge pull request #1313 from freyes/pin-osc-lib
Pin osc-lib<4.0.0
2025-05-05 14:21:59 -07:00
Felipe Reyes
dd72623e06 Pin osc-lib<4.0.0
osc-lib-4.0.0 introduced typing hints making it incompatible with py38.

Ref: 3d221e5992
2025-05-05 17:14:41 -04:00
Frode Nordahl
09b71f6824 Merge pull request #1311 from mkalcok/ovn-cos-tests
ovn: COS integration tests.
2025-05-05 11:09:26 +02:00
Martin Kalcok
e4e1d18624 test_utils: Error recovery on huge page enablement
Rebooting units can cause the to go into an error state[0]
and it seems to pop up in our CI from time to time when we
enable huge pages on a machine.
We can try to recover from this at least once before
giving up on the test run.

[0] https://bugs.launchpad.net/juju/+bug/2077936

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-01 19:45:38 +02:00
Martin Kalcok
2f20669ceb ovn: COS integration tests.
These tests ensure that OVN Chassis can relate to the COS
via grafana-agent.

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-05-01 19:45:38 +02:00
hemanthnakkina
aedf8db70a Merge pull request #1310 from gboutry/fix/new-rbac
Add tempest target with new RBAC
2025-04-30 12:05:49 +05:30
Guillaume Boutry
412abce3ca Add tempest target with new RBAC
With Epoxy, new rbacs becomes the default under oslo.policy. Add a new
test target TempestTestWithKeystoneMinimalNewRBAC to ensure proper
configuration for tempest under new RBAC environments.

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2025-04-29 22:39:02 +02:00
Frode Nordahl
f10e6d7f11 Merge pull request #1309 from mkalcok/ovn-chassis-exporter
ovn: Add test for prometheus exporter.
2025-04-23 15:26:04 +02:00
Martin Kalcok
42ff2e6ace ovn: Add test for prometheus exporter.
This ensures that prometheus exporter on ovn-chassis and
ovn-central units is reachable and responds to requests
after the unit is deployed.

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-04-16 15:26:48 +02:00
Frode Nordahl
421c3658e3 Merge pull request #1308 from mkalcok/switch-ovn-chassis-principal
ovn-chassis: Switch principal charm to 'ubuntu'.
2025-04-10 16:10:44 +02:00
Martin Kalcok
f4f9854631 ovn: Temporarily skip disabling of huge pages.
Due to bug in juju [0], we need to avoid machine reboots
triggered by disabling of the huge pages. The core of the
tests remain intact.

[0] https://github.com/juju/juju/issues/19463

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-04-09 09:29:45 +02:00
Martin Kalcok
4cb7de983e ovn-chassis: Switch principal charm to 'ubuntu'.
Charm ovn-chassis used 'magpie' as a principal charm, but magpie
doesn't have 'noble' release. Switching to 'ubuntu' is an easy
way to unblock noble functional tests.

Signed-off-by: Martin Kalcok <martin.kalcok@canonical.com>
2025-04-07 10:14:09 +02:00
James Page
dd14fe7abb Merge pull request #1296 from dosaboy/fix-retrofit
diskimage-retrofit use Focal not Bionic
2025-01-31 09:59:28 +00:00
Edward Hope-Morley
f4aa1e1912 diskimage-retrofit use Focal not Bionic
If the test uses bionic source image the charm has not be able
to determine ubuntu_release which it cant always do. This
causes breakage when the image is bionic because it has to apply
ussuri uca for retrofit to work.
2025-01-30 15:18:40 +00:00
Peter Sabaini
859efeff44 Merge pull request #1295 from sabaini/fix-rbd-reg-pt2
Fix rbd test regression, pt. 2
2025-01-29 17:04:25 +01:00
Peter Sabaini
1bdff647c9 Fix rbd test regression, pt. 2
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2025-01-29 11:37:20 +01:00
hemanthnakkina
811979a3ea Merge pull request #1294 from gboutry/fix/not-found
Don't gate on not found
2025-01-28 15:02:51 +05:30
Guillaume Boutry
04473b490a Don't gate on not found
Most services can return not found, add to default list.

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2025-01-28 10:21:19 +01:00
James Page
506c8b198b Merge pull request #1293 from gboutry/fix/wait-all-endpoints
Allow passing service_codes to wait_for_all_endpoints
2025-01-27 10:15:31 +00:00
Guillaume Boutry
7a8432451e Allow passing service_codes to wait_for_all_endpoints
Some projects will return specific failed code when up because of
templating in URL. In some other case, due to the nature of the test,
the service will never go up but be present in keystone. Allow the
caller to override which service returns a specific code.

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2025-01-27 10:00:29 +01:00
Peter Sabaini
af5bea7072 Merge pull request #1292 from sabaini/fix-vault-ipformat
Format vault util func for ipv6
2025-01-23 17:35:57 +01:00
Peter Sabaini
fee64c2658 Format vault util func for ipv6
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2025-01-23 11:49:38 +01:00
Luciano Lo Giudice
b75eb07170 Merge pull request #1291 from sabaini/fix-ceph-rbd-mirror
Fix: ceph-rbd-mirror testing action handling
2025-01-20 13:19:04 -03:00
Peter Sabaini
9c7e794326 Fix: ceph-rbd-mirror testing action handling
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2025-01-20 15:37:41 +01:00
Luciano Lo Giudice
93a9631c9e Merge pull request #1290 from sabaini/fix-rbd-action
RBD tests: fix regression
2025-01-13 12:16:45 -03:00
Peter Sabaini
dec848228b RBD tests: fix regression 2025-01-13 14:38:36 +01:00
Peter Sabaini
f17b4be4e1 Merge pull request #1289 from sabaini/fix-ipaddr-format
Use formatter to accomodate ipv6 tests
2025-01-09 20:47:03 +01:00
Peter Sabaini
59b89ec7a7 Use formatter to accomodate ipv6 tests
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2025-01-09 17:47:03 +01:00
James Page
4dc1ca35b9 Merge pull request #1285 from javacruft/feat/dalmatian-and-epoxy
Add metadata for Dalmatian and Epoxy releases.
2024-11-22 10:07:49 +00:00
James Page
e81dd1b957 Add metadata for Dalmatian and Epoxy releases. 2024-11-22 10:02:51 +00:00
Peter Sabaini
4f3c7750f4 Merge pull request #1284 from sabaini/integration-test-tenacity
Ceph COS integration increase tenacity and logging
2024-11-20 15:33:37 +01:00
Peter Sabaini
19a08a1dda Ceph COS integration increase tenacity and logging
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-11-20 10:55:20 +01:00
Peter Sabaini
0804a01e1c Merge pull request #1255 from lmlg/rbd-tests-fix
Use the new-style fields in action object for RBD tests
2024-10-23 11:19:46 +02:00
Frode Nordahl
58ffc5d48f Merge pull request #1282 from gboutry/fix/get-nova-compute
Fallback to 0 minimum compute when no nova-compute units
2024-10-18 17:26:59 +02:00
Guillaume Boutry
7543dfd873 Fallback to 0 minimum compute when no nova-compute units
Tempests can be used on deployments without nova-compute, testing only
control plane APIs. Fallback to a value when no nova-compute units is
found.

Signed-off-by: Guillaume Boutry <guillaume.boutry@canonical.com>
2024-10-18 17:13:48 +02:00
James Page
891761d631 Merge pull request #1278 from fnordahl/tempest-optional-http-image
tempest: Conditionally populate http_image key.
2024-10-14 17:09:42 +01:00
James Page
6b78df0bfa Merge pull request #1277 from fnordahl/add-lxd-support
Add basic support for LXD as substrate.
2024-10-14 17:09:21 +01:00
James Page
40b5896b4a Merge pull request #1276 from fnordahl/tempest-compute-count
tempest: Deduce min_compute_nodes from Juju model.
2024-10-14 17:08:27 +01:00
James Page
2f66c185f9 Merge pull request #1275 from fnordahl/tempest-ipv6-keystone
tempest: Properly render IPv6 endpoint IPs.
2024-10-14 17:08:04 +01:00
Frode Nordahl
a5ad00acf1 undercloud_and_charm_setup: Add support for LXD.
This adds basic LXD support that allows adding second NIC to
instances hosting networking charms as well as populating said
charms configuration with the second NIC MAC address.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-14 09:00:01 +02:00
Frode Nordahl
3e33bc73b1 tempest: Conditionally populate http_image key.
The `[image]` section and `http_image` configuration key is
optional, only populate it if the caller has populated the
`TEST_SWIFT_IP` environment variable.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-12 09:26:57 +02:00
Frode Nordahl
efca169566 tempest: Properly render IPv6 endpoint IPs.
Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-11 21:48:45 +02:00
Frode Nordahl
9511aae4a6 tempest: Deduce min_compute_nodes from Juju model.
At present this value is hard coded, which may cause test failures
on deployment with different number of compute nodes.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-11 12:34:27 +02:00
Frode Nordahl
a9f7794b15 tempest: Refactor _add_application_ips.
Perform repetitive task in loop on input data rather than
repeating the same call three times in the code.

Signed-off-by: Frode Nordahl <fnordahl@ubuntu.com>
2024-10-11 12:20:58 +02:00