Commit Graph

2310 Commits

Author SHA1 Message Date
Peter Sabaini
ef62272bbf Unblock after pristine status (#1025)
When a charm has a non-pristine status, it should leave the
previously-set blocked state (LP #1988088) if there are no
non-pristine disks

Also: seeing some spurious test failures due to timeouts
waiting on disk removal -- wait a bit longer
2023-03-21 19:26:15 +00:00
Felipe Reyes
296c06d8aa Merge pull request #1024 from coreycb/kerberos
Ensure keystone endpoint is available
2023-03-14 15:32:56 -03:00
Felipe Reyes
db59d3abdb Merge pull request #1023 from coreycb/ldap
Ensure keystone endpoint is available
2023-03-14 15:31:20 -03:00
Corey Bryant
d668106938 Ensure keystone endpoint is available
The keystone-kerberos test setup is failing often due to accessing
the keystone endpoint before it is available. Adding tenacity
retries here to deal with this.
2023-03-14 17:21:25 +00:00
Corey Bryant
80b10a295c Ensure keystone endpoint is available
The keystone-ldap tests are failing often due to accessing
the keystone endpoint before it is available. Adding tenacity
retries here to deal with this.
2023-03-14 13:03:03 +00:00
James Page
c10969d7ee Merge pull request #1022 from openstack-charmers/bug/do-not-require-extra-disks
Requiring that a bundle defines more than one OSD is unecessary
2023-03-13 13:43:42 +00:00
Chris MacNaughton
f5cfd59a80 Requiring that a bundle defines more than one OSD is unecessary
While the disk replacement rests are good for the OSD charm,
and it's useful to have more disks by default in that case,
requiring extra disk for all applications that tun the Ceph tests
is an unreasonable burden, requiring additional changed just
to accommodate the OSD charm tests.

This change updates to check if we have enough disks available
before running the disk replacement tests.
2023-03-10 14:43:26 -05:00
Utkarsh Bhatt
cd0ae7c0d8 Replaced Loopback with block device from bundle. (#989) 2023-03-10 13:05:47 +00:00
hemanthnakkina
578402e38f Merge pull request #1018 from gnuoy/k8s-tempest-scale-test-all
K8s tempest scale test all
2023-03-09 16:09:50 +05:30
Liam Young
e721546348 Merge branch 'openstack-charmers:master' into k8s-tempest-scale-test-all 2023-03-09 10:11:40 +00:00
Felipe Reyes
5bcf1bb632 Merge pull request #1017 from gnuoy/k8s-tempest-scale-test
Add test to scale application out and in
2023-03-08 12:02:16 -03:00
Liam Young
e684fc2caf Lint fixes 2023-03-08 13:52:01 +00:00
Liam Young
2a393aa399 Fix typo in placement test class name 2023-03-08 13:52:01 +00:00
Liam Young
fe62f913fd Add tempest k8s scale test for remaining services 2023-03-08 13:52:01 +00:00
Liam Young
4001604e08 Fix lint 2023-03-08 13:51:39 +00:00
Liam Young
053200096c Warning and NotImplementedError if application_name missing 2023-03-08 13:26:14 +00:00
Liam Young
f806b2aa7a Add test to scale application out and in
Add test that scales an application out and in and checks each
stage with tempest.
2023-03-07 17:04:20 +00:00
Luciano Lo Giudice
1e12a7a6a1 This fixes flakyness with iscsi tests. There was a previous fix that
did mostly the same, but this PR makes it more similar to what we
have pending for the stable branches.

This PR is being tested in this gerrit patchset:
https://review.opendev.org/c/openstack/charm-ceph-iscsi/+/871154
2023-03-03 13:37:21 -03:00
Felipe Reyes
4c414c25d0 Merge pull request #1005 from ajkavanagh/feature/test-rotate-service-user-password
Test the keystone rotate-service-user-password action
2023-02-28 15:30:32 -03:00
coreycb
f5f420a1a7 Merge pull request #1014 from freyes/bug/1972730
Skip test_930_scaleback on crmsh-4.4.0-1ubuntu1
2023-02-28 11:48:47 -05:00
James Page
7afafd9b5c Merge pull request #1015 from hemanthnakkina/unpin_oscclients
Unpin python-glanceclient
2023-02-28 13:04:10 +00:00
Hemanth Nakkina
49598d809d Unpin python-glanceclient
Recent changes in tempest [1][2] requires jsonschema 4.16.0
Without jsonschema 4.16.0, tempest cli commands are not
loaded. But there is a conflict with warlock package used
by python-glanceclient 2.17.1.

Unpin python-glanceclient to use the latest version further
allowing to install latest warlock and jsonschema.

[1] https://review.opendev.org/c/openstack/tempest/+/875264
[2] https://bugs.launchpad.net/tempest/+bug/2008490/comments/3
2023-02-28 17:37:38 +05:30
Felipe Reyes
a81376183f Skip test_930_scaleback on crmsh-4.4.0-1ubuntu1
The crmsh package available in kinetic fails to put a cluster node in
maintenance mode, this is part of the scaleback process, more details on
the failure available at the related bug.

This change introduces a new decorator skipVersion() that allows to
provide a list of package versions with an operation flag on how dpkg
should compare the version(s).

The test HaclusterTest.test_930_scaleback() is disabled when running
crmsh-4.4.0-1ubuntu1, at the moment this would be kinetic, although if
any new package gets released this test will be re-enabled automatically
allowing us catch early if the test got fixed or not.

Related-Bug: http://pad.lv/1972730
2023-02-27 15:36:04 -03:00
Alex Kavanagh
eb4224284f Fix pep8 error in .../keystone/tests.py 2023-02-22 17:05:01 +00:00
Alex Kavanagh
d19a540641 Fix mistake in which section to use for password 2023-02-21 18:38:00 +00:00
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
e6940c6cce Merge pull request #997 from freyes/issue/946
Retry when checking ceph pool compression mode.
2023-02-21 12:45:08 +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
Felipe Reyes
618fb7b6e9 Retry when checking ceph pool compression mode.
The compression mode after it's set via config-changed might take a
while to fully propagate to the whole cluster, hence the hook may be
done before the cluster is fully configured with the new compression
mode. This is more noticeable in the gate when there are many jobs
running in parallel.

This patch modes the check to its own method wrapped with a
tenacity.retry decorator to make the test more robust.

Closes #946
2023-02-20 11:31:45 -03: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