ACM-44197: Disable DataImage deletion by default - #865
Conversation
For performance reasons, deleting the DataImage after the cluster is installed will now only happen as a post-installation step if the ICI has the post-cleanup annotation, which will not be added by our controllers. Because of this we will also go back to detaching the BMH at the end of the installation, and if post-cleanup is done then it will remove the detached annotation as well.
|
@giladravid16: This pull request references ACM-44197 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe installation controllers now retain DataImages, apply backup labels, detach BareMetalHosts after installation, and use explicit post-cleanup annotation values. Reconciliation no longer adds the post-cleanup annotation automatically. ChangesInstallation lifecycle changes
Priority: ⬇️ Low — Defer this installation-controller change because it only alters DataImage retention, backup labeling, and BareMetalHost detachment without supplied evidence of elevated product or external urgency. Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change retains DataImages by default, labels them for backup, and detaches BareMetalHosts after installation while limiting cleanup to explicit opt-in. No current merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant ImageClusterInstallReconciler
participant DataImage
participant ImageClusterInstallMonitor
participant BareMetalHost
ImageClusterInstallReconciler->>DataImage: apply backup label
ImageClusterInstallMonitor->>BareMetalHost: add detached annotation
ImageClusterInstallMonitor-->>DataImage: retain DataImage
🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (13 passed)
Full details: Test Structure And QualityExplanation The changed monitor tests add several assertions without meaningful failure messages. For example, Resolution Add a diagnostic message to each new or changed monitor assertion. State the expected operation and resource, for example
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 golangci-lint (2.13.2)level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: context deadline exceeded" Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giladravid16 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-ibio |
|
/lgtm |
|
/override ci/prow/e2e-ibio-v4v6 |
|
/cherry-pick backplane-5.0 |
|
@giladravid16: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@giladravid16: Overrode contexts on behalf of giladravid16: ci/prow/e2e-ibio-v4v6 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@giladravid16: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
b621987
into
openshift:main
|
@giladravid16: new pull request created: #866 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
For performance reasons, deleting the DataImage after the cluster is installed will now only happen as a post-installation step if the ICI has the post-cleanup annotation, which will not be added by our controllers.
Because of this we will also go back to detaching the BMH at the end of the installation, and if post-cleanup is done then it will remove the detached annotation as well.
Summary by CodeRabbit
New Features
Bug Fixes