Skip to content

Day 2

Apply BIOS settings

Set the same BIOS attributes on a group of machines. The operator drains running nodes before the reset.

On a machine that runs a node, the operator wraps the change in a drain:

  1. ApplyBios stages the attributes on the BMC. Nothing on the running node changes.
  2. For a control plane: WaitEtcdHealthy.
  3. Cordon and Drain.
  4. TalosReboot in the mode PowerCycle. The firmware applies the staged attributes.
  5. WaitNodeReady. For a control plane: WaitEtcdHealthy again.
  6. Uncordon.

On a machine with no node, the operation is ApplyBios and a PowerCycle.

  1. Write a BiosProfile. Select the machines by a discovered label or by a claim label.

    bios-worker.yaml
    apiVersion: metal.platform-kit.org/v1alpha1
    kind: BiosProfile
    metadata:
    name: role-worker
    spec:
    match:
    matchLabels:
    role: worker
    layer: 10
    attributes:
    QuietBoot: true
  2. Apply it.

    Terminal window
    kubectl apply -f bios-worker.yaml
  3. Show the result for each machine.

    Terminal window
    kubectl get biossettings

    CONVERGED is False for the machines that differ. The operator proposes one operation for each.

  4. Show the proposals.

    Terminal window
    pk-metal status

    The names end in -bios-<hash>, for example simhw2288v5000398-bios-4b5c6d7e.

  5. Approve the proposals one at a time, or in a MaintenanceWindow.

    Terminal window
    pk-metal approve pk-metal/simhw2288v5000398-bios-4b5c6d7e
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.