Commit Graph

1677 Commits

Author SHA1 Message Date
Edward Hope-Morley 84adfdbae0 Try cached tempest octavia test_server.bin 2024-09-30 15:38:13 +01:00
Edward Hope-Morley b1690d40ae Skip noble image sync for octavia tests
Noble was recently added but is not needed and is tipping
glance/ceph storage usage over the limit in release tests.
2024-09-27 17:27:41 +01:00
Nicholas Njihia 3c4482b732 Add Octavia volume-based Amphora test
Enable Amphora to run instances booted from
volume by flipping the config option
`enable-volume-based-amphora` to True and
checking volumes attached to the amphora
instances.

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/810567
Related-Bug: https://launchpad.net/bugs/1901732
2024-09-22 21:38:58 +01:00
Alex Kavanagh 32bcda1cc2 Add octavia to UPGRADE_SERVICES 2024-09-19 11:10:35 +01: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
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
Felipe Reyes a0ec1cddab Fix formatting in [magnum].labels
magnum-tempest-plugin since commit[0] is using ast.literal_eval() to
parse the value set in [magnum].labels, so the formatting needs to be a
Python dict.

This is an example of how the string needs to look like to make the
parser happy:

>>> import ast
>>> ast.literal_eval('{"a": "1:1"}')
{'a': '1:1'}

[0] https://opendev.org/openstack/magnum-tempest-plugin/commit/2fe075ae789e06ec58d37dc6f41382e2b64a8343#diff-8e9d4d1beb73d502d61e14564c76d54acf855bf8
2024-07-30 12:14:38 -04:00
Felipe Reyes cb802733e6 Fix [magnum].label formatting
Fixes the formatting of the labels configuration key, error raised with
the current formatting:

    Traceback (most recent call last):
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/tests/api/base.py", line 39, in setUpClass
    config.Config.setUp()
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 187, in setUp
    cls.set_labels(config)
      File "/mnt/git/charmed-openstack-tester/.tox/func-target/lib/python3.8/site-packages/magnum_tempest_plugin/common/config.py", line 162, in set_labels
    cls.labels = ast.literal_eval(CONF.magnum.labels)
      File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
      File "/usr/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
      File "<unknown>", line 1
        container_infra_prefix:10.245.164.190:5000
                              ^
    SyntaxError: invalid syntax
2024-07-29 15:04:04 -04:00
Felipe Reyes b4964ce548 Merge pull request #1238 from openstack-charmers/retrier-fixes-bobcat
[bobcat] ObjectRetrierWraps fixes (cherry-pick #1234)
2024-07-11 08:47:28 -07:00
Billy Olsen e67dca5dc5 Merge pull request #1237 from openstack-charmers/retrier-fixes-master
[main] ObjectRetrierWraps fixes (cherry-pick #1234)
2024-07-03 00:03:57 +01:00
Alex Kavanagh 7e6aba6c3f Reduce ObjectRetrierWraps logging noise during normal use 2024-07-02 11:00:59 +01:00
Alex Kavanagh d4cc719643 Add more retries to allow manila backup restore to complete
Due to slow 1GiB networking in ServerStack the restore often exceeds the
retries.  Increase them to enable the restore to succeed.
2024-07-02 11:00:59 +01:00
Alex Kavanagh fe1a6a550c Double Cinder backup restore time
This accounts for slow ServerStack when using ceph in the model.
2024-07-02 11:00:59 +01:00
Alex Kavanagh 925540b457 Fix ObjectRetrierWraps recursive wrapping
In order to ensure that an object that contains other objects that are
called (e.g. the VolumeManager object on the Cinder client object), the
ObjectRetrierWraps class needs to more agressively wrap non builtin
classes.
2024-07-02 11:00:59 +01:00
Alex Kavanagh 39b1f43b98 Re-enable test 410 for cinder backups
This is to verify that the retries really do work.
2024-07-02 11:00:59 +01:00
Alex Kavanagh 3f18031cd2 Add additional debug for ObjectRetrier
It wasn't capturing member variables on the wrapped object that would
then be used to make the call; thus, wrap those.

This also disables (temporarily) the long running cinder backup test
deletion whilst checking whether retries are the problem.
2024-07-02 11:00:59 +01:00
Alex Kavanagh af66125944 Add ObjectRetrier to CinderaBackupTests
This adds the auto-retrier to the cinder client to get past race hazards
and other transient errors.
2024-07-02 11:00:59 +01:00
Alex Kavanagh 12c69fdca3 Reduce ObjectRetrierWraps logging noise during normal use 2024-07-02 10:50:54 +01:00
Alex Kavanagh 0bf4e9a558 Add more retries to allow manila backup restore to complete
Due to slow 1GiB networking in ServerStack the restore often exceeds the
retries.  Increase them to enable the restore to succeed.
2024-07-02 10:50:54 +01:00
Alex Kavanagh d71c9b3545 Double Cinder backup restore time
This accounts for slow ServerStack when using ceph in the model.
2024-07-02 10:50:54 +01:00
Alex Kavanagh 1f0808e238 Fix ObjectRetrierWraps recursive wrapping
In order to ensure that an object that contains other objects that are
called (e.g. the VolumeManager object on the Cinder client object), the
ObjectRetrierWraps class needs to more agressively wrap non builtin
classes.
2024-07-02 10:50:54 +01:00
Alex Kavanagh edf55189fb Re-enable test 410 for cinder backups
This is to verify that the retries really do work.
2024-07-02 10:50:54 +01:00
Alex Kavanagh 704059a996 Add additional debug for ObjectRetrier
It wasn't capturing member variables on the wrapped object that would
then be used to make the call; thus, wrap those.

This also disables (temporarily) the long running cinder backup test
deletion whilst checking whether retries are the problem.
2024-07-02 10:50:54 +01:00
Alex Kavanagh 09f12f6eda Add ObjectRetrier to CinderaBackupTests
This adds the auto-retrier to the cinder client to get past race hazards
and other transient errors.
2024-07-02 10:50:54 +01:00
Jadon Naas 3a6a3f8a63 Added required config option idp_id to Keystone OpenIDC charm
This change makes z-o-t pass in the value of idp_id when configuring the Keystone OpenIDC charm during testing.
2024-06-25 10:34:24 -04:00
Myles Penner bca7a935fc Add class for keystone audit middleware testing
Added general class for testing keystone audit middleware
functionality in charms. Tests correct rendering of
api-paste.ini file and allows charms without an api-paste.ini
file to skip the tests.

Example usage with charm Heat:

tests/tests.yaml

tests:
  - zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest

tests_options:
  audit-middleware:
    service: heat

(cherry picked from commit ff5cdf51e6)
2024-06-20 13:17:54 -07:00
Myles Penner 4a956e0362 Merge branch 'master' into master 2024-06-19 14:53:39 -07:00
Myles Penner ff5cdf51e6 Add class for keystone audit middleware testing
Added general class for testing keystone audit middleware
functionality in charms. Tests correct rendering of
api-paste.ini file and allows charms without an api-paste.ini
file to skip the tests.

Example usage with charm Heat:

tests/tests.yaml

tests:
  - zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest

tests_options:
  audit-middleware:
    service: heat
2024-06-19 11:18:38 -07:00
Alex Kavanagh 61ac4bc8de Revert "Adding fixing broken configuration test for mysql-router" 2024-06-18 18:40:00 +01: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
Seyeong Kim 67aca7e44e Adding fixing broken configuration test for mysql-router
(cherry picked from commit 0a88897966)
2024-06-14 00:07:45 +00: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
Seyeong Kim 21f782dd91 Merge branch 'openstack-charmers:master' into fixing_broken_conf 2024-06-12 12:36:20 +09:00
Felipe Reyes 1a06e12b76 Merge pull request #1212 from MylesJP/master
Add class for keystone audit middleware testing
2024-06-06 15:05:45 -07:00
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
Alex Kavanagh d83e01f862 Remove designate-agent for caracal+ testing
The designate-agent service was removed at caracal. This patch removes
the designate-agent from the list of services that designate supports so
that the pause/resume testing works appropriately.
2024-05-30 10:56:37 +01:00
Myles Penner 2ddde4307e Remove redundant cinder tests 2024-05-29 15:11:20 -07:00
Myles Penner 3af8d41067 Fix dictionary lookup method 2024-05-29 08:38:49 -07:00
Myles Penner 38a7c9b0c2 Make corrections as per review comments 2024-05-28 10:57:47 -07:00
Myles Penner df3858d0d1 Add fix for when service and app name differ 2024-05-27 10:11:13 -07:00
Myles Penner 2a7c49b498 Add class for keystone audit middleware testing
Added general class for testing keystone audit middleware
functionality in charms. Tests correct rendering of
api-paste.ini file.

Example usage with charm Heat:

tests/tests.yaml

tests:
  - zaza.openstack.charm_tests.audit.tests.KeystoneAuditMiddlewareTest

tests_options:
  audit-middleware:
    service: heat
2024-05-24 15:27:39 -07:00
Peter Sabaini 79bc345806 Merge pull request #1208 from lmlg/fs-key-rotation-fix
Fix test for ceph-fs key rotation
2024-05-16 14:50:59 +02:00