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.
The convergence loop: skip a host in maintenance, match profiles, then manager firmware, system firmware and BIOS, each may propose an operation. Read the Host 1 Stop gone, or in maintenance Match the profiles label selectors 2 Manager firmware compare, propose flashFirmware 3 FirmwareConverged False: AwaitingOperation, … System firmware compare, propose stageFirmware 4 SystemFirmwareConverged False: AwaitingOperation, … BIOS merge, read, validate, drift 5 BiosConverged False: SchemaViolation, … Stamp phase, apply share 6 next pass: --poll-interval or an event Firmware goes first. A new firmware can change what the BIOS offers.
Read the Host. If it is in maintenance, do nothing. The lane continues when the annotation goes.
Select the BIOS and firmware profiles whose selector matches the Host labels.
Compare the manager firmware with the profiles. If it differs, propose a FlashFirmware operation .
Compare the system firmware. It waits for the manager firmware. If it differs, propose an operation that uses StageFirmware and a reboot.
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.
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.
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 group Resources Verbs Scope metal.platform-kit.orghostsget list watch cluster metal.platform-kit.orghosts/statuspatch cluster metal.platform-kit.orgbiosprofilesfirmwareprofilesget list watch cluster metal.platform-kit.orgmanagementendpointsget list watch cluster metal.platform-kit.orgbiossettingsbiosschemasget list watch create update delete cluster metal.platform-kit.orgbiossettings/statusupdate cluster metal.platform-kit.orghostoperationsget list watch create delete cluster metal.platform-kit.orghostclaimsget list watch cluster os.platform-kit.orgtalosnodesget list watch cluster coresecretsget list watch namespace pk-metal