Commit Graph

159 Commits

Author SHA1 Message Date
Felipe Reyes 8beeab1397 Drop 'source' config key override.
Drop configuration key 'source' override in rabbitmq-server and
mysql-innodb-cluster applications.

Add bindep.txt to install package dependencies needed to run unit tests.

Related-Bug: #1991528
Change-Id: I345e3bb7be7492286daf9e5ab36506915f3daab9
2023-05-16 19:37:13 +00:00
Alex Kavanagh 42714adfde Add service user password rotation feature
This patch adds the service user rotation feature, which provides two
actions:

 - list-service-usernames
 - rotate-service-user-password

The first lists the possible usernames that can be rotated.  The
second action rotates the service, and is tested via the func-test-pr.

Change-Id: Ia94ab3d54cd8a59e9ba5005b88d3ec1ff87019b1
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1029
2023-05-05 10:17:01 +02:00
Felipe Reyes f22bb10257 Update bundles to use yoga
This change reconfigures the bundles to use OpenStack yoga, they are the
last version that support Focal and Jammy.

Change-Id: Ia54bfacee6635c1e85a0c97e22bc2a5974bda7d1
Closes-Bug: #1991528
2022-10-17 22:16:29 -03:00
Felipe Reyes 24d557ffdc Fix jammy-yoga bundle.
This change fixes the jammy-yoga bundle placement directives.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/793
Related-Bug: #1968008
Change-Id: Icc3c4918a877a7c43c049f412a85a23c5dbcbd95
2022-10-18 01:07:35 +00:00
Alex Kavanagh fe49d91046 Revert "Add Kinetic and Zed support"
This reverts commit c0beec6fa2.

Reason for revert: I think this should be reverted as it removes focal support from the rabbitmq-server master, and thus this won't cherry-pick cleanly to the stable/jammy channel for the 3.9 track.

Change-Id: Iebab77fcc0cee31af66980c2d3be334fffe06222
2022-08-31 11:42:29 +00:00
Corey Bryant c0beec6fa2 Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I93da9ce52bed2b3e8a467491d2a61bfd2ed4ea7d
2022-08-26 18:40:43 +00:00
Billy Olsen 370a6315ae Drop nagios/nrpe from Jammy test bundles
The nrpe charm doesn't support jammy yet, which is a problem because it
is a subordinate charm. Drop it from the test bundles for the time being
and when this is resolved, it will be added back in.

Change-Id: Id54c0d145fb111914a38e9ed5776712ec6a92f87
2022-04-07 06:25:35 -07:00
James Page b2136a150e Updates for jammy enablement
- charmcraft: build-on 20.04 -> run-on 20.04/22.04 [*archs]
- Refresh tox targets
- Drop impish bundles and OSCI testing
- Add jammy metadata

Change-Id: Ib9e5c7718ffaf28070fd9439f46453d7cf2333b5
2022-04-05 14:13:01 +01:00
Alex Kavanagh b0b51cc6ea Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I3cb1f519e8f1d6765b41751994633be73e5bdea5
2022-02-15 17:06:59 +00:00
Alex Kavanagh 009ef87594 Migrate charm to charmhub latest/edge track
Change-Id: I04094f4392ba1057202fa3f4d58720bc9c14048b
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-01-29 10:25:46 -07:00
Corey Bryant 9e648f9b5d Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: If003131e8a1bde58d90b1a3b1e47801bbb044335
2021-11-17 15:15:35 -05:00
Alex Kavanagh bfcc4693b9 Add xena bundles
- add non-voting focal-xena bundle (unused in gate)
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Ic552eff1daa9739ad7fd46af4f7c143f0c9062ea
2021-09-27 20:08:29 +01:00
Billy Olsen fd8d018bab Move cron max file age calculation to rabbit_utils
The check_rabbitmq_queues nrpe check accesses the cron file created
for running collect stats job. This is done in order to determine if
the stats are too old and an alert should be raised. The nagios user
does not have access to read the cron job when running in a hardened
environment where /etc/cron.d is not readable.

This change refactors this logic to move the calculation of maximum
age for a stats file from the check_rabbitmq_queues script and into
the rabbit_utils code where it is generating the nrpe configuration.
A new (optional) parameter is added to the check_rabbitmq_queues
script to accept the maximum age in seconds a file can last be
modified.

This change also removes the trusty support in hooks/install and
hooks/upgrade-charm as the rabbit_utils.py file needs to import a
dependency which is installed by the scripts. It is cleaned up to make
sure the croniter package is always installed on install or upgrade.

Change-Id: If948fc921ee0b63682946c7cc879ac50e971e588
Closes-Bug: #1940495
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-08-19 15:12:17 +02:00
Aurelien Lourot 19a1f3d828 Add Hirsute to the test gate
Change-Id: Ife8afbfa2f7ddec713b875f2938b3bd7aca952c4
2021-08-16 15:18:11 +02:00
Alex Kavanagh 453b8e979b Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync.

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: I7c4e4bfed4b61dd19bcab06f39a2d54a1d74f237
2021-05-06 10:27:54 +00:00
Liam Young 81c33953f9 Implementation of deferred restarts
Add deferred event actions and config.

Change-Id: Ifbb15c0c04117a5a98672b2af4fd7203dae9a18e
2021-04-09 21:11:30 +00:00
Liam Young d415d619ba Reduce gate bundles to track Ubuntu series only
Since rabbitmq-server is not usually in the cloud archive it does
not make sense to duplicate tests with different OpenStack releases.

Change-Id: I75a79fd24dd80a8340126f65e65bd9b7d0fa35d8
2021-03-26 12:46:20 +00:00
Billy Olsen 612eb5cedc Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: If9a847f51552f4d71d4e31c8ca555631121ab328
2021-02-19 17:04:42 -07:00
Aurelien Lourot 46c3963c93 Add Groovy to the test gate
Change-Id: If5e7cb9d828f4c8cfb62a908f872aac3b2cc20a9
2020-11-05 12:54:26 +01:00
Aurelien Lourot 38015e5c79 Add focal-victoria to the test gate
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/409
Change-Id: I37f59702f50a45d675be8fb5eefa6642d991b933
2020-09-08 12:30:19 +02:00
Aurelien Lourot ba5929e733 Fix blocked 'nrpe' after test bundle deployment
Since https://git.launchpad.net/charm-nrpe/commit/?id=f7aa963d nrpe
will remain in blocked state if not related to a nagios application.

Change-Id: I04eabafcbb1000991b6ee3c8e7bc481903c3fe35
2020-08-29 12:12:39 +02:00
Aurelien Lourot 591acf638d Add Victoria test bundles
Change-Id: I0d6ff8d5723d5934e62a2a1b48dea09adbc04a4e
2020-07-15 10:22:03 +02:00
Alex Kavanagh 6a16f8a667 Enable focal ussuri with functional tests
The patchset adds ussuri to bionic and focal-ussuri tests.  This depends
on the linked patch below that adds initial focal support to the charm.

Depends-On: Ia239b7c2f0ed2383e220cf0fa4ade443149a3b32
Change-Id: Ib65896cd433a2108a154e18cae6f0089b5e3f44a
2020-04-02 14:38:41 +01:00
Alex Kavanagh 8ddb700817 Remove admin-token from functional test bundles
Due to the recent work in [1] the tests need updating to remove the
admin-token from the keystone options in the bundles.

[1] https://review.opendev.org/#/q/topic:use-bootstrap+(status:open+OR+status:merged)

Change-Id: I61b3cbcd0c2e11bba6d6bba4cbcbea90b0ca6b73
2020-03-23 16:43:04 +00:00
Alex Kavanagh 76af82b8c4 Remove disco support from the charm
Change-Id: I27742bf018d968c2917f6ed1cf5fb903a166254c
2020-02-18 18:16:10 +00:00
Corey Bryant 1345740b01 Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: I5172a4f6c2c3570010633ff61cb463fbc5f0a800
2019-10-24 13:39:29 -04:00
Edin Sarajlic 466ab24557 Port Charm RabbitMQ func tests from Amulet to Zaza
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/60

Change-Id: I876a90ce58c89e4a760dad88d5a2381d60171037
Closes-Bug: #1828424
2019-10-10 13:05:09 +11:00
Ryan Beisner d07161c9a9
Sync charm/ceph helpers, tox, and requirements
Change-Id: I1bd9db2cefcdefc6e04d0740967696552465d00f
2019-09-30 22:42:00 -05:00
Chris MacNaughton 3d70d98bca Sync charm-helpers
Change-Id: I6ca0506f02cc399f983510313c2d0a712efd0ef7
2019-07-16 07:06:03 +00:00
Frode Nordahl 9ffa5530e7
Enable bionic/stein and disco/stein functional tests
Change-Id: Id975a05880c82af919149d356b6d5f20f9659c9e
2019-04-08 12:39:56 +02:00
Zuul b5e72994f2 Merge "Added list-unconsumed-queues action" 2019-02-28 15:40:19 +00:00
Drew Freiberger 6672c48136 Added list-unconsumed-queues action
Add status inquiry list-unconsumed-queues action to allow operators to
determine which queues are not being consumed in each RMQ vhost. Useful for
troubleshooting message queue volume alerts.

Closes-Bug: 1767437
Change-Id: Icdd0b8c4db607701bc5e33d86e263b6a5f1bb7f5
2019-02-27 09:36:13 +01:00
Ryan Beisner e90d2f3e9f
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I79424c8f6ea2882d16767fec87998edbb04c9254
2019-02-06 14:50:12 -06:00
Ryan Beisner f4ed96ce54 Update requirements
Also remove tests/charm-helpers if present, in favor
of the pip-installed charm-helpers.

Change-Id: Iad38f8866195fde99121b40d54276b8de4397883
2018-10-03 13:11:49 -05:00
Ryan Beisner da070260a3 Add cosmic
Add a tactical change which is already merged into charm-helpers.

This needs to go into all charms to solve the chicken:egg issue
where cosmic is untestable until this change exists.

Reference:

4835c6c167

Change-Id: I8d41b4c88ad35c7d3429885c406d0b24e0a908e3
2018-09-19 13:33:39 +02:00
Ryan Beisner 80fb5c3a61 Update functional test definitions
Change-Id: I7a9325cf5000b110cecac3c5cbef2d23989a1fd2
2018-08-27 18:18:05 -05:00
Zuul 720b9d8138 Merge "Avoid package upgrade collisions" 2018-07-23 17:30:51 +00:00
David Ames 86edf1e5d8 Avoid package upgrade collisions
During upgrade to a new cloud archive and a new rabbitmq-server
package, the package update will stop the rabbitmq service. If two or
more units do this near the same time the services will fail to restart.

This change adds the cluster_wait function before a package upgrade to
avoid collisions.

Fix relation_get for cluster_with causing extraneous hooks to execute.
Fix nagios stats collection logic.

Change-Id: I8d9aa38d917583fa45b5570eca9a78c813303e2b
Closes-Bug: #1778829
2018-07-20 11:58:46 -07:00
Ryan Beisner dab677e8cd Update functional test definitions
Change-Id: I10175d2a976c3cce130d49e231c5cb1f17712cf4
2018-07-18 18:38:11 -04:00
Chris MacNaughton 37087ad4d9 Sync charm-helpers to ensure Rocky support
Change-Id: I177de3159c5dd70ef461905227f1f964bd7a11fc
2018-07-13 15:59:28 +02:00
Ryan Beisner dcbc4304f0 Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: I6f24a3122c42149348c73661288fb0aba2b939dd
2018-07-11 14:07:39 -05:00
Zuul 18ae78ed02 Merge "Enable Bionic as a gate test" 2018-05-14 11:12:02 +00:00
Ryan Beisner fcafc493aa Remove deprecated functional test targets
Change-Id: Ia8a2a0a9dd67848926212588edd95ab19c56b408
2018-05-09 16:37:51 -05:00
David Ames e6ac62e5a0 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ic4b65961f31e89f0912c30128971f85df95d395f
2018-05-09 09:34:48 -07:00
Zuul 7324a8f3af Merge "Add action to check rmq queues" 2018-03-30 15:05:49 +00:00
James Page a649fb15de Enable xenial/queens functional tests
Enable the xenial/queens gate test; as the tests don't actually
query the OpenStack API's, no test changes are required.

Change-Id: Idb27ee82917dcda27bece03b42127745de61df62
2018-02-28 09:52:31 +00:00
Jill Rouleau 58b8ca09fc Add action to check rmq queues
Report back to the user any queues with greater than N messages.

Change-Id: Ia39c05a4fe0ce74682af24ffe3d17d3006001b62
Closes-Bug: 1716981
2018-02-26 09:46:00 -07:00
Ryan Beisner 33e0d1d74b Sync charm-helpers
Change-Id: Ib71ddbcc39e32700bfb6b7b39bda03e2da42ef8f
2018-02-21 14:10:42 -06:00
Ryan Beisner dcfe275529 Sync charm-helpers
Notable issues resolved:

openstack_upgrade_available() broken for swift
https://bugs.launchpad.net/charm-swift-proxy/+bug/1743847

haproxy context doesn't consider bindings
https://bugs.launchpad.net/charm-helpers/+bug/1735421

regression in haproxy check
https://bugs.launchpad.net/charm-helpers/+bug/1743287

Change-Id: I6e49bd7ef373a3a4ca958a3495cce5a41e5dd973
2018-01-19 12:11:00 +00:00
Ryan Beisner 039e22feb9 Add Bionic and remove Zesty series and tests
Bionic, being the next LTS, is important to enable for dev
and test as early as possible ahead of 18.02.

Zesty goes EOL in Jan 2018. The next stable charms release (18.02)
will not provide Zesty series support, as it was an interim
(non-LTS) release.

Change-Id: If2923103254a4816e188407379307425020a931d
2017-12-05 05:30:16 +00:00