Commit Graph

1959 Commits

Author SHA1 Message Date
Ionut Balutoiu d2b38e6279 CephRGWTest: Deduplicate code to create multi-site relation
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2024-04-25 10:46:43 +03:00
Ionut Balutoiu 5054a7992c CephRGWTest: Add integration test for multisite sync policies feature
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2024-04-24 19:24:09 +03:00
Ionut Balutoiu e68c902fc8 CephRGWTest: Wait for sites to be syncronised before recovery scenario
If `self.promote_rgw_to_primary(self.primary_rgw_app)` is executed
before sites are syncronised, the sites will not be syncronised after.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2024-04-24 19:23:03 +03:00
Ionut Balutoiu c0f0474762 CephRGWTest: Reorder test cases
* Rename `test_004_migration_and_multisite_failover` to `test_100_migration_and_multisite_failover`
    * This will allow us to insert more multi-site tests after `test_003`,
      before scale-down scenario is run in `test_100_migration_and_multisite_failover`.
* Rename `test_005_virtual_hosted_bucket` to `test_101_virtual_hosted_bucket`.
    * This was previously run after `test_004_migration_and_multisite_failover`.
      So, we rename the test case to `test_101` to keep the same order.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2024-04-24 12:12:25 +03:00
Peter Sabaini 2e0beacad4 Merge pull request #1195 from lmlg/ceph-key-tests
Implement tests for ceph-mon's rotate-key action
2024-04-22 19:04:02 +02:00
Luciano Lo Giudice e083e56ee7 Remove OSD tests for initial release 2024-04-19 15:36:00 -03:00
Peter Sabaini da3463cb94 Fix: ceph-radosgw test should only check radosgw app
Don't block on global app state waiting but only check the SUT app
state.
2024-04-17 16:38:39 +02:00
Luciano Lo Giudice aa7d619a24 Add some time to get the unit to settle 2024-04-15 13:55:44 -03:00
Luciano Lo Giudice e574fc0019 Temporarily revert OSD testing to get RGW changes merged 2024-04-15 11:18:08 -03:00
Luciano Lo Giudice 06e876a7ad Uncomment ceph-osd tests 2024-04-12 13:34:11 -03:00
Luciano Lo Giudice 2f557c531d Use the correct callable 2024-04-11 16:06:19 -03:00
Luciano Lo Giudice cbc117208e Use the right unit to get the RGW client 2024-04-11 13:14:45 -03:00
Luciano Lo Giudice 7f913c7be2 Merge remote-tracking branch 'canonical/master' into ceph-key-tests 2024-04-11 10:58:10 -03:00
Luciano Lo Giudice eee7611ccb PEP8 fix 2024-04-10 13:45:12 -03:00
Luciano Lo Giudice d10c243f8d Comment out OSD tests until PR is ready 2024-04-10 13:41:40 -03:00
Luciano Lo Giudice f411c0b0b1 Use already existing functionality to fetch RGW client 2024-04-10 13:08:41 -03:00
Peter Sabaini 99167326ce Fix race in setting up certs
Closes bug #2060785
2024-04-10 11:50:12 +02:00
Luciano Lo Giudice 8fe9a110ed Also test key rotation in OSD's 2024-04-09 19:47:24 -03:00
Luciano Lo Giudice 761913176c Make sure the result is the type of entity we're after 2024-04-09 19:28:40 -03:00
Luciano Lo Giudice b99a6c428a Fix access to keys 2024-04-09 13:47:25 -03:00
Luciano Lo Giudice 99456d9229 Adjust test so it can be used for more than managers 2024-04-09 11:59:43 -03:00
Luciano Lo Giudice 3989d543f6 Get the keys for all managers to compare 2024-04-08 11:20:48 -03:00
Luciano Lo Giudice 5d45789726 Implement tests for ceph-mon's rotate-key action
This PR implements tests for the ceph-mon charm's action 'rotate-key'.
For now, the charm only supports key rotation for managers, but
more entities will be added. This PR will be used to test those
new entities as well.
2024-04-05 18:05:40 -03:00
Peter Sabaini 01ca8f5a78 Merge pull request #1187 from shundezhang/master
add test for virtual hosted bucket
2024-04-04 09:49:51 +02:00
Shunde Zhang ff58f1a129 delete whitespace in blank line 2024-04-03 15:40:04 +11:00
Shunde Zhang 9bdaf703d2 skip virtual hosted bucket test after multi site tests 2024-04-03 15:38:05 +11:00
Shunde Zhang 56776d0bb2 Fixed pep8 errors. 2024-04-02 21:00:39 +11:00
Shunde Zhang 374bde62ce add test for virtual hosted bucket 2024-04-02 17:48:19 +11:00
Billy Olsen a64d2c6b03 Use zaza.model.run_on_unit for ca checks
Existing code uses the python libjuju unit.run in order to execute
a wait check for ca readiness across the units. The behavior of libjuju
changed between 2.x and 3.x and causes this functionality to break. This
is abstracted and handled in the zaza library, so use that code instead
as it properly handles the differences.

Signed-off-by: Billy Olsen <billy.olsen@canonical.com>
2024-03-18 12:27:04 -07:00
Felipe Reyes d28b885f7a Set tempdir to a directory under ~/
When juju 3.x is used (installed from a snap in strict confinement) the
temporary directory of the system (e.g. /tmp) can't be read by 'juju',
this is used by zaza-openstack-tests to write testing policy files
among other transitory files that are passed to juju's CLI.

This change moves Python's default temporary file to ~/tmp unless
overriden by the environment variable TEST_TMPDIR.
2024-02-19 11:03:16 -03:00
James Page d70032b155 Merge pull request #1149 from rodrigogansobarbieri/add_ceph_keys_test
Add test to check ceph keys (new)
2024-01-09 16:10:33 +00:00
Luciano Lo Giudice 4716fd5db9 Don't cache whether cinder is present 2024-01-05 20:40:36 -03:00
Luciano Lo Giudice ad246b1a14 Improve exception handling, comments and naming 2024-01-03 16:50:02 -03:00
Luciano Lo Giudice 9a8b7650a0 PEP8 changes 2024-01-02 19:35:13 -03:00
Luciano Lo Giudice f61ccd44f8 Make Ceph tests self-contained.
This PR implements the needed changes so that the Ceph charms
can be run without a full Openstack environment. In particular,
the RBD mirror charm needed tweaking so as to not depend on
Cinder, using pools of its own creating.
2024-01-02 19:26:28 -03:00
Liam Young 7fe5b88a69 Move wait_for_url and rename wait_for_client 2023-12-04 13:18:08 +00:00
Liam Young 969c6a8a7b Make wait_for_endpoints more robust.
As seen in Bug #2045206 wait_for_endpoints can fails if keystone
is in a transient state. This change puts tenacity around the
keystone client setup to make it more resilient.

Closes-Bug: 2045206
2023-12-01 14:42:56 +00:00
Corey Bryant 35c8bdcc67 Increase tempest ssh timeout
Some of the tests that ssh into instances have been timing out
at times. Increase the timeout config for ssh.
2023-11-10 13:17:57 +00:00
Alex Kavanagh 04af9b3573 Merge pull request #1160 from coreycb/proposed-packages
Add test to report installed proposed packages
2023-11-08 09:23:01 +02:00
Felipe Reyes 3a221e5973 Merge pull request #1168 from openstack-charmers/skip-test-due-to-LP2042944
Disable changing default_ttl test due to designate bug
2023-11-07 11:35:42 -03:00
Alex Kavanagh a365823de0 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
2023-11-07 15:24:03 +02:00
Corey Bryant 0fdf38f49f Add tempest confirmation for octavia tests
This sets new tempest config options for octavia, including the setting
of log_user_roles=False, which allows tests to avoid the optional
list_role_assignments call that was resulting in 403 Forbidden for all
octavia tests.
2023-11-06 13:19:57 +00:00
Felipe Reyes 4bffe6c8e5 Merge pull request #1163 from coreycb/tempest-heat
Add new heat_plugin section to tempest.conf
2023-11-03 11:22:30 -03:00
Corey Bryant c16c0f95c7 Clean up [heat_plugin] section 2023-11-03 14:08:52 +00:00
Hemanth Nakkina 82ba0944d5 Remove assertion on number of loadbalancers
Heat charm when configured with traefik-route
can have multiple loadbalancers (for heat-api
and heat-api-cfn).
So remove the assertion in wait_for_traefik on
number of loadbalancers. Check on number of units
against number of servers should be sufficient.
2023-11-03 15:24:12 +05:30
Hemanth Nakkina 6d9d712310 Fix traefik config filename
Traefik config file names are of format
juju_ingress_ingress_<id>_<app>.yaml for
ingress interface. However if traefik_route
interface is used, the file name format
is juju_ingress_traefik-route_<id>_<app>.yamlwq

In tempest tests, wait_for_traefik, change the
filename format to support both ingress and
traefik-route interfaces.
2023-11-03 13:21:06 +05:30
Corey Bryant f1081a860b Add new heat_plugin section to tempest.conf
The heat tepest tests have moved out of tempest proper into a plugin.
This updates the tempest.conf accordingly.
2023-10-31 20:51:34 +00:00
Alex Kavanagh def0148642 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.
2023-10-31 19:44:49 +00:00
Corey Bryant 3c545ad861 Fix pep8 failures 2023-10-30 13:42:46 +00:00
Corey Bryant 227ceb2bb8 Minor update to fix track on upgrade test
This should fix "Upgrading keystone to 2022.2/stable" resulting
in 'no releases found for channel "2022.2/stable"'.

Instead, keystone should be upgraded to zed/stable.
2023-10-30 13:25:05 +00:00