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
MGMT-15382: Ensure inspection is disabled on day-2 spoke node BMHs #5406
MGMT-15382: Ensure inspection is disabled on day-2 spoke node BMHs #5406
Conversation
@carbonin: This pull request references MGMT-15382 which is a valid jira issue. 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 kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5406 +/- ##
==========================================
+ Coverage 67.59% 67.92% +0.32%
==========================================
Files 226 226
Lines 33410 33966 +556
==========================================
+ Hits 22584 23071 +487
- Misses 8788 8806 +18
- Partials 2038 2089 +51
|
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
ceace88
to
6a1fede
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avishayt, carbonin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@carbonin: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
/cherry-pick release-ocm-2.8 |
@carbonin: new pull request created: #5419 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 kubernetes/test-infra repository. |
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
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
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:
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.
List all the issues related to this PR
Resolves https://issues.redhat.com/browse/MGMT-15382
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist