OCPBUGS-135360: [release-4.21] Fix stale MachineOSBuild annotation preventing pool updates #6703
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 238 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.328
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6703"
general
weight: 0.35
yuqi-zhang
What type of PR is this?
/kind bug
What this PR does / why we need it:
This is a backport of #5878 to release-4.21.
When a MachineOSConfig's current-machine-os-build annotation points to:
1. A build for an old rendered config (annotation is stale), OR
2. A build that no longer exists (deleted/pruned)
The node controller would log warnings but not clear the annotation.
This prevented the build controller from creating a new build for the
current rendered config, causing pools to get stuck at 0 machines
configured with the error 'Image is not ready yet'.
Why this backport is needed for 4.21:
OCP-82536 (OCB internal-registry rebuild test) has been failing on every 4.21 nightly run since July, but passes fine
on 4.22/5.0/5.1. Latest failing job:
https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/test-platform-results/pr-logs/pull/openshift_relea
se/61985/periodic-ci-openshift-release-master-nightly-4.21-e2e-metal-ipi-ovn-ipv6/2115048879652081664
Fix:
determine if a change is layer-only vs full rebuild, even when
annotation is missing. This avoids forcing unnecessary image rebuilds
for layer-only changes when annotation was cleared.
This allows the build controller to see the annotation is missing and
trigger creation of the correct type of MachineOSBuild for the current
rendered config.
Which issue(s) this PR fixes:
Fixes: OCPBUGS-135359
Special notes for your reviewer:
Original PR: #5878
Cherry-picked from: 547549756acc1ad76f6017ac34a1357668a65deb
Conflicts were resolved in: