Commit Graph

155 Commits

Author SHA1 Message Date
Luciano Lo Giudice 0572504230 Implement the 'rotate-key' action for managers
This patchset implements key rotation for managers only. The user
can specified either the full entity name (i.e: 'mgr.XXXX') or
simply 'mgr', which stands for the local manager.

After the entity's directory is located, a new pending key is
generated, the keyring file is mutated to include the new key and
then replaced in situ. Lastly, the manager service is restarted.

Note that Ceph only has one active manager at a certain point,
so it only makes sense to call this action on _every_ mon unit.

Change-Id: Ie24b3f30922fa5be6641e37635440891614539d5
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1195
2024-04-05 19:37:36 -03:00
Peter Sabaini 55beb2504d Fix version retrieval
During cluster deployment a situation can arise where there are
already osd relations but osds are not yet fully added to the cluster.
This can make version retrieval fail for osds. Retry version retrieval
to give the cluster a chance to settle.

Also update tests to install OpenStack from latest/edge

Change-Id: I12a1bcd32be2ed8a8e5ee0e304f716f5a190bd57
2023-09-29 21:04:23 +02:00
Peter Sabaini 3567a0589c Prune CI test jobs and test bundles
Change-Id: I1be06ec2901ac414388f4875c95631e4ed50145e
2023-09-04 16:26:25 +02:00
Corey Bryant 49e21b83a3 Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to quincy
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/stable

Change-Id: I4c9d7fc9f3f3588fa777b5ecb14971ff923f2d11
2023-08-03 13:52:35 -04:00
Chris MacNaughton 88d37461dc Ensure broker requests are re-processed on upgrade-charm
When broker-request caching was added, it broke functionality
that ensured that clients were updated on charm-upgrade, this
change enables a bypass of that cache functionality and uses
it to re-process broker requests in the upgrade-charm hook.

Depends-On: https://review.opendev.org/c/openstack/charms.ceph/+/848311
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1066
Closes-Bug: #1968369
Change-Id: Ibdad1fd5976fdf2d5f3384f1b120b0d5dda34947
2023-06-29 19:58:49 -03:00
jneo8 e99c38ae4c Fix persistent config file not update bug
When ceph doing the version upgrade, it will check the previous ceph
from the `source` config variable which store in persistent file.
But the persistent file update is broken. It is because we use hookenv.Config
from ops framework, but the hookenv._run_atexit, which
save the change to file, is not been called.

Partial-Bug: #2007976
Change-Id: Ibf12a2b87736cb1d32788672fb390e027f15b936
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1047
2023-05-23 09:51:53 +08:00
Peter Sabaini 357421f391 Testing: use mysql and rabbitmq from LTS
For better stability use LTS series for rabbitmq and mysql when
testing instead of interim releases.

Also remove xena (non-lts) from tests and yoga as a source default

Change-Id: Ie443c55dc4cc1b7f63eacfee79b28f210f1277e4
2023-05-22 08:58:38 +02:00
Peter Sabaini f172b8cd1e Fix: testing bundles for jammy and lunar were off
Change-Id: I314fef8551e896ab35678bc78f0233cb42030413
2023-05-08 20:40:03 +02:00
Luciano Lo Giudice f23d9e3d3e Remove relation test
The CephRelationTest class wasn't of much used and the test was
rather flaky, since it compared public IP addresses.

Change-Id: Iba5aad1d895ba8b28ce364899a1e41275dc3003b
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1034
2023-04-06 19:18:16 -03:00
Chris MacNaughton 1a81c4416c Add support for interim Ubuntu releases
- update bundles to include UCA pocket tests
- update test configuration
- update metadata to include kinetic and lunar
- update snapcraft to allow run-on for kinetic and lunar

Change-Id: I6b229b502dd4ee9f1d219240b86f7826abf0c25d
2023-03-17 08:56:03 -04:00
Chris MacNaughton 71e1225f0d Add ceph-fs to test bundles to ensure relation works
Change-Id: Ifc5e382e44f3dfcddfda3c526e07e9bb5892fbc3
2022-10-07 17:06:05 +00:00
Chris MacNaughton e60a23ae16 Rewrite actions/copy_pool into the oeprator framework
In addition to trivial changes (passing `event` into
the `copy_pool` function), this change introduces an
update to the actions/__init__.py that allows succinct
import and use from the main charm.py.

An apparently unrelated change is the removal of
charm-proof from the lint job, as it fails with the
removal of actions/copy-pool.

Change-Id: I66a5590ddf0f0bb5ca073a91b451f8c78598609a
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/866
2022-09-08 16:41:33 +00:00
Luciano Lo Giudice 1ee3d04fda First rewrite of ceph-mon with operator framework
This patchset implements the first rewrite of the charm using the
operator framework by simply calling into the hooks.

This change also includes functional validation about charm upgrades
from the previous stable to the locally built charm.

Fix tempest breakage for python < 3.8

Co-authored-by: Chris MacNaughton <chris.macnaughton@canonical.com>

Change-Id: I61308bb2900134ea163d9e92444066a3cb0de43d
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/849
2022-08-19 19:00:56 -03:00
Chris MacNaughton cd31a33a57 Remove force-deploy for Jammy
Additionally, Move jammy-yoga out of dev-bundles

Change-Id: I8cc90044fde5b9da4013a805aaa62b6ccf8a5250
2022-08-09 14:51:39 -04:00
Luciano Lo Giudice 9b8d98b00f Test upgrade path
This patchset rearranges the tests so that the upgrade path is
properly tested, with the tests that aren't in main moved into
a different class.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/849
Change-Id: I5ca38134115f82ac6dff5f559757df68a6c0cd24
2022-08-08 16:46:15 -03:00
Chris MacNaughton bfd999cb85 Replace cs with ch links on prometheus
Change-Id: I60d9fe2068b562d05e421fd1ab2914c9d5f00a25
2022-05-16 16:04:37 +02:00
Billy Olsen d72e8db254 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
- Default source is yoga
- Resync charmhelpers and charms.ceph

Change-Id: Ib62d7f882f22146419dfe920045b73452f9af2cb
2022-04-07 14:16:20 +01:00
Billy Olsen 532f1d48c0 Update the channel names for quincy channels
Update the channel for quincy channels; the channels were specified as
stable/yoga which causes Juju to pick the stable charm. Fix this and
point it at the right track and channel - quincy/edge in this case.

Change-Id: I5d68c0c15f3a7ab5ff80ddda0d376d9031cbdb13
2022-03-04 12:18:18 +01:00
Alex Kavanagh a7e6225b2b 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: I546438f1af6b3f779aa01e9ddd8c8ae7c3b7d063
2022-02-16 10:45:25 -05:00
Zuul 8c9755f8e6 Merge "Fix typo in functional test definition" 2022-02-07 02:54:22 +00:00
Alex Kavanagh f61afd5d21 Migrate charm to charmhub latest/edge track
Change-Id: I82c5640230149a227183b67aff5ce14e147cd55e
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-01-28 11:04:01 +01:00
Samuel Walladge 1f1f4c78f4 Fix typo in functional test definition
impist -> impish;
this should fix the functional tests for impish-xena.

Change-Id: Ifaac1f371119d7430b6274f9d299fbe0288bac43
2022-01-27 01:46:09 +00:00
Corey Bryant 7cd789601d 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
* charms.ceph sync

Change-Id: I214c0517b223da5fce9e942269fd8703422d1a2b
2021-11-17 13:46:05 -05:00
Alex Kavanagh cb580a0b91 Add xena bundles
- add non-voting focal-xena bundle
- 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: If511b7fee8cf676b6ba7017aa60fe916ac9a26d9
2021-09-21 14:11:55 +01:00
Garrett Thompson 8211eeafb2 Force the groovy-victoria bundle to deploy.
Groovy Gorilla (20.10) is now EOL, and functional tests will fail
due to it not being supported anymore. This will move the bundle
to the force section, allowing tests to be run.

Change-Id: I71e69346c288bcae492bb66be8b67feb4892012c
2021-09-07 08:52:00 -06:00
Alex Kavanagh f219232b3a Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

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

Sync charm-helpers

Also pin prometheus2 charm in bundles to focal series as it does not
support groovy or hirsute.

Change-Id: I75602720f8e30be647aa8a1227d565c692ff8170
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-06-30 11:17:47 +02:00
Billy Olsen 1a36a9f4f9 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: If1380a8c92469b9705eb80d2d5c31d70529c1f18
2021-02-19 16:59:12 -07:00
Aurelien Lourot e87ef6ec00 Add Groovy to the test gate
Also sync libraries

Change-Id: I4e9d276edde7fb46ebf6b641edb3ad5df86cd040
2020-11-12 11:23:01 +01:00
Aurelien Lourot e629ff5ca6 Add focal-victoria to the test gate
Change-Id: I7af92d96eed6cef87677a7ccb761d1c13d91484a
2020-08-28 14:24:32 +02:00
Liam Young e3f9894aea Add erasure-coded pool bundle
This change adds a bundle that configures erasure coded pools
for glance, cinder-ceph and nova. To verify that the pools are
using EC it also adds a test which verifies the pool type.

To verify that the nova pool is configured correctly in all
scenarious all the bundles have been updated to set
libvirt-image-backend to rbd which triggers the nova pool
creation.

During testing the Prometheus tests were failing which is
down to a known bug *1 in the prometheus charm. The
bundles have been updated to pin the prometheus2 charm
to an earlier version to get round the bug.

*1 https://bugs.launchpad.net/charm-prometheus2/+bug/1891942


Change-Id: I7d29aec3ba9924d5677be25137907b1465401f9c
2020-08-20 07:04:39 +00:00
Aurelien Lourot dadbda8c01 Add Victoria test bundles
Change-Id: Idaacce6069bc40400b13ecff136e4e65382da869
2020-07-14 11:47:09 +02:00
Chris MacNaughton 453dd29608
Add the cinder-ceph to nova-compute relation
Change-Id: I7dccc2e77958c0390f94ce60fe64d34faedfc00a
Closes-Bug: #1881246
2020-05-29 08:50:09 +02:00
Alex Kavanagh 6c08e29ee9 Remove cinder spec from osd-devices
The test specification doesn't need the 'cinder' spec as part of the osd
devices, and this patchset brings it in line with the other bundles.

Change-Id: If13f38eea33f3d83133396e01eff0b36eb90e82a
2020-05-07 11:12:53 +01:00
Alex Kavanagh 1b09beef8b Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.

Change-Id: I525b13cf92644dc9d0a4c5290e7a951e3d1a653a
2020-04-29 11:32:54 +01:00
Zuul eec0950aa3 Merge "Add support for Ceph's prometheus monitoring" 2020-04-09 08:57:04 +00:00
Chris MacNaughton 425c078299 Add support for Ceph's prometheus monitoring
This adds support for Ceph's prometheus monitoring
when Ceph itself has this support

Change-Id: I621824c910b0540181d5aca194c6b98e1d3d62d6
Closes-Bug: #1789332
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/214
2020-04-08 13:41:08 +00:00
Chris MacNaughton dc9c94ef9c Remove storage type specification
When storage type is specified, the bundles can
only be deployed on a matching substrate.

Change-Id: If6c79eec024f8397147ae71055c02080ed640c43
2020-03-09 13:19:57 +00:00
Alex Kavanagh 0aeffdf356 Remove disco support from the charm
Change-Id: I7b709f4203799c1466d2327ca5a21cf2da7c416f
2020-02-18 17:03:02 +00:00
Corey Bryant 2b97ebeeea Sync charm-helpers for Ussuri/Focal release and version details
Also add placement service/relations to bionic-train-with-fsid.yaml
test bundle.

Change-Id: If3741ef2d579219fe938c30b8c7c890f4ce7eae9
2020-01-21 11:58:27 -05:00
Chris MacNaughton a445a46793 Fix charm reference in bionic-queens bundle
Change-Id: Iaf8b405d0e9e4667e732dd21f94e82b9caea8576
2019-12-02 13:45:23 +01:00
Zuul de29d8311a Merge "Revert "Remove explicit fsid charm config option"" 2019-11-06 09:41:26 +00:00
Andrew McLeod 40e1ce044c Sync charms.ceph
use btrfs-progs instead of btrfs-tools for eoan and later
update bionic-train zaza test bundle to include placement

Closes-Bug: #1850181
Change-Id: Ic8e46dda154c19edadf0e6810701233c3db88e04
2019-10-31 19:37:52 +01:00
James Page 15e158f6eb Revert "Remove explicit fsid charm config option"
Revert the removal of the fsid charm configuration option.

This is required for the in-place migration of an existing Ceph
deployment into a Charm managed deployment.

This reverts commit 54c3f21221.

Change-Id: I260b3eef85465293cc7ec554913dc66d9a4b7ee4
Closes-Bug: 1846337
2019-10-25 12:39:32 +01:00
Sahid Orentino Ferdjaoui 86536fb52a Enable functional tests for train
This patch also provides a fix from the last charms.ceph sync to fix
random issue with ceph >= 14.

Change-Id: I8aa03e073442c2eaa1c979562f68c435c229db16
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-10-24 10:02:12 +00:00
Chris MacNaughton a3dfd8041b Enable pg_autoscaler for new Nautilus installations
This change also allows an admin to enable it for existing
installations that are upgraded to Nautilus via a config
option.

This change also enabled bionic-train to allow testing with
Ceph Nautilus.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/52
Depends-On: https://github.com/juju/charm-helpers/pull/343
Change-Id: Ic532204aa1576cdbeb47de7410f421aa9e4bac42
2019-09-12 10:18:40 +02:00
Chris MacNaughton 4ac724737f Sync charm-helpers
Change-Id: I9923cd3d894e20511a32e23028075234df7f8de2
2019-07-16 07:06:03 +00:00
Chris MacNaughton 01fb37ebee Migrate charm-ceph-mon testing to Zaza
Closes-Bug: #1828424
Change-Id: Ie46129f02566f17eabbf2eb0cae217fa0e886a4f
2019-05-16 11:34:57 +00:00
Frode Nordahl 48e38393e5
Enable bionic/stein and disco/stein functional tests
Drop service check for ``glance-registry``.  The service is
removed as of Stein, and it really is not the ``charm-ceph-mon``
functional tests job of checking this anyway.  Any such detail
should be deferred to the ``charm-glance`` functional tests.

Change-Id: I85dd396b55e3d1582da18c6d8248ba1cced3e89f
2019-04-08 14:11:42 +02:00
Chris MacNaughton 8ffce641b3 Add security-checklist to ceph-mon
Change-Id: I1b0f24fed7a5c49ba0f2477ee767b7fe5190adbf
2019-03-13 10:32:00 +01:00
Ryan Beisner 23bad4d905
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I1defa1fcaf792afa64b2f52ed486a8881c737a0f
2019-02-06 14:47:23 -06:00