describe unmanaged state for hosts#120
Conversation
8614c1a to
befc79d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann 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 |
| credentials, we want to be able to define hosts without BMC | ||
| credentials so that the credentials can be added at a later | ||
| time. Consumers of the hosts, including the | ||
| `cluster-api-provider-metal3`, need to be able to recognize such hosts |
There was a problem hiding this comment.
Should we also include cluster-api-provider-baremetal here now that the projects differ significantly.
There was a problem hiding this comment.
I left that out because it's a downstream concern, but the changes would essentially be the same.
|
Looks good to me. Some minor comments:
|
I think that's covered by https://github.com/metal3-io/baremetal-operator/pull/569/files#diff-0f426376b964e609c5c4618eb8bed3b2R372
I don't think the remediation code should change to behave differently when credentials are not present. That expects the caller to understand too much about how the baremetal operator works with hosts. Even with credentials present, they might be wrong, and therefore the remediation would fail. The BMC might be frozen, and so remediation would fail. The BMC might be disconnected, and so remediation would fail. The calling code needs to deal with all of those cases. It should be able to ask for a reboot and then if that reboot does not happen for any reason it should be able to make a new decision about what to do. |
Define a new state for newly-created Hosts with no BMC details. We need the state definition so we can add it to CAPM3 so that does not break when metal3-io#569 merges. See metal3-io/metal3-docs#120 for more details.
Co-Authored-By: Zane Bitter <zbitter@redhat.com> Signed-off-by: Doug Hellmann <dhellmann@redhat.com>
befc79d to
c28af76
Compare
|
/lgtm |
Related to metal3-io/baremetal-operator#569
Co-Authored-By: Zane Bitter zbitter@redhat.com