Commit Graph

225 Commits

Author SHA1 Message Date
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
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
Peter Sabaini 774d4cc93b Skip unsupported vhost config on older releases
Quincy and older do not support virtual hosted bucket
2024-10-07 12:26:07 +02:00
Peter Sabaini 03ce7d54c3 COS integration: prometheus tenacity
Be more insistent in querying metrics

Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-09-10 10:52:55 +02:00
Peter Sabaini f87814103d COS testing fix
Don't require trusted certs for getting grafana api info

Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-09-04 20:38:14 +02:00
Peter Sabaini 95f8122fbb Trivial: COS test fix typo
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-09-04 09:27:59 +02:00
Peter Sabaini afe42c4a59 COS integration: make prom-api configurable
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-09-02 19:54:22 +02:00
Peter Sabaini 4a81c003d1 Merge pull request #1260 from sabaini/fix/ga-naming
Fix: grafana-agent relation
2024-08-30 14:33:02 +02:00
Peter Sabaini 7e1591c528 Fix: grafana-agent relation 2024-08-30 10:19:14 +02:00
Peter Sabaini f1b1c3a1a9 COS integration testing: improve COS model lookup
Also, raise an error instead of skipping the test if no COS model found
2024-08-28 18:55:39 +02:00
Peter Sabaini 8dec5eccf8 Fix import path
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-08-22 17:15:34 +02:00
Peter Sabaini 23862098cc Refactor: move the COS integration to separate module
Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-08-20 15:29:32 +02:00
Luciano Lo Giudice fd160e8205 Fix function calls 2024-08-14 14:41:52 -03:00
Luciano Lo Giudice fcdcc81c64 Use the new-style fields in action object for RBD tests 2024-08-14 13:22:59 -03:00
Peter Sabaini ab347e1c12 Add COS integration testing for ceph-mon
Test retrieval of metrics, alert rules and dashboards

Signed-off-by: Peter Sabaini <peter.sabaini@canonical.com>
2024-08-12 18:52:30 +02:00
Alex Kavanagh a10602489e Merge pull request #1217 from UtkarshBhatthere/fix/CephRgwApacheSsl
Fixes endpoint discovery for RGW application under test
2024-06-18 12:41:21 +01:00
Utkarsh Bhatt 21b51a467f Fixes endpoint discovery
The zaza test used the default endpoint as exposed by
the unit to perform object IO, however, SSL is configured
for PUBLIC,INTERNAL, and ADMIN bindings.

Signed-off-by: Utkarsh Bhatt <utkarsh.bhatt@canonical.com>
2024-06-12 18:42:15 +05:30
Peter Sabaini d4f7b085aa Merge pull request #1193 from ionutbalutoiu/ceph-rgw-multisite-sync-policies
Add integration test for Ceph RGW multisite sync policies feature
2024-05-31 12:10:54 +02:00
Luciano Lo Giudice 5541905935 Fix test for ceph-fs key rotation
The ceph-fs charm sometimes creates an entity called 'mds.None'.
This is probably a bug, but in the meantime, we filter it out
in the key rotation test class.
2024-05-13 06:12:15 -03:00
Luciano Lo Giudice 239d028fdc Increase retries 2024-05-06 20:26:21 -03:00
Luciano Lo Giudice 817534af7e Fix tenacity usage 2024-05-06 18:00:12 -03:00
Luciano Lo Giudice 9d931d373e Sleep instead of retrying 2024-05-06 15:09:31 -03:00
Luciano Lo Giudice 3cf2ed6d15 Retry on key rotation 2024-05-06 12:24:02 -03:00
Luciano Lo Giudice 091afbe0a1 Merge remote-tracking branch 'canonical/master' into osd-key-rotate 2024-05-06 12:15:21 -03:00
Luciano Lo Giudice 987e048c11 Fix fetching of FS service 2024-04-25 19:39:52 -03:00
Luciano Lo Giudice 6f87be2b5f Filter master MDS client 2024-04-25 18:18:51 -03:00
Luciano Lo Giudice 08b1e4902f Use a more thorough stategy 2024-04-25 16:13:03 -03:00
Luciano Lo Giudice f8136a6c15 Use a different waiting strategy for ceph-fs tests 2024-04-25 11:30:08 -03:00
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
Luciano Lo Giudice 1ecd7cc9c6 Use specific workload messages for the Ubuntu units 2024-04-24 14:04:29 -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
Luciano Lo Giudice 4296630479 PEP8 change 2024-04-24 11:38:12 -03:00
Luciano Lo Giudice 3bf0ec72b9 Implement ceph-fs key rotation tests
This PR implements tests for key rotation in ceph-fs units. It works
similarly to how RGW tests do.
2024-04-24 11:29:33 -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
Luciano Lo Giudice a15832695c Implement key rotation tests for OSD units
This PR adds OSD tests to the key rotation class for the ceph-mon
charm. It will be tested in the following merge requests:
https://review.opendev.org/c/openstack/charm-ceph-mon/+/915925
https://review.opendev.org/c/openstack/charm-ceph-osd/+/915926
2024-04-22 14:43:46 -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