Catalog · status.phase
Phases
A phase is one word in status.phase that tells a person where an object is.
Four kinds have a phase. This page lists each phase, what it tells you, and the rule that gives it.
How to read a phase
Section titled “How to read a phase”- A summary
- The operator calculates the phase from the conditions on each pass. The phase has no memory of the phase before.
- Rules in order
- Each kind has a list of rules. The first rule that applies gives the phase. The column "Rule" shows this order.
- For people
- The controllers read conditions and do not read the phase. Your scripts must also read the conditions.
- One writer
- Only the package phase.go writes
status.phaseandstatus.blockedOn.
Phases and conditions explains why the operator works in this way.
A Host has nine phases. The Host controller calculates the inputs.
| Phase | Meaning | The operator shows it when | Rule |
|---|---|---|---|
Enrolling | The Host exists. The BMC did not answer yet. | No other rule applies. | 9 |
Inspecting | The BMC answers. The operator reads the hardware and compares the serial number. | Inspected is present, or Reachable is True. | 8 |
Available | The operator knows the machine, and no claim holds it. | Inspected and Verified are True. | 7 |
Assigned | A claim holds the machine. No work on the machine started. | A claim holds the Host. | 6 |
Provisioning | An install runs on the machine. | A claim holds the Host, and Booted or OSReady is present. | 5 |
Provisioned | The node on the machine reports that it is ready. | OSReady is True. | 4 |
Releasing | The claim is gone. The operator cleans the machine and frees it. | The claim that holds the Host is in deletion. | 2 |
Failed | An install did not work. The operator does not try it again. | Booted or OSReady is False. | 3 |
Maintenance | A person took the machine out of the lifecycle for hardware work. | The Host has the annotation metal.platform-kit.org/maintenance. | 1 |
Type HostPhase in HostStatus.phase ·host_types.go
ManagementEndpoint
Section titled “ManagementEndpoint”A ManagementEndpoint has eight phases. Two controllers write its conditions: one observes the BMC, and one configures it.
| Phase | Meaning | The operator shows it when | Rule |
|---|---|---|---|
Pending | The ManagementEndpoint exists. The operator did not examine it yet. | The object has no conditions. | 1 |
Connecting | The operator tries to open a Redfish session. | Reachable is absent or Unknown. | 2 |
Inventorying | The operator reads the facts of the BMC: vendor, model, systems, media slots and firmware. | Inventoried is not True. | 5 |
Verifying | The operator compares the MAC address and the serial number with the Asset. | Verified is not True. | 6 |
Configuring | An EndpointProfile applies, and the operator configures the BMC. | Configured is present and not True. | 7 |
Ready | The BMC answers, the identity agrees, and the configuration is complete. | No other rule applies. | 8 |
Unreachable | Nothing answered at the address, or the login failed. | Reachable is False. | 3 |
Mismatch | The BMC at this address is not the machine that the Asset describes. The operator does nothing to it. | Verified is False. | 4 |
Type EndpointPhase in ManagementEndpointStatus.phase ·managementendpoint_types.go
The phase Configuring shows only when an EndpointProfile applies to the endpoint.
HostClaim
Section titled “HostClaim”A HostClaim has three phases. The HostClaim controller writes its conditions.
| Phase | Meaning | The operator shows it when | Rule |
|---|---|---|---|
Pending | The claim holds no Host. If blockedOn is empty, the operator waits for the machine to appear. | Bound is absent, or False with a reason that is not AmbiguousSystem. | 3 |
Bound | The claim holds one Host. If an install waits for a person, blockedOn gives the reason. | Bound is True. | 1 |
Ambiguous | The BMC manages more than one machine, and the claim does not name one. The operator does not select one for you. | Bound is False with the reason AmbiguousSystem. | 2 |
Type ClaimPhase in HostClaimStatus.phase ·hostclaim_types.go
HostOperation
Section titled “HostOperation”A HostOperation has six phases. The HostOperation controller writes its conditions.
| Phase | Meaning | The operator shows it when | Rule |
|---|---|---|---|
Proposed | The operation exists and did not start. With a blockedOn reason, it has an approval but waits, for example for a maintenance window. | Approved is absent. Or Approved is True and Executed has a reason that is not Executing. | 6 |
AwaitingApproval | The operation waits for a person to approve it. | Approved is present and not True. | 4 |
Running | The operator does the actions, one after the other. | Approved is True, and Executed is absent or has the reason Executing. | 5 |
Succeeded | All actions are complete. This phase is final. | Executed is True. | 1 |
Failed | An action failed. The operator does not try it again. This phase is final. | Executed is False with a reason that is not Aborted. | 3 |
Aborted | A person stopped the operation. This phase is final. | Executed is False with the reason Aborted. | 2 |
Type OperationPhase in HostOperationStatus.phase ·hostoperation_types.go
blockedOn
Section titled “blockedOn”status.blockedOn tells you why an object does not continue. It is empty when the object is not blocked.
The same reason can show in more than one phase, thus it is a different field.
| Kind | Value of blockedOn |
Source |
|---|---|---|
| Host, ManagementEndpoint | The reason of Verified, for example SerialMismatch |
Verified is False |
| Host, ManagementEndpoint | Approval(<domain>), for example Approval(Provisioning) |
ApprovalPending is True |
| Host | The reason of DiskWiped, for example InstalledNodeRemains |
DiskWiped is False |
| Host | HostInMaintenance |
The Host is in Maintenance and no other reason applies |
| HostClaim | The reason of Bound, for example HostAlreadyClaimed |
The claim holds no Host |
| HostClaim | Approval(Provisioning) |
Provisioned is False with the reason AwaitingApproval: the install operation waits for approval |
| HostClaim | The reason of Provisioned, for example HeldByUser |
The claim holds a Host, and a person must act |
| HostOperation | The reason of Approved, for example AwaitingApproval |
The operation has no approval |
| HostOperation | The reason of Executed, for example OutsideMaintenanceWindow |
The operation has an approval and waits |
For a Host and a ManagementEndpoint, the rows are in order of precedence. A failed verification comes before an approval that waits.
A HostClaim with the reason HostNotDiscovered is not blocked. The machine did not appear yet, and the operator waits.
Other kinds
Section titled “Other kinds”These kinds have no phase. Read their conditions.
- Asset: the condition
Materialized. - MaintenanceWindow: the field
status.openand the conditionValid. - BiosSettings: the condition
Converged. - TalosNode, TalosCluster, TalosRollout, BootAsset, EtcdBackupPolicy and EtcdSnapshot: the conditions of the group
os.platform-kit.org.
Link to a phase
Section titled “Link to a phase”Each phase has an anchor: the kind and the phase in lower case, with a hyphen between them.
[Available](ref:phases#host-available)[Mismatch](ref:phases#managementendpoint-mismatch)