-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS-45927: Stop removing the finalizers from BMH #7253
base: master
Are you sure you want to change the base?
OCPBUGS-45927: Stop removing the finalizers from BMH #7253
Conversation
@MahnoorAsghar: This pull request references Jira Issue OCPBUGS-45927, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MahnoorAsghar The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7253 +/- ##
=======================================
Coverage 67.93% 67.93%
=======================================
Files 300 300
Lines 40895 40891 -4
=======================================
- Hits 27780 27779 -1
+ Misses 10624 10623 -1
+ Partials 2491 2489 -2
|
@MahnoorAsghar: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
This code was added to handle OCPBUGS-7581, and it was meant to be removed after it was resolved. Its fix has long merged and was backported till OCP 4.12; therefore this code can now be removed.
Removing the BMH finalizer causes the BMH to instantly be deleted, which means that BMO is unable to do any necessary cleanup. In OCPBUGS-25927, BMO encounters an error while attempting to update the status of an already deleted BMH:
2024-11-13T07:28:35.215792213Z {"level":"info","ts":1731482915.2157853,"logger":"controllers.BareMetalHost","msg":"saving host status","baremetalhost":{"name":"gateway-1.workload.fc18.lab","namespace":"openshift-machine-api"},"provisioningState":"unmanaged","operational status":"discovered","provisioning state":"deleting"}
2024-11-13T07:28:35.220351574Z {"level":"error","ts":1731482915.2201939,"msg":"Reconciler error","controller":"baremetalhost","controllerGroup":"metal3.io","controllerKind":"BareMetalHost","BareMetalHost":{"name":"gateway-1.workload.fc18.lab","namespace":"openshift-machine-api"},"namespace":"openshift-machine-api","name":"gateway-1.workload.fc18.lab","reconcileID":"dbda2c02-2b4d-4a5e-ac98-531d4fc46263",
"error":"failed to save host status after "unmanaged": Operation cannot be fulfilled on baremetalhosts.metal3.io "gateway-1.workload.fc18.lab": StorageError: invalid object, Code: 4, Key: /kubernetes.io/metal3.io/baremetalhosts/openshift-machine-api/gateway-1.workload.fc18.lab, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: c207fd48-3dc4-455a-ae12-b4e44fda2285, UID in object meta: ","errorVerbose":"Operation cannot be fulfilled on baremetalhosts.metal3.io "gateway-1.workload.fc18.lab": StorageError: invalid object, Code: 4, Key: /kubernetes.io/metal3.io/baremetalhosts/openshift-machine-api/gateway-1.workload.fc18.lab, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: c207fd48-3dc4-455a-ae12-b4e44fda2285, UID in object meta: \nfailed to save host status after "unmanaged"\n
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)This PR should be backported till 4.12