Day 2
Flash firmware
Bring the BMC firmware, or the system firmware (BIOS, NIC, RAID), of a group of machines to one version.
Before you start
Section titled “Before you start”- The firmware image is in your OCI registry, pinned by digest.
- If the registry uses an internal CA, the manager has it (
--registry-ca). - The endpoints are
Verified. The operator writes nothing to a machine that it did not verify. - A person can approve one operation for each machine.
Two kinds of firmware
Section titled “Two kinds of firmware”| BMC firmware | System firmware | |
|---|---|---|
| Field | spec.manager |
spec.system[] |
| Action | FlashFirmware | StageFirmware, then a drained reset |
| Running node | Does not stop | Drained and rebooted, as for BIOS |
| Condition on the Host | FirmwareConverged |
SystemFirmwareConverged |
| Operation name ends in | -firmware-<hash> |
-sysfw-<hash> |
-
Write a FirmwareProfile.
apiVersion: metal.platform-kit.org/v1alpha1kind: FirmwareProfilemetadata:name: x12-bmcspec:match:matchLabels:metal.platform-kit.org/model: X12DPi-N6manager:version: "01.07.09"image: registry.example.org/firmware/x12-bmc@sha256:<digest>apiVersion: metal.platform-kit.org/v1alpha1kind: FirmwareProfilemetadata:name: compute-system-firmwarespec:match:matchLabels:metal.platform-kit.org/vendor: Genericsystem:- component: BIOSversion: "1.9.0"image: registry.example.org/firmware/generic-bios@sha256:<digest> -
Apply it.
Terminal window kubectl apply -f firmware.yaml -
Show the proposals.
Terminal window pk-metal status -
Approve each proposal.
Terminal window pk-metal approve pk-metal/simhw2288v5000398-sysfw-1f2e3d4c
Verify
Section titled “Verify”- The Host shows
FirmwareConverged=TrueorSystemFirmwareConverged=True. kubectl describe managementendpoint <name>shows the new version.
If it fails
Section titled “If it fails”| Reason | Fix |
|---|---|
NoUpdateTransport |
The BMC has no supported push method. Flash it by hand. |
NoMatchingComponent |
component matches no entry of the firmware inventory. Correct the expression. |
ConvergenceFailed |
The flash reported success but the version did not change. See Operation failed. |
ProfileConflict |
Two profiles on one layer disagree. |
Related
Section titled “Related”- Apply BIOS settings runs after the firmware is correct.
- Convergence, Convergence controller
- Reboot a node with
--mode powercyclegives a cold start.