Skip to content

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.

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.phase and status.blockedOn.

Phases and conditions explains why the operator works in this way.

A Host has nine phases. The Host controller calculates the inputs.

Host phases. A Host moves from Enrolling to Provisioned. A release takes it back to Available. Failed and Maintenance are stops.EnrollingInspectingAvailableAssignedProvisioningProvisionedReachableVerifiedclaimBootedOSReadyFailedReleasingMaintenanceany phase, by annotationFalseclaim deletedwiped, free again
Host phases. The phase is a summary of the conditions.
PhaseMeaningThe operator shows it whenRule
EnrollingThe Host exists. The BMC did not answer yet.No other rule applies.9
InspectingThe BMC answers. The operator reads the hardware and compares the serial number.Inspected is present, or Reachable is True.8
AvailableThe operator knows the machine, and no claim holds it.Inspected and Verified are True.7
AssignedA claim holds the machine. No work on the machine started.A claim holds the Host.6
ProvisioningAn install runs on the machine.A claim holds the Host, and Booted or OSReady is present.5
ProvisionedThe node on the machine reports that it is ready.OSReady is True.4
ReleasingThe claim is gone. The operator cleans the machine and frees it.The claim that holds the Host is in deletion.2
FailedAn install did not work. The operator does not try it again.Booted or OSReady is False.3
MaintenanceA 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

A ManagementEndpoint has eight phases. Two controllers write its conditions: one observes the BMC, and one configures it.

ManagementEndpoint phases. An endpoint moves from Pending to Ready. Unreachable and Mismatch are stops.PendingConnectingInventoryingVerifyingConfiguringwith a profileReadyfirst passReachableInventoriedVerifiedConfiguredUnreachableMismatchReachable FalseVerified FalseThe operator continues to read the BMC.A stop ends when the condition changes.
ManagementEndpoint phases. Each arrow has the condition that becomes True.
PhaseMeaningThe operator shows it whenRule
PendingThe ManagementEndpoint exists. The operator did not examine it yet.The object has no conditions.1
ConnectingThe operator tries to open a Redfish session.Reachable is absent or Unknown.2
InventoryingThe operator reads the facts of the BMC: vendor, model, systems, media slots and firmware.Inventoried is not True.5
VerifyingThe operator compares the MAC address and the serial number with the Asset.Verified is not True.6
ConfiguringAn EndpointProfile applies, and the operator configures the BMC.Configured is present and not True.7
ReadyThe BMC answers, the identity agrees, and the configuration is complete.No other rule applies.8
UnreachableNothing answered at the address, or the login failed.Reachable is False.3
MismatchThe 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.

A HostClaim has three phases. The HostClaim controller writes its conditions.

HostClaim phases. A claim is Pending until it binds one Host. It is Ambiguous when the BMC manages more than one machine and the claim names none.Pendingno HostBoundone HostAmbiguoustwo or more systemsBound is TrueAmbiguousSystemThe install starts whenthe claim has spec.os.Make a new claimwith spec.systemRef.
HostClaim phases. The phase tells you how many machines the claim found.
PhaseMeaningThe operator shows it whenRule
PendingThe 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
BoundThe claim holds one Host. If an install waits for a person, blockedOn gives the reason.Bound is True.1
AmbiguousThe 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

A HostOperation has six phases. The HostOperation controller writes its conditions.

HostOperation phases. An operation moves from Proposed through AwaitingApproval and Running to Succeeded. Failed and Aborted are the other final phases.ProposedAwaitingApprovalRunningSucceededgateapprovedExecutedFailedAbortedaction failedabortProposed, with blockedOnapproved, but it waits for a queue or a window
HostOperation phases. Succeeded, Failed and Aborted are final.
PhaseMeaningThe operator shows it whenRule
ProposedThe 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
AwaitingApprovalThe operation waits for a person to approve it.Approved is present and not True.4
RunningThe operator does the actions, one after the other.Approved is True, and Executed is absent or has the reason Executing.5
SucceededAll actions are complete. This phase is final.Executed is True.1
FailedAn action failed. The operator does not try it again. This phase is final.Executed is False with a reason that is not Aborted.3
AbortedA person stopped the operation. This phase is final.Executed is False with the reason Aborted.2

Type OperationPhase in HostOperationStatus.phase ·hostoperation_types.go

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.

These kinds have no phase. Read their conditions.

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)