Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure inspection is disabled on day-2 spoke node BMHs (openshift#5406)
Recently a validation was merged that prevents hardware details from being set on a BMH when inspection is enabled. This is blocking BMHs from being created on 4.14 spoke clusters when using converged flow with the following error: ``` time="2023-08-01T17:52:14Z" level=error msg="failed to create or update spoke BareMetalHost" func="github.com/openshift/assisted-service/internal/controller/controllers.(*BMACReconciler).reconcileSpokeBMH" file="/assisted-service/internal/controller/controllers/bmh_agent_controller.go:1008" agent=a04cbfd5-729e-4103-b9e1-a97435e19420 agent_namespace=assisted-installer bare_metal_host=ostest-extraworker-0 bare_metal_host_namespace=assisted-installer error="admission webhook \"baremetalhost.metal3.io\" denied the request: inspection has to be disabled for HardwareDetailsAnnotation, check if {'inspect.metal3.io' : 'disabled'}" go-id=635 request_id=75ca96ab-30b2-4a3d-80e0-57ee370af475 ``` This leads to the spoke CSR never being approved and the host never installing. This commit ensures that inspection is explicitly disabled on the BMH created in the spoke cluster to avoid this validation error. This is automatically set by our controller and typically set by users when not using the converged flow, but with the converged flow we are running ironic inspection. Resolves https://issues.redhat.com/browse/MGMT-15382
- Loading branch information