-
Notifications
You must be signed in to change notification settings - Fork 247
MGMT-20398: Block host install if Ironic Agent is not completed #8743
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
base: master
Are you sure you want to change the base?
Conversation
|
@CrystalChun: This pull request references MGMT-20398 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 "4.22.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. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Excluded labels (none allowed) (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Comment |
|
Skipping CI for Draft Pull Request. |
|
/test ? |
|
@CrystalChun: The following commands are available to trigger required jobs: The following commands are available to trigger optional jobs: Use 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. |
|
/test edge-subsystem-kubeapi-aws edge-subsystem-aws |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CrystalChun 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 |
e69d9fe to
b4a9fee
Compare
|
/test edge-subsystem-kubeapi-aws edge-subsystem-aws |
29b80a8 to
85e8081
Compare
|
/test edge-subsystem-kubeapi-aws edge-subsystem-aws |
a73f408 to
a660c71
Compare
|
/test edge-subsystem-kubeapi-aws edge-subsystem-aws |
a660c71 to
2faea21
Compare
|
/test edge-subsystem-kubeapi-aws edge-subsystem-aws |
|
@CrystalChun: This pull request references MGMT-20398 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 "4.22.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. |
|
/cc @carbonin |
Codecov Report❌ Patch coverage is Please upload reports for the commit 8258b3a to get more accurate results. Additional details and impacted files@@ Coverage Diff @@
## master #8743 +/- ##
==========================================
- Coverage 43.82% 43.52% -0.31%
==========================================
Files 414 412 -2
Lines 71747 71649 -98
==========================================
- Hits 31443 31185 -258
- Misses 37447 37660 +213
+ Partials 2857 2804 -53
🚀 New features to boost your workflow:
|
|
/retest-required |
|
@CrystalChun: all tests passed! 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. |
Allows tracking the status of the ironic agent through the host model.
If a host requests to install, we'll first check if Ironic is either complete or not required. If it is required and still in progress, then we'll error out before sending that command to the host.
If the converged flow is enabled, then we set the status to `in_progress` if the BMH is not provisioning or provisioned or to `completed` otherwise. If the converged flow is not enabled, then the status is set to `not_required`.
Reducing the cyclomatic complexity of updateIfNeeded function
2faea21 to
8258b3a
Compare
In kube-api there are instances where a user might manually start the assisted installer agent before the Ironic Agent completes all that it needs to do. This leads to the host installing incorrectly.
To prevent this, we'll block the installation from starting until we know that Ironic Agent has completed if it is enabled.
If it's not enabled, the install should progress as normal.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Manual testing
With converged flow enabled
Blocking install
annotations: infraenv.agent-install.openshift.io/ironic-agent-image-override: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:3d99b3160fad7da23af2f9dcee8a9804d3f23858f22b09ad1e1606fff80e756dHappy flow
Regression test without BMH
Checklist
docs, README, etc)Reviewers Checklist