Propagate MariaDB TargetVersion to the Galera CR (OSPRH-32083) - #2069
Propagate MariaDB TargetVersion to the Galera CR (OSPRH-32083)#2069zzzeek wants to merge 1 commit into
Conversation
Adds ServiceDefaults.MariadbVersion to OpenStackVersion and propagates it to the Galera CR's spec.targetVersion, following the pattern already used by ServiceDefaults.RabbitmqVersion for the rabbitmq-server 3.9->4.2 upgrade. Currently does not indicate a "default" version for mariadb-galera, as 10.5 is already deployed in existing deployments that dont have the "targetversion" field at all; setting it to 10.5 here would force a restart of those clusters. Once this change is running on a rhel-10 environment with mariadb 10.11 available as the mariadb image, the RELATED_IMAGE_MARIADB_IMAGE_URL_DEFAULT should be added as "10.11"; when deployed on an existing cluster that runs 10.5, this will apply the new version to the galera cluster which will then do a restart and run the mariadb upgrade scripts. Doing so before a 10.11 image is present would put running clusters into a state that includes MariaDBServerUpgradeReady=False with UpgradeVersionMismatch (however those clusters would still remain in a ready state). References: OSPRH-32083 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zzzeek The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
OpenStackControlPlane CRD Size Report
Threshold reference
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change adds an optional MariaDB version to ChangesMariaDB version propagation
Priority: ➖ Normal — Schedule the MariaDB target-version propagation because it changes the OpenStackVersion API and Galera upgrade behavior while avoiding restarts for existing MariaDB 10.5 deployments. Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This adds optional MariaDB target-version propagation to Galera while retaining an empty target version for existing MariaDB 10.5 deployments, avoiding unintended cluster stops. The declared upgrade path is covered and no current merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant OpenStackVersion
participant OpenStackOperator
participant GaleraOpenStack
participant GaleraCell1
OpenStackVersion->>OpenStackOperator: Provide ServiceDefaults.MariadbVersion
OpenStackOperator->>GaleraOpenStack: Set Spec.TargetVersion
OpenStackOperator->>GaleraCell1: Set Spec.TargetVersion
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Build failed (check pipeline). Post ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 50m 42s |
|
/retest |
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Adds ServiceDefaults.MariadbVersion to OpenStackVersion and propagates it to the Galera CR's spec.targetVersion, following the pattern already used by ServiceDefaults.RabbitmqVersion for the rabbitmq-server 3.9->4.2 upgrade.
Currently does not indicate a "default" version for mariadb-galera, as 10.5 is already deployed in existing deployments that dont have the "targetversion" field at all; setting it to 10.5 here would force a restart of those clusters.
Once this change is running on a rhel-10 environment with mariadb 10.11 available as the mariadb image,
the RELATED_IMAGE_MARIADB_IMAGE_URL_DEFAULT should be added as "10.11"; when deployed on an existing cluster that runs 10.5, this will apply the new version to the galera cluster which will then do a restart and run the mariadb upgrade scripts. Doing so before a 10.11 image is present would put running clusters into a state that includes MariaDBServerUpgradeReady=False with UpgradeVersionMismatch (however those clusters would still remain in a ready state).
References: OSPRH-32083