MGMT-16808: Ensure that spoke BMH is marked as PoweredOn #7097
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a new node is added to a Day 2 cluster via a BMH, the resulting BMH is copied to the spoke cluster. Presently, the spoke cluster will always show this with a status of 'poweredOn: false' when the BMH should have a status of 'poweredOn: true'.
This PR changes that by forcing a status update in the
ensureSpokeBMH
As the SpokeBMH is not managed (or even reconciled in any way) by Metal3 then it is acceptable for us to manage the status when copying the BMH to the node.List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist