Commit Graph

6 Commits

Author SHA1 Message Date
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
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
James Page 7722f9d620 Add support for RADOS gateway multi-site replication
Add new radosgw-multisite typed master and slave relations to
support configuration of separate ceph-radosgw deployments as
a single realm and zonegroup to support replication of data
between distinct RADOS gateway deployments.

This mandates the use of the realm, zonegroup and zone
configuration options of which realm and zonegroup must match
between instances of the ceph-radosgw application participating
in the master/slave relation.

The radosgw-multisite relation may be deployed as a model local
relation or as a cross-model relation.

Change-Id: I094f89b0f668e012482ca8aace1756c911b79d17
Closes-Bug: 1666880
2019-02-14 09:40:20 +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
James Page 29d846388b Re-license charm as Apache-2.0
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.

Change-Id: I2fdcac3d1b45cf48dec52bc15acfee13107a9bae
2016-06-28 12:06:58 +01:00
Liam Young 016b0edad5 Add pause/resume actions and sync charm-helpers
Adds pause and resume unit to the charm such that the
charm stays paused during maintenance operations.

Change-Id: Iba0d39f9c5ca482a12fdb9f91d2890a715d3f8b7
2016-03-29 10:31:28 +00:00