-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.20
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
In Progress
-
Release Note Not Required
-
None
-
None
-
None
-
None
-
None
Description of problem:
After unintentionally deleting my BMH instead of the ProvisioningRequest CR, the deletion of the PR hung in the metal3-hwmgr-plugin as it fails to delete the non-existent BMH. In order to recover and continue the deletion, I had to delete the finalizer from the AllocatedNode CR. {"time":"2025-09-12T12:55:37Z","level":"INFO","msg":"AllocatedNode is being deleted","controller":"metal3_allocatednode_controller","resource":"AllocatedNode","name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","namespace":"oran-o2ims","action":"reconcile_start","ReconcileRequest":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","resourceVersion":"720405137","generation":2,"startingResourceVersion":"720405137"} {"time":"2025-09-12T12:55:37Z","level":"INFO","msg":"handleAllocatedNodeDeletion","controller":"metal3_allocatednode_controller","node":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","resource":"AllocatedNode","name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","namespace":"oran-o2ims","action":"reconcile_start","ReconcileRequest":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","resourceVersion":"720405137","generation":2,"startingResourceVersion":"720405137"} {"time":"2025-09-12T12:55:37Z","level":"ERROR","msg":"Reconciliation failed","controller":"metal3_allocatednode_controller","duration":8263673,"error":"failed CleanupForDeletedNode: failed to get BMH for node metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21: unable to find BMH (xr8620t-pool/xr8620txdg21): baremetalhosts.metal3.io \"xr8620txdg21\" not found","resource":"AllocatedNode","name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","namespace":"oran-o2ims","action":"reconcile_start","ReconcileRequest":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","resourceVersion":"720405137","generation":2,"startingResourceVersion":"720405137"} {"time":"2025-09-12T12:55:37Z","level":"INFO","msg":"Warning: Reconciler returned both a non-zero result and a non-nil error. The result will always be ignored if the error is non-nil and the non-nil error causes reqeueuing with exponential backoff. For more details, see: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler","controller":"allocatednode","controllerGroup":"plugins.clcm.openshift.io","controllerKind":"AllocatedNode","AllocatedNode":{"name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","namespace":"oran-o2ims"},"namespace":"oran-o2ims","name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","reconcileID":"e99033c9-7891-44b4-89cd-8176f4a7c0d0"} {"time":"2025-09-12T12:55:37Z","level":"ERROR","msg":"Reconciler error","controller":"allocatednode","controllerGroup":"plugins.clcm.openshift.io","controllerKind":"AllocatedNode","AllocatedNode":{"name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","namespace":"oran-o2ims"},"namespace":"oran-o2ims","name":"metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21","reconcileID":"e99033c9-7891-44b4-89cd-8176f4a7c0d0","err":"failed CleanupForDeletedNode: failed to get BMH for node metal3-hwplugin-cnfdg21-xr8620t-pool-xr8620txdg21: unable to find BMH (xr8620t-pool/xr8620txdg21): baremetalhosts.metal3.io \"xr8620txdg21\" not found"}
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1. 2. 3.
Actual results:
Expected results:
The metal3-hwmgr-plugin should be able to handle the case where the BMH no longer exists.
Additional info: