Day 2
Apply BIOS settings
Set the same BIOS attributes on a group of machines. The operator drains running nodes before the reset.
Before you start
Section titled “Before you start”- The firmware of the machines agrees with their FirmwareProfile. BIOS changes wait for firmware.
- You know the attribute names and values from the BiosSchema of the machine model.
- A person can approve one operation for each machine.
What the operation does
Section titled “What the operation does”On a machine that runs a node, the operator wraps the change in a drain:
- ApplyBios stages the attributes on the BMC. Nothing on the running node changes.
- For a control plane: WaitEtcdHealthy.
- Cordon and Drain.
- TalosReboot in the mode
PowerCycle. The firmware applies the staged attributes. - WaitNodeReady. For a control plane: WaitEtcdHealthy again.
- Uncordon.
On a machine with no node, the operation is ApplyBios and a PowerCycle.
-
Write a BiosProfile. Select the machines by a discovered label or by a claim label.
bios-worker.yaml apiVersion: metal.platform-kit.org/v1alpha1kind: BiosProfilemetadata:name: role-workerspec:match:matchLabels:role: workerlayer: 10attributes:QuietBoot: true -
Apply it.
Terminal window kubectl apply -f bios-worker.yaml -
Show the result for each machine.
Terminal window kubectl get biossettingsCONVERGEDisFalsefor the machines that differ. The operator proposes one operation for each. -
Show the proposals.
Terminal window pk-metal statusThe names end in
-bios-<hash>, for examplesimhw2288v5000398-bios-4b5c6d7e. -
Approve the proposals one at a time, or in a MaintenanceWindow.
Terminal window pk-metal approve pk-metal/simhw2288v5000398-bios-4b5c6d7e
Verify
Section titled “Verify”- BiosSettings shows
Converged=True. - The Host shows
BiosConverged=True.
If it fails
Section titled “If it fails”| Reason on the BiosSettings or Host | Fix |
|---|---|
ProfileConflict |
Two profiles on the same layer set one attribute to different values. Change one layer. |
SchemaViolation |
The attribute or the value is not in the BIOS schema of the machine. |
AwaitingFirmware |
Do Flash firmware first. |
InstalledNodeMissing |
The claim names a TalosNode that does not exist. The operator cannot drain it. |
ConvergenceFailed |
The operation succeeded but the BMC did not change. See Operation failed. |
| The drain does not end | Drain stuck |
To try a failed BIOS proposal again, use pk-metal retry. It marks the proposal. The operator replaces it.