canonical / mysql-k8s-operator

A Charmed Operator for running MySQL on Kubernetes
https://charmhub.io/mysql-k8s
Apache License 2.0
8 stars 16 forks source link

Update database relation data of replica cluster #395

Open paulomach opened 8 months ago

paulomach commented 8 months ago

Steps to reproduce

  1. Deploy 2 clusters A and B
  2. Add a async relation between A and B, being A primary and B replica clusters
  3. Deploy mysql-router-k8s and test app
  4. relate app<->router<->A
  5. Promote B to primary
  6. Remove relation app<->router

Expected behavior

Router is able to remove metadata from cluster

Actual behavior

Router fails due to relation data pointing to cluster A primary service, now the primary from the replica cluster, i.e. read-only mode.

Additional context

Issue present on unreleased code on dpe-2959-async-repl branch

github-actions[bot] commented 8 months ago

https://warthogs.atlassian.net/browse/DPE-3842