Skip to content

Only init conditions for enabled services in InitConditions#1916

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
stuggi:enabled_conditions
May 7, 2026
Merged

Only init conditions for enabled services in InitConditions#1916
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
stuggi:enabled_conditions

Conversation

@stuggi
Copy link
Copy Markdown
Contributor

@stuggi stuggi commented May 6, 2026

Previously, InitConditions() added Unknown conditions for ALL services regardless of whether they were enabled. When the controller short- circuited before reaching a disabled service's reconciler (e.g., during minor update gating), the disabled service's Unknown condition persisted and was mirrored to the Ready condition, producing misleading status like "Octavia not started" even when Octavia was disabled.

Only create conditions for services that are actually enabled. Always-on conditions (CAs, Version, Infrastructure, BackupConfig, Client, Ready) remain unconditional. The service reconcilers still handle the enabled-to-disabled transition by removing their conditions.

@openshift-ci openshift-ci Bot requested review from abays and dprince May 6, 2026 13:03
@openshift-ci openshift-ci Bot added the approved label May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

OpenStackControlPlane CRD Size Report

Metric Value
CRD JSON size 322464 bytes (315KB)
Base branch size 322464 bytes
Change +0.00%
Status yellow — growing
Threshold reference
Color Range Meaning
🟢 green < 300KB Comfortable
🟡 yellow 300–400KB Growing
🟠 orange 400–750KB Concerning
🔴 red > 750KB Approaching 1.5MB etcd limit (cut in half to allow space for update)

Copy link
Copy Markdown
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label May 6, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, stuggi

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-ci openshift-ci Bot added the approved label May 6, 2026
@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/rdoproject.org/buildset/7771561f5dfb4bed803e2ec4d0d5f9f8

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 00m 07s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 28m 49s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 29m 13s
✔️ openstack-operator-tempest-multinode SUCCESS in 1h 43m 14s
openstack-operator-edpm-baremetal-minor-update FAILURE in 35m 47s

Previously, InitConditions() added Unknown conditions for ALL services
regardless of whether they were enabled. When the controller short-
circuited before reaching a disabled service's reconciler (e.g., during
minor update gating), the disabled service's Unknown condition persisted
and was mirrored to the Ready condition, producing misleading status
like "Octavia not started" even when Octavia was disabled.

Only create conditions for services that are actually enabled. Always-on
conditions (CAs, Version, Infrastructure, BackupConfig, Client, Ready)
remain unconditional. The service reconcilers still handle the
enabled-to-disabled transition by removing their conditions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@stuggi stuggi force-pushed the enabled_conditions branch from 26c34c4 to bbabcf9 Compare May 6, 2026 16:11
@openshift-ci openshift-ci Bot removed the lgtm label May 6, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 6, 2026

New changes are detected. LGTM label has been removed.

@stuggi
Copy link
Copy Markdown
Contributor Author

stuggi commented May 6, 2026

/retest

@abays abays added the lgtm label May 7, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit fe7a8d8 into openstack-k8s-operators:main May 7, 2026
8 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.

2 participants