Skip to content

Controller · manager

Convergence controller

The convergence controller drives the BIOS settings and the firmware of each Host toward the profiles that match it. It never changes a machine itself. It proposes a HostOperation, and a person approves it.

Reconciles
BiosSettings (For). The key is the Host name. Controller name convergence.
Reads
BiosProfile and FirmwareProfile objects whose selector matches the Host labels.
Writes
BiosSettings and BiosSchema for each Host, the convergence conditions of the Host, and proposals.
Talks to
The BMC, through a read-only session, to read the BIOS attributes.
Requeue
After --poll-interval while BIOS profiles match. Otherwise only on events.
Proposal TTL
24 hours after success.
Kind Relation Why a change starts a pass
BiosSettings For The desired settings changed.
Host Watches, same name Labels, claim or maintenance changed.
BiosProfile, FirmwareProfile Watches, all Hosts A profile changed. Matching is per Host.
ManagementEndpoint Watches, the Hosts it fronts A new firmware version arrived through the poll.
HostOperation Watches A proposal was approved, failed or succeeded.
HostClaim Watches A claim changes how a reboot must happen.
TalosNode Watches, spec changes only A node came or went. Its status moves too often.
The convergence loop: skip a host in maintenance, match profiles, then manager firmware, system firmware and BIOS, each may propose an operation.Read the Host1Stopgone, or in maintenanceMatch the profileslabel selectors2Manager firmwarecompare, propose flashFirmware3FirmwareConvergedFalse: AwaitingOperation, …System firmwarecompare, propose stageFirmware4SystemFirmwareConvergedFalse: AwaitingOperation, …BIOSmerge, read, validate, drift5BiosConvergedFalse: SchemaViolation, …Stamp phase, apply share6next pass: --poll-interval or an event
Firmware goes first. A new firmware can change what the BIOS offers.
  1. Read the Host. If it is in maintenance, do nothing. The lane continues when the annotation goes.
  2. Select the BIOS and firmware profiles whose selector matches the Host labels.
  3. Compare the manager firmware with the profiles. If it differs, propose a FlashFirmware operation.
  4. Compare the system firmware. It waits for the manager firmware. If it differs, propose an operation that uses StageFirmware and a reboot.
  5. Merge the BIOS profiles in layers into the BiosSettings. Read the BIOS over the BMC. Write the attribute registry into a BiosSchema. Validate the settings against it.
  6. If attributes drifted, propose an ApplyBios operation. For a Host that runs a node, the operation drains the node first and waits for it after.
  7. Stamp the phase and apply the share of this lane.
One plan, one operation
The name of a proposal comes from the hash of its plan. The same plan never makes a second operation. A changed plan withdraws the old proposal if nobody approved it.
Conflict holds whole
If two profiles disagree, the condition is False with ProfileConflict. The last good rendering stays. A disputed state is never applied in part.
Firmware before BIOS
The BIOS lane waits with AwaitingFirmware until both firmware lanes are converged.
Old install on disk
The controller does not power on a Host with metal.platform-kit.org/disk-not-wiped for a BIOS change. It would boot the old node back into its cluster.
Self guard
The controller does not propose a BIOS change on a machine that the operator runs on. See Protection controller.
Object or field When Field manager
BiosSettings spec and status, BiosSchema Each pass with BIOS profiles manager (create, update)
Host BiosConverged, FirmwareConverged, SystemFirmwareConverged When they changed pk-metal-host-convergence (server-side apply)
Host status.firmwareProposed, status.systemFirmwareProposed (plan memory) After a proposal pk-metal-host-convergence
HostOperation with reason BiosConvergence, FirmwareConvergence or SystemFirmwareConvergence Propose (create), withdraw (delete) manager
Condition True False or Unknown
FirmwareConverged InSync ProfileConflict, NoUpdateTransport, AwaitingOperation, OperationFailed, NoReachablePath
SystemFirmwareConverged InSync ProfileConflict, NoMatchingComponent, AwaitingFirmware, InstalledNodeMissing, NoUpdateTransport, SelfDisruption, AwaitingOperation, OperationFailed, NoReachablePath
BiosConverged InSync ProfileConflict, SchemaViolation, AwaitingFirmware, InstalledNodeMissing, DiskNotWiped, SelfDisruption, AwaitingOperation, NoReachablePath
You see Cause Do this
BiosConverged=False, SchemaViolation A profile sets an attribute that the BIOS does not have. Correct the profile. See Apply BIOS settings.
FirmwareConverged=False, AwaitingOperation The flash waits for approval. See Flash firmware.
…Converged=False, OperationFailed The proposal failed. Use Operation failed.
API groupResourcesVerbsScope
metal.platform-kit.orghostsgetlistwatchcluster
metal.platform-kit.orghosts/statuspatchcluster
metal.platform-kit.orgbiosprofilesfirmwareprofilesgetlistwatchcluster
metal.platform-kit.orgmanagementendpointsgetlistwatchcluster
metal.platform-kit.orgbiossettingsbiosschemasgetlistwatchcreateupdatedeletecluster
metal.platform-kit.orgbiossettings/statusupdatecluster
metal.platform-kit.orghostoperationsgetlistwatchcreatedeletecluster
metal.platform-kit.orghostclaimsgetlistwatchcluster
os.platform-kit.orgtalosnodesgetlistwatchcluster
coresecretsgetlistwatchnamespace pk-metal