Skip to content

Commit ccd5922

Browse files
authored
DPE-4235, DPE-3262, DPE-4315 Common UX for replication (#452)
* avoid error on relation with blocked cluster as primary * lint fixes * secret access is scoped by relation, no need to revoke * (wip) changes for sync ux with PG * fixing tests * naming and tests fixes * refactor jargon * renaming misses and bump flake8 for python 3.12 support * cluster-set name required on relation creation for validations * wait for cluster initialization * bump black to match system * add the create-replication on last test * support for password propagation * update to juju 3.4.3 with assumes
1 parent b5e5ca9 commit ccd5922

File tree

13 files changed

+497
-337
lines changed

13 files changed

+497
-337
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- agent: 2.9.49 # renovate: juju-agent-pin-minor
6969
libjuju: ^2
7070
allure: false
71-
- agent: 3.1.8 # renovate: juju-agent-pin-minor
71+
- agent: 3.4.3 # renovate: juju-agent-pin-minor
7272
allure: true
7373
name: Integration test charm | ${{ matrix.juju.agent }}
7474
needs:

actions.yaml

+13-21
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,20 @@ restore:
5959
pre-upgrade-check:
6060
description: Run necessary pre-upgrade checks and preparations before executing a charm refresh.
6161

62-
promote-standby-cluster:
62+
create-replication:
6363
description: |
64-
Promotes this cluster to become the leader in the cluster-set. Used for safe switchover or failover.
65-
Must be run against the charm leader unit of a standby cluster.
64+
Create replication between two related clusters.
65+
This action is must be run on the offer side of the relation.
66+
params:
67+
name:
68+
type: string
69+
description: A (optional) name for this replication.
70+
default: default
71+
72+
promote-to-primary:
73+
description: |
74+
Promotes this cluster to become the primary in the cluster-set. Used for safe switchover or failover.
75+
Can only be run against the charm leader unit of a standby cluster.
6676
params:
6777
cluster-set-name:
6878
type: string
@@ -83,24 +93,6 @@ recreate-cluster:
8393
each unit will be kept in blocked status. Recreating the cluster allows to rejoin the async replication
8494
relation, or usage as a standalone cluster.
8595
86-
fence-writes:
87-
description: |
88-
Stops write traffic to a primary cluster of a ClusterSet.
89-
params:
90-
cluster-set-name:
91-
type: string
92-
description: |
93-
The name of the cluster-set. Mandatory option, used for confirmation.
94-
95-
unfence-writes:
96-
description: |
97-
Resumes write traffic to a primary cluster of a ClusterSet.
98-
params:
99-
cluster-set-name:
100-
type: string
101-
description: |
102-
The name of the cluster-set. Mandatory option, used for confirmation.
103-
10496
rejoin-cluster:
10597
description: |
10698
Rejoins an invalidated cluster to the cluster-set, after a previous failover or switchover.

0 commit comments

Comments
 (0)