canonical / mysql-k8s-operator

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

DPE-2661 single unit upgrade fixes #324

Closed paulomach closed 10 months ago

paulomach commented 11 months ago

Issue

  1. mysqlsh will fail on same version check
  2. single unit won't reconnect to a cluster (as it is the cluster)
  3. reboot_from_complete_outage will not recognize unit as part of the cluster in it's metadata due to the report_host not being equal to the unit's fqdn (hostname.mysql-k8s-endpoints != hostname.mysql-k8s-endpoints.model.svc.cluster.local)

Solution

  1. modify mysqlsh version verification command to accommodate same versions correctly
  2. make usage of reboot_from_complete_outage for single unit deployment recovery
  3. use fqdn for mysql's report_host

Merge after vm PR#340

Fixes #317