Concept
Phases and conditions
Each object has conditions. A condition is one fact with a status, a reason and a message. The phase is one word that summarizes the conditions. Read the conditions to know why something waits.
- Condition
- A fact with a type (for example
Verified), a status (True,FalseorUnknown), a reason and a message in plain words. - Reason
- One CamelCase word that a script can compare, for example
SerialMismatch. - Phase
- A summary of the conditions. The package
internal/phasederives it again on each pass. It has no memory of the previous phase. - blockedOn
- The reason of the condition that holds the object now. pk-metal status shows it in the BLOCKED column.
- A controller decides only on conditions. It never reads a phase.
- Only the stamp functions in
internal/phasewritephaseandblockedOn. A test fails on any other write. - The derivation is a list in order of precedence. Hard stops come first, for example
UnreachableandMismatch.
Host phases
Section titled “Host phases”Phases of each kind
Section titled “Phases of each kind”| Kind | Phases |
|---|---|
| ManagementEndpoint | Pending, Connecting, Inventorying, Verifying, Configuring, Ready, Unreachable, Mismatch |
| Host | Enrolling, Inspecting, Available, Assigned, Provisioning, Provisioned, Releasing, Failed, Maintenance |
| HostClaim | Pending, Bound, Ambiguous |
| HostOperation | Proposed, AwaitingApproval, Running, Succeeded, Failed, Aborted |
In the reference
Section titled “In the reference”- Host conditions and the condition table on each kind page
- pk-metal status and pk-metal top