Skip to content

Add quorum-based ClusterAvailableCondition for RabbitMQ availability#571

Open
lmiccini wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
lmiccini:rabbitmq-cluster-available-condition
Open

Add quorum-based ClusterAvailableCondition for RabbitMQ availability#571
lmiccini wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
lmiccini:rabbitmq-cluster-available-condition

Conversation

@lmiccini
Copy link
Copy Markdown
Contributor

@lmiccini lmiccini commented Apr 29, 2026

Replace the raw ReadyCount > 0 check (checkClusterReadiness) with a quorum-aware ClusterAvailableCondition. The new condition is True when ReadyCount >= ceil(Replicas/2), ensuring the cluster has quorum before allowing TransportURL, Policy, Vhost, and User operations.

ClusterAvailableCondition is a sub-condition of ReadyCondition but never blocks it: quorum is always satisfied before all replicas are ready.
IsReady() still means "fully reconciled" while IsAvailable() means "can serve traffic".

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Apr 29, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmiccini

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

Replace the raw ReadyCount > 0 check (checkClusterReadiness) with a
quorum-aware ClusterAvailableCondition. The new condition is True when
ReadyCount >= ceil(Replicas/2), ensuring the cluster has quorum before
allowing TransportURL, Policy, Vhost, and User operations.

ClusterAvailableCondition is a sub-condition of ReadyCondition but never
blocks it: quorum is always satisfied before all replicas are ready.
IsReady() still means "fully reconciled" while IsAvailable() means
"can serve traffic".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lmiccini lmiccini force-pushed the rabbitmq-cluster-available-condition branch from d35b050 to fff3bbf Compare April 29, 2026 12:28
@TristanCacqueray
Copy link
Copy Markdown

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdo/buildset/fddd96687c774737970f46c161027fe4

✔️ openstack-k8s-operators-content-provider SUCCESS in 15m 45s
podified-multinode-edpm-deployment-crc RETRY_LIMIT in 29s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 29s

@lmiccini
Copy link
Copy Markdown
Contributor Author

lmiccini commented May 8, 2026

recheck

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.

2 participants