fix: unblock the acm-uninstall controller by ensuring that no resource is still owned by ACM #8165
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8165"
general
weight: 0.35
machi1990
The PR https://github.com/Azure/ARO-HCP/pull/7406 contained a CS change https://github.com/openshift-online/aro-hcp-clusters-service/commit/f89628c8be96590ee76a3c7c64cd53ab6ba5f253 that ensured that no CR is still managed by Maestro/ACM however there was a design decision to ignore resources that have been in deleting state since the expectation was that deletion was going to just complete. That wasn't the case and we noticed that there are still some ManifestWork that contains various resources e.g HC/HCP Namespace, HostedCluster CR that are still in deletion state. Because of these resources the acm-uninstall controller prereq are not met causing that controller to loop at that state waiting for these ownership to be removed.
To fix that, a new controller is added that ensures the following;
The added controller is intented to simply remove the ownerReferences and not ensure that the resources that were being deleted are deleted. That's a separate initiated whose work is tracked by https://github.com/Azure/ARO-HCP/pull/7762
These are the kusto queries
That show what the PR brings.
We can see that the uninstall controller was stuck with logs like
or
And eventually the uninstall prereq were met due to the changes in the PR and we began uninstall the ManagedCluster CRs
And eventually, moved on to doing the rest of the steps, up until all was done
And for the new controller, the logs in https://dataexplorer.azure.com/clusters/hcp-dev-us-2.eastus2/databases/HostedControlPlaneLogs?query=H4sIAAAAAAAAA3WQzWrDMBCE732KRZfYUAnLJqEJ5A16S0%2B9lLW8OA76Q5JjAn34SiQ0vuS2zHy7M%2ByACXuMVG1OFK6Tok83xk0tsqqzqJxNOFkKdxnefmE5UyBQeo6JAjyACMxTiHyOS2fQ3rgZTWKAdgCLhqJHRT9lWi0UhONI9gFqN4riBqc1hTt9PAJDZbhbcod4njxXmtDOnv03SVO%2Bn9B46CktRBaqARMVuWJt0%2B64lFx%2BfEl5aJpDtxftfvvNaiFeUd2KqnOMD%2B5CKj2D3kvVbLgw5A%2F0t1UFjOoPFHPMP1IBAAA%3D shows exactly what steps were executed.