Commit Graph

2283 Commits

Author SHA1 Message Date
Alex Kavanagh 3bb64912e7 Another silly error - read from string rather that file. 2023-02-21 17:16:40 +00:00
Alex Kavanagh 544d0d5a7c Ensure that the ondisk glance passwords change in the conf file 2023-02-21 16:17:55 +00:00
Alex Kavanagh 4f1b0fc09f Get the password from keystone, not glance for leader-settings. 2023-02-21 15:57:37 +00:00
Alex Kavanagh 120a495f6f Switch sync_deployed to zaza.model 2023-02-21 12:58:45 +00:00
Alex Kavanagh 59632ec6f9 Fix pep8 tests 2023-02-21 12:01:14 +00:00
Alex Kavanagh 7e626bcf86 Test the keystone rotate-service-user-password action
This test, added as part of the default keystone tests, tests that the
service user password can be rotated for the glance application.
2023-02-21 11:53:00 +00:00
coreycb 903ddaa0d5 Merge pull request #996 from freyes/add-tempest-magnum-support
Add tempest magnum support
2023-02-14 16:19:17 -05:00
Felipe Reyes 2cd18b484d Replace assertEquals with assertEqual.
DeprecationWarning: Please use assertEqual instead.
2023-02-14 14:45:20 -03:00
Felipe Reyes 535275750e Add magnum section to tempest.conf template
The magnum section is used to declare configuration specific information
used by magnum-tempest-plugin

The keys used are:

- nic_id, to indicate the external network
- image_id, to indicate the fedora-coreos image to be used
- flavor_id, the flavor id to use when creating clusters
- dns_nameserver, the upstream dns server IP.
- network_driver, the network driver to test (flannel).
- labels, to pass a custom (local) image registry.
- insecure_registry, to mark the custom image registry as http (instead
  of https).
2023-02-14 14:45:20 -03:00
Felipe Reyes fa09a20b4b Add support for Magnum to use different images per release.
OpenStack Magnum relies on specific versions of Fedora CoreOS, this
patch addresses this maintaining a map of images per release according
to the upstream documentation[0]

The images are expected to be stored in the object store pointed out by
TEST_SWIFT_IP[1] environment variable in a container named 'magnum'. A
bash script to upload images can be found at
./zaza/openstack/charm_tests/magnum/upload_fedora_coreos_images.sh

[0] https://docs.openstack.org/magnum/latest/user/index.html#supported-versions
[1] https://github.com/openstack-charmers/zosci-config/pull/262
2023-02-14 14:45:11 -03:00
Felipe Reyes 49cd74e12a Merge pull request #988 from coreycb/antelope
Add lunar and antelope identifiers for OpenStack
2023-02-03 10:08:38 -03:00
Corey Bryant d054d3e695 Add lunar and antelope identifiers for OpenStack 2023-02-02 16:07:08 -05:00
Liam Young 48b6c04fc7 Merge pull request #985 from freyes/bug/2003775
test_300_default_soa_config_option: Change logging statements from debug to info
2023-01-30 13:47:01 +00:00
Felipe Reyes 46b53253db test_300_default_soa_config_option: Change logging statements from debug to info
This test is unstable, increasing the logging from debug to info allows
to the CI runs to expose more information and understand what part of
the test is staying blocked and leading the CI job to time out.

Related-Bug: http://pad.lv/2003775
2023-01-30 10:31:48 -03:00
coreycb a381f910c3 Merge pull request #983 from openstack-charmers/bug/ceph-tests-without-openstack
Migrate several Ceph test cases to not use the openstack base
2023-01-23 14:09:20 -05:00
Chris MacNaughton 1a529276df Migrate several Ceph test cases to not use the openstack base 2023-01-23 09:43:23 -05:00
Bas de Bruijne 9fb488efef Update series upgrade automation (#952)
* update series upgrade test

* bug fixes

* bug fixes
2023-01-23 12:39:10 +00:00
Felipe Reyes 6381790216 Merge pull request #982 from openstack-charmers/revert-974-get-csr-force
Revert "Test get-csr with existing CA"
2023-01-16 19:59:18 -03:00
Liam Young 33edff6360 Revert "Test get-csr with existing CA (#974)"
This reverts commit 58f2b88365.
2023-01-16 20:40:32 +00:00
Felipe Reyes 8feaf396bd Merge pull request #980 from Basdbruijne/sqa_integration
Make network, images, and keypair names envars
2023-01-16 12:12:51 -03:00
Bas de Bruijne 817500a39d add all envvars 2023-01-16 15:06:03 +00:00
Bas de Bruijne a9006dc5d7 document added envvars in the REAME 2023-01-16 14:42:50 +00:00
Bas de Bruijne feb667206b make provider-router name variable 2023-01-11 15:39:15 +00:00
Liam Young bf2273c59a Add retry logic around Trilio CRUD commands (#770) 2023-01-11 15:36:59 +00:00
Bas de Bruijne d3c9be2f84 make network and image names variable 2023-01-11 15:34:02 +00:00
Liam Young 58f2b88365 Test get-csr with existing CA (#974)
Check that if an existing CA is present then get-csr requires the
force flag. Test using new action name regenerate-intermediate-ca
2023-01-11 15:19:40 +00:00
coreycb 41fbc20583 Add kinetic support (#977) 2023-01-11 15:18:01 +00:00
Felipe Reyes 7367cdc5e9 Merge pull request #979 from ajkavanagh/bug/2002156/rabbitmq-intermittent-tests
Fix race in test 408 for rabbitmq
2023-01-11 11:44:54 -03:00
Alex Kavanagh 22e0311243 Try to get tests to pass with assertions 2023-01-11 13:48:29 +00:00
Alex Kavanagh b53c782ed0 Fix bad asserting in Series Upgrade test 2023-01-11 13:01:32 +00:00
Alex Kavanagh 0383c97a82 Try to get GH CI to run
* Remove added libyaml-dev - it's already installed
* Re pin PyYAML to 3.9 rather than 3.10
2023-01-11 12:55:53 +00:00
Alex Kavanagh d905f70468 Add libyaml-dev to bin requirements for the GH testing 2023-01-11 12:46:46 +00:00
Alex Kavanagh f96e41f45a Relax pbr constraint to allow pip to resolve 2023-01-06 20:33:13 +00:00
Alex Kavanagh 9ad7e55a5f Fix race in test 408 for rabbitmq
There is a race in the 408 test for rabbitmq where the config-change to
enable ssl causes a leader-settings-changed hook in the non-leader units
which results in a rabbitmq service restart.  This can happen at exactly
the same time as the test attempts to establish a connection with the
that unit. This patch retries the connection attempt.

Note that this may only be a partial fix as it's possible that a restart
will happen just after the connection is made, which would then result
in a test failure.

Related-Bug: LP#2002156
2023-01-06 20:12:08 +00:00
Frode Nordahl 4f27f95f68 Merge pull request #933 from mkalcok/ovn-downscale
Tests for ovn-central downscaling and cluster status
2022-11-28 12:02:52 +01:00
Martin Kalcok dadac36ccf Determine OVN leader/follower status based on cluster-status action. 2022-11-22 14:30:10 +01:00
Martin Kalcok 574d8d91d2 Merge remote-tracking branch 'upstream/master' into ovn-downscale 2022-11-22 12:59:49 +01:00
coreycb 0480f72056 Merge pull request #976 from openstack-charmers/bug/designate-tempest
Add new required dns.nameservers config
2022-11-21 09:50:29 -05:00
Chris MacNaughton d0193e3817 Add new required dns.nameservers config 2022-11-21 14:31:24 +00:00
Felipe Reyes d083dde10c Retry check of service IP configured (#970)
There are scenarios where the config-changed hook can complete, yet the
service IP get configured many seconds after, because a relation-changed
hook execution needs to be triggered on the hacluster side of the
relation.

This change adds a retry to the check (10 times with a 2 seconds wait
time).

This issue was found at the gate https://review.opendev.org/c/openstack/charm-designate-bind/+/861417
2022-10-28 16:30:26 +01:00
Peter Sabaini 74bca90a6f Ceph: also check ceph-mgr (#973)
In the ceph lowlevel test, also check for ceph-mgr process and
service.
2022-10-27 13:46:08 +02:00
coreycb c8ae6cdc55 Add retry decorator to masakari segment creation (#972)
The create_segment() function is often failing in the gate
due to being unable to establish a connection to the masakari
endpoint. This will allow some more time for the endpoint to
become available when this error occurs.
2022-10-27 13:19:34 +02:00
Liam Young 9928a6825d Merge pull request #859 from jneo8/test/mysql-prometheus-mysql-exporter
Add tests for mysql prometheus exporter
2022-10-26 15:32:22 +01:00
jneo8 db21233890 test(zaza/openstack/charm_tests/mysql/test_prometheus_mysql_exporter.py): Add HTTP metrics query check 2022-10-26 22:13:12 +08:00
jneo8 f079b9cddb fix(zaza/openstack/charm_tests/mysql/test_prometheus_mysql_exporter.py): Fix snap naming and configure to fit new snap release 2022-10-26 22:13:12 +08:00
jneo8 f39ea121a4 style(zaza/openstack/charm_tests/mysql/test_prometheus_mysql_exporter.py): Update docstring style 2022-10-26 22:13:12 +08:00
jneo8 788fd77137 test(zaza/openstack/charm_tests/mysql/test_prometheus_mysql_exporter.py): Add tests for mysql prometheus exporter 2022-10-26 22:13:12 +08:00
coreycb cbabcf1469 Merge pull request #960 from freyes/migrate-to-pytest
Migrate from nosetest to pytest
2022-10-25 15:00:06 -04:00
Felipe Reyes ad215019e4 Unpin PyYAML for python>=3.10
PyYAML<5.1 fails with the error below on Python 3.10

    AttributeError: module 'collections' has no attribute 'Hashable'

The fix got available by this commit
https://github.com/yaml/pyyaml/commit/9959328b41ee577c6f14e3a0184b07dd0ecadb8c
2022-10-25 15:41:25 -03:00
Felipe Reyes 7b65b73010 Migrate from nosetest to pytest
nosetest doesn't support python 3.10 and over the years the python
community has been settling on pytest as test runner, this change
introduces pytest and adds py3.10 to the gh workflow testing matrix.
2022-10-25 15:17:50 -03:00