Skip to content

[18-stable] Add PodDisruptionBudget for Galera to prevent quorum loss during rolling reboots - #529

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-512-to-18-stable
Jul 31, 2026
Merged

[18-stable] Add PodDisruptionBudget for Galera to prevent quorum loss during rolling reboots#529
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-512-to-18-stable

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #512

/assign lmiccini

…ing reboots

During an OCP MCP rolling reboot, MCO drains nodes sequentially but does
not wait for application pods to become Ready on the previous node before
draining the next one. For Galera on a compact (3-node) cluster, this
causes quorum loss: the pod on the just-rebooted node is still in Init
while the pod on the next node is already being evicted, leaving only 1/3
members running.

Add a PodDisruptionBudget with maxUnavailable=1, matching the pattern
used by infra-operator for RabbitMQ. This ensures MCO's drain is blocked
until all but one Galera pod are Ready, preventing the overlapping
disruption window that causes quorum loss.

The PDB is only created when replicas > 1 and is cleaned up when scaling
down to a single replica.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@openshift-ci

openshift-ci Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dciabrin, openshift-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 8e4c3b0 into openstack-k8s-operators:18-stable Jul 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants