-
Notifications
You must be signed in to change notification settings - Fork 27
Merge upstream 20210311 #133
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
Merge upstream 20210311 #133
Conversation
This adds the required changes to the provisioner to support
customised reboot annotations, allowing a node to be powered
off (or fenced) more quickly when required. The default
behaviour prior was to attempt a softPowerOff() first and only
attempt a hardPowerOff() if that failed. With this commit and
its counterparts for the baremetal-operator, by setting the
annotation to have an additional mode, e.g. {"mode": "hard"},
the provisioner will immediately power down the node. If this
isn't listed, or is malformed, we still retain the softPowerOff()
behaviour.
The default reboot-interface behaviour is to attempt a soft power off, and if this fails, revert to a hard power off (PR metal3-io#294). For high availability use-cases we require the ability to immediately power-off a node. This PR attempts to address that requirement and is part of a wider solution requiring the CAPBM to set the annotation that we have detailed and implemented in this commit. The baseline provisioner API changes have been provided in an earlier commit. CAPBM PR: openshift/cluster-api-provider-baremetal#138 Also see: https://bugzilla.redhat.com/show_bug.cgi?id=1927678
In this commit we add further integration for the RebootMode type and no longer rely on a boolean for understanding whether the reboot request was for a hardPowerOff() or softPowerOff(). This will allow us to expand the modes we support later down the line if required without any significant modifications required to the provisioner API.
docs: clarifies power management for externally managed hosts
Implement explicit reboot mode options
Signed-off-by: zouyu <[email protected]>
Bump the Golang version to 1.16
Currently we force the status annotation to provide every field, but when metal3-io#796 lands it may be preferable to allow a subset, so it's possible to set only a subset of the hardware status fields when inspection is disabled.
Make BMH HardwareDetails fields optional
Signed-off-by: zouyu <[email protected]>
Signed-off-by: zouyu <[email protected]>
Support RAID configuration for baremetal server
This variable has a well known default, just use it.
Signed-off-by: zouyu <[email protected]>
Development: account for unset GOPATH
Fix some typos in PR292
As described in metal3-io/metal3-docs#155 This enables addition of only the hardware part of the status, unlike the status annotation which can only be set on the first reconcile, since it allows all fields of the status to be modified.
Adds documentation for these interfaces, more information can be found in metal3-io/metal3-docs#155
- update go.mod - port to controller-runtime/pkg/log - Add ctx to Reconcile - fix UpdateEvent - change Scheme to GetScheme - edit unit tests - add leases rbac permissions
Add inspect.metal3.io/hardwaredetails annotation
This is to align with the rebase proposed via: openshift/baremetal-operator#133
|
/retest Please review the full test history for this PR and help us cut down flakes. |
13 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
@hardys e2e-metal-ipi-ovn-ipv6 looks very broken (last time it passed 02-03) is there a different job e2e you can trigger to test the changes? |
|
/test e2e-metal-ipi-ovn-ipv6 |
Such job is a mandatory one and it is not recommended to be skipped. On the nightly release branch - even though it looks a little bit flaky - it passed few hours ago https://amd64.ocp.releases.ci.openshift.org/releasestream/4.8.0-0.nightly/release/4.8.0-0.nightly-2021-03-14-134919 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
I think as @honza mentioned we need openshift/cluster-baremetal-operator#118 to merge, but I forgot to put a hold on this PR /hold |
|
openshift/cluster-baremetal-operator#118 is now passing CI, @honza PTAL, thanks! |
|
I just LGTM'd openshift/cluster-baremetal-operator#118 so now it's up to CI. |
|
/hold cancel |
|
/test e2e-metal-ipi-ovn-ipv6 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
Ok we now need the CBO change to make it into a 4.8.0-0.ci Accepted build, then hopefully the retests will work |
Rebase on upstream metal3-io/baremetal-operator to pick up the most recent changes