Commit Graph

130 Commits

Author SHA1 Message Date
Luciano Lo Giudice 940be7fdfc Implement key rotation on the ceph-radosgw charm
This patchset implements key rotation in the ceph-radosgw charm,
by replacing the keyring file if it exists and the ceph-mon
relation reports a new key.

Change-Id: I447b5f827e39118e7dbd430b1c63b3ec4ea3e176
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1195
2024-04-16 14:44:53 -03:00
Peter Sabaini be056d6ca6 Add upgrade func testing
Change functional testing to also test upgrades from charmhub version
to the locally built charm. Include a new test for installing a locally built charm from scratch.

Also pin some support charms to specific tracks.

Change-Id: I57937f55526f531cb807a876fd074f5f589b00ed
2023-09-28 21:47:28 +02:00
Peter Sabaini 4d36f6cbc3 Prune CI jobs
Change-Id: I4260d8c4ea6e5a7cedca4231dec42d0700e25638
2023-09-11 17:22:05 +02:00
Corey Bryant 37cb69d7f8 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
* add additional unit test https mocks needed since
  charm-helpers commit 6064a34627882d1c8acf74644c48d05db67ee3b4
* update charmcraft_channel to 2.x/stable

Change-Id: I2d9c41c294668c3bb7fcba253adb8bc0c939d150
2023-08-02 14:10:40 -04:00
Chris MacNaughton a1267f4919 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: I05ce01c13efdd453c06e3c8d615d64bad6e27727
2023-03-20 13:39:08 -04:00
Chris MacNaughton bb16e670dc Partial revert[1] to re-enable Focal support
1: 51f59879d3
Change-Id: I565e36b94d249d2cf0beccf1480189a19da008d9
2022-10-31 14:20:36 +01:00
Corey Bryant 51f59879d3 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: Ieb1ef7b7ab76775f5769621a6a7cbcfb18c40b7f
2022-08-26 18:40:29 +00:00
utkarshbhatthere 44fee84d4d
Adds support for migration to multi-site system.
1.) Currently multi-site can only be configured when system is being
deployed from scratch, migration works by renaming the existing
Zone/Zonegroups (Z/ZG) to Juju config values on primary site before
secondary site pulls the realm data and then rename and configure
secondary Zone accordingly.

During migration:
2.) If multiple Z/ZG not matching the config values are present at
primary site, the leader unit will block and prompt use of
'force-enable-multisite' which renames and configures selected Z/ZG
according to multisite config values.

3.) If the site being added as a secondary already contain Buckets,
the unit will block and prompt the operator to purge all such Buckets
before proceeding.

Closes-Bug: #1959837
Change-Id: I01a4c1c4551c797f0a32951dfbde8a1a4126c2d6
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/840
2022-08-07 13:32:37 +05:30
Chris MacNaughton 1f4dbd3a5d 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
- Charmhelpers and charms.ceph sync

Change-Id: I39f091db8ef8f18c0a40d4e46d54dfc964c03d70
2022-04-08 10:23:48 +01:00
Alex Kavanagh d81d4bb128 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: I56e04707036b994c52cc9cfcb19e6c37cd41309e
2022-02-15 15:43:00 +00:00
Alex Kavanagh d4547a8757 Migrate charm to charmhub latest/edge track
Change-Id: I68d0db36dd156d52c9f5f4b0ab07cdd5eb45c1b0
2022-01-27 19:53:01 +00:00
Zuul 6dd6144f66 Merge "Fix create_system_user so it returns creds" 2021-12-13 14:35:59 +00:00
Liam Young 083a0e6722 Fix create_system_user so it returns creds
Fix the create_system_user method so it returns the access_key
and secret when a user is created.

This patch also includes the following changes:

* Improve logging of multisite methods to help with debugging issues.
* Fix multisite relations in bundles.

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/667
Closes-Bug: #1950329
Change-Id: I0528fe7f4a89c69f2790a0e472f6f43e23c2de19
2021-12-02 17:37:55 -03:00
Corey Bryant 3a27c7090e 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: I8b0ac822cdf37d70ac39f1b115f95a448afb624d
2021-11-22 15:22:23 -05:00
Alex Kavanagh d15ac894a9 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0
- Remove redundant (and failing) IdentityContext tests
- Remove EOL groovy-* gate tests.

Change-Id: I32c8195ff76164de565e6af7c329645be40769f1
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-05 19:15:09 +01:00
Alex Kavanagh 096b665fec Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Sync libraries

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: I99ee073206c7fad4897bf7b7bb767cf143b40d70
2021-05-06 10:10:37 +00:00
Billy Olsen ee4603e57a Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I49d9d833b8cabd49b4caf3300066b593d354845c
2021-02-20 19:16:19 -07:00
Aurelien Lourot a43af5c7e7 Fix haproxy not running on fresh deployments
Also add Groovy to the test gate and sync static libraries.

Change-Id: I04ca79487085d9088811bc0ffd5f0981db50c42e
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/468
Closes-Bug: #1904411
2020-11-25 14:55:19 +01:00
Liam Young d2e9da7c80 Ensure the right key is selected
Ensure the right key is selected on pre-systemd deploys. Whether
to request unit specific keys is already gated on the
request_per_unit_key *1 this patch applies the same logic to
_key_name for selecting the key.

*1 https://github.com/openstack/charm-ceph-radosgw/blob/master/hooks/hooks.py#L258

Also update testing to use cephx auth.

Change-Id: I92fe75fb7f483cc70b35e48587cf376a16d856a5
Closes-Bug: #1899676
2020-10-22 10:15:05 +00:00
Frode Nordahl 7327e9c4de
Add Ceph BlueStore Compression support
Sync c-h and charms.ceph.

Unpin flake8

Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/398
Change-Id: Ib068f39d43bade2502bc2d3cbbfb86324a03407a
2020-09-25 16:02:44 +02:00
Liam Young cb3633316d Add test using erasure coded pools
Change-Id: I38ea010b71df875938636d029ac98bc979c43155
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/422
2020-09-18 09:15:30 +00:00
Aurelien Lourot d048882532 Add focal-victoria to the test gate
Change-Id: Ie92d186b3862712a57a013ca6da4dc9bedff49d9
2020-08-28 14:24:51 +02:00
Aurelien Lourot f884bdb0bf Add Victoria test bundles
Change-Id: If4831f159ca42d112eb29f2ef4ea9928e90ed569
2020-07-08 14:34:33 +02:00
Frode Nordahl d544c70912
Determine default port based on presence of TLS configuration
Fix intermittent deployment failure with TLS.

Default to TLS in the functional test.

The call to ``configure_https`` in identity_changed is remains
from the time when Keystone provided certificates, remove it.

Hold service down until keys are rendered.

Change-Id: Ia16e6200520972c503102d80cda35e36daea82a2
Closes-Bug: #1868387
2020-05-28 09:30:03 +02:00
Alex Kavanagh 3dff521036 Add focal-ussuri and bionic-ussuri bundles
This patch adds the following bundles:

 * tests/bundles/bionic-ussuri-namespaced.yaml
 * tests/bundles/bionic-ussuri.yaml
 * tests/bundles/focal-ussuri-namespaced.yaml
 * tests/bundles/focal-ussuri.yaml

 The focal tests uses the force_deploy option in the tests.yaml

The depends-on is to fix very recent lint errors in charms.ceph with
E741 (very short variable names).

Change-Id: I46445da361e37716b65bf941f687cbd6468ed212
Depends-On: Id92956e52cefed6d3d792dd95fe7091788fb2d1b
2020-05-12 17:13:50 +01:00
Frode Nordahl 0667a64be6
Add S3 endpoint to service catalog
Also add functional test of the S3 API.

Change-Id: I614a7bd9c294b783a289d8b38eca9520114e9c95
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/194
2020-03-16 22:35:54 +01:00
Corey Bryant f2d51600f0 Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: Ife2ac3f4dc37216df28fce912c47fc6ddec454cf
2019-10-31 14:41:36 +00:00
Chris MacNaughton e4d4d09b53 Enable Ceph Radosgw tenant namespacing
This change enabled automatic tenant namespacing,
which also allows enabling global read permissions
on buckets.

Change-Id: Ic37c7161b7dddad49e3c2ab075d7e8b72f436b35
Closes-Bug: #1833072
2019-10-09 15:55:17 +02:00
Frode Nordahl ae15a2477f Update functional test definitions
Change-Id: I81e4583c1f2d172cbbba0eb3a091d3a0f88a9df2
2019-07-17 15:28:35 +02:00
Chris MacNaughton 0a9daf723e Sync charm-helpers
Additionally, this has unit test fixes for a CephContext
update and a Keystone V3 update that came with this sync.

Change-Id: I8ad78dbebf94ac0e6d0bcee6af2e24552c7175a3
2019-07-16 07:06:03 +00:00
Chris MacNaughton c6ac5946ba Shift ceph-radosgw to constrained instance size
This tries to resolve an issue where the CI environment
places instances on machines with swap volumes and
Juju storage hands off bad information

Change-Id: Ie0202b05319c1bcab8334f8c8356acca4c96eaf5
2019-07-01 17:22:31 +02:00
Edward Hope-Morley 3b9130d808 Remove trusty-icehouse functional test
Change-Id: I248d6ef5ae3ffb1d5b8e666e4c4676578460d439
2019-06-25 14:49:36 +01:00
James Page 92575d9df9 Mark multisite test bundles as dev
Move multisite test bundles to dev section; the tests experience
some race conditions with RADOS Gateway deployments taking time
to resync after promotion operations that needs to be accomodated
in the zaza test code.

Related-Bug: 1833509
Change-Id: If36671a00c253e36c339e72dd14b20f7c68f7577
2019-06-20 08:52:02 +01:00
Chris MacNaughton 33e4afc8b0 Migrate Zaza tests to independant OpenStack Charms specific library
Change-Id: Ib39798d8676e9431a55be6a0a52e9ad5de66f3da
2019-04-26 14:05:47 +02:00
James Page 07f9fc11ee Add multisite testing
Add bundles for testing of multisite configurations
for OpenStack Queens and Rocky.

Change-Id: I8bbd3977f13709422d3c2c7086d285b5736cb883
2019-03-26 08:12:52 +00:00
James Page 2eef15113f Switch functional testing to zaza
Drop amulet tests and create bundles for all target
Ubuntu/OpenStack series combinations inline with
current best practice.

Zaza tests are not a direct translation from the Amulet tests;
the new tests focus in Ceph RADOS Gateway and integration with
keystone rather than deploying compute, image and block
services (which do not make use of the ceph-radosgw charm).

Change-Id: I41914df024eb02e5a555bc0e44993e09d310933e
2019-02-07 14:10:48 +00:00
James Page 2858f1b02d Switch to using systemd units for radosgw
Switch to using systemd configurations to manage radosgw instances;
the radosgw init script is obsolete and will be removed at some
point in time, and the newer style of managing radosgw daemons is
inline with current best-practice.

This changeset also changes the way cephx keys are issues; before
all rgw instances shared a key, now a key is issued per host.

The key is named 'rgw.`hostname`' to identify the application
and host using the key.

Existing deployments using the radosgw init script will be switched
to use the new systemd named units; this occurs once the new key
for the unit has been presented by the ceph-mon cluster over the
mon relation. A small period of outage will occur as the radosgw
init based daemon is stopped and disabled prior to the start of
the new systemd based radosgw unit.

This commit also includes a resync for charmhelpers to pickup
support for '@' in NRPE service check names.

Change-Id: Ic0d634e619185931633712cb3e3685051a28749d
Depends-On: I289b75a2935184817b424c5eceead16235c3f53b
Closes-Bug: 1808140
2019-01-24 13:04:52 +00:00
James Page 53794aad7a Switch charm runtime to python3
Update charm to execute hooks and actions under Python 3; this
includes dealing with upgrades (by switching the upgrade-charm
hook to be a bash script which installs the required charm runtime
dependencies).

This commit also drops code from ceph.py which was used across
other ceph charms in the past; only the functions required for this
charm have been retained.

Change-Id: I5e222d907bfa34ffacad16c51abd1278d7d82f56
2019-01-18 13:31:33 +02:00
Ryan Beisner a4538f6f54 Sync charm-helpers
Change-Id: I2490845fc4482ca7f905416319311e145a527c4e
2018-11-08 15:11:09 -08:00
Frode Nordahl 14774b987b
Fix py3 Syntax error
Change-Id: I1aab038cbd9c010296c8c3aa67ae50b3ee27cfd4
2018-11-02 09:07:30 +01:00
Ryan Beisner c2481813f8 Update requirements
Change-Id: I6b0f06d94defd65bfa491ac7a5b5b1063bdfc127
2018-10-03 11:15:12 -05:00
David Ames e7c51a2529 Series Upgrade
Implement the series-upgrade feature allowing to move between Ubuntu
series.

Change-Id: I13770631becfefb71075a3b0080db2bffc2b268d
2018-09-21 06:42:25 +00:00
Ryan Beisner a2890ded55 Update functional test definitions
Change-Id: I6a084d765a85a46ad77350215da34abf98cd15a0
2018-08-28 14:45:30 -07:00
Ryan Beisner d6a39d399d Update functional test definitions
Change-Id: If4d161b12b771a7c92c2994faeddb68c89d0737b
2018-07-18 18:35:03 -04:00
Chris MacNaughton a2a3250afb Remove old nova-compute / mysql relation
Change-Id: I45bf4f6b9eb1fb50629acc0f00ccde774a7a5a03
Closes-Bug: #1713807
2018-07-18 10:28:56 +02:00
Chris MacNaughton d26b4efb54 Sync charm-helpers to ensure Rocky support
Change-Id: Ie77e7a22bb825dea74bdd1a7ead29db0b58d7d4c
2018-07-13 15:52:42 +02:00
Ryan Beisner b69381edef 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: I0ebcde2ca99a10a005a6448bca9be7ba40974fd0
2018-07-11 14:03:44 -05:00
Chris MacNaughton 2c418f14bc Update tests to use Juju storage
Due to changes to the ceph-osd charm, it is
suggested to use Juju storage for testing.

Change-Id: Ibdf6f4119001a4a07f9ddbc4fb2a9640860ff386
Related-Bug: #1698154
2018-06-05 15:49:14 +02:00
David Ames 65b8b75c2a Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: Ie69b71387cf43add775cffe9d948ec1a42bf7cae
2018-05-17 11:12:01 -07:00
Ryan Beisner 7bf8b6b953 Remove deprecated functional test targets
Change-Id: I0eb95295b251d320f91771a7a5c5882af26f8034
2018-05-09 16:34:50 -05:00