Fix/standby backup guard async repl 16#1588
Draft
marceloneppel wants to merge 5 commits into
Draft
Conversation
create-backup and list-backups cannot succeed on a standby cluster, whose data is managed by replication from the primary, but they were not stopped up front — users hit confusing late failures instead of being told to run on the primary. Reject them early when the unit belongs to a standby cluster. The check keys on the promoted cluster, not merely the presence of a replication relation, so the primary still backs up while replication is active; restore stays blocked on any replicating cluster, unchanged. Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…e units During async replication setup the relation can briefly exist with no remote units published. In that window, re-emitting the relation-changed event raised StopIteration and cluster promotion could act on a missing relation, crashing the hook. Guard both paths so these transient states are handled instead of erroring. Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Add end-to-end coverage that a standby cluster rejects backup actions while the primary still backs up, against Ceph-backed S3. The microceph host IP now uses a non-loopback address so the RGW endpoint is reachable from workloads. Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…-guard-async-repl-16 Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
The 600s wait for the second cluster's s3-integrator to reach blocked status times out on the resource-constrained arm64 CI runner (two 3-unit clusters plus microceph contend for ~16GB), while the same test passes on amd64. Raise this wait to 15 minutes — it is the shortest wait in the test, the others already allow 20-30 minutes. Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Solution
Checklist