Command · pk-metal
pk-metal status
changes no machineneeds the cluster
pk-metal status shows the state of all machines in one view. It reads only.
Below each table, it gives the reason for each row that has a block or a failure, and the command to run next.
Synopsis
Section titled “Synopsis”pk-metal status [-o table|json]The command takes no arguments.
| Flag | Default | Description |
|---|---|---|
-o<string> | table | Output format: table or json. |
This command also accepts the global flags --kubeconfig and --context.
What it does
Section titled “What it does”- The command lists the objects of the operator in the management cluster.
- It makes one row for each object and finds the rows that need a person.
- It prints the tables, or one JSON object with
-o json. - It exits with code 2 if one row or more needs a person.
Tables
Section titled “Tables”| Table | Rows | Columns |
|---|---|---|
HOST |
Each Host | Asset, vendor, phase, claim, node and address, BMC paths that answer, block |
OPERATION |
Each HostOperation that did not succeed | Host, phase, approver, block |
ENDPOINT |
Each ManagementEndpoint | Asset, vendor, phase, address, block |
CLAIM |
Each HostClaim that has no machine | Asset, phase, block. A hold shows as (on hold). |
CLUSTER |
Each TalosCluster | Talos and Kubernetes versions (spec and nodes), ready nodes, etcd, backup, API |
NODE |
Each TalosNode | Cluster, role, host, address, version, boot stage, readiness |
The command shows OPERATION and CLAIM only when they have rows.
A failed operation stays in the table until you run pk-metal retry.
Rows that need a person
Section titled “Rows that need a person”- Host
- The Host or its claim has a block, or the phase is Failed.
- Operation
- The phase is Failed or Aborted, or the operation has a block. This includes an operation that waits for approval.
- Endpoint
- The endpoint has a block, or the phase is Unreachable or Mismatch.
- Claim
- The claim has a block, or the phase is Ambiguous.
- Cluster
- The cluster is bootstrapped and its etcd or its Kubernetes API is not healthy. Or the backup is not current.
- Node
- The cluster is bootstrapped, the node reported a version, and the node is not Ready.
Two blocks of an operation need no person: OperationQueued and OutsideMaintenanceWindow. The operator continues by itself.
Examples
Section titled “Examples”pk-metal status
HOST ASSET VENDOR PHASE CLAIM NODE PATHS BLOCKED
simhw2288v5000397 asset-07 Huawei Provisioned default/cp-1 cp-1 (10.0.0.11) 1/1
simhw2288v5000398 asset-08 Huawei Assigned default/cp-2 cp-2 (10.0.0.12) 1/1 Approval(provision-simhw2288v5000398-5e6f7a8b)
simhw2288v5000399 asset-09 Huawei Available - - 1/1
simhw2288v5000398: operation provision-simhw2288v5000398-5e6f7a8b waits for approval
OPERATION HOST PHASE APPROVED BLOCKED
pk-metal/provision-simhw2288v5000398-5e6f7a8b simhw2288v5000398 AwaitingApproval - AwaitingApproval
pk-metal/provision-simhw2288v5000398-5e6f7a8b: waits for approval; see the plan and approve: pk-metal approve pk-metal/provision-simhw2288v5000398-5e6f7a8b
ENDPOINT ASSET VENDOR PHASE ADDRESS BLOCKED
asset-07 asset-07 Huawei Ready https://192.0.2.11
asset-08 asset-08 Huawei Ready https://192.0.2.12
asset-09 asset-09 Huawei Ready https://192.0.2.13
CLUSTER TALOS WANT/RUN K8S WANT/RUN CP WORKERS ETCD BOOTSTRAPPED BACKUP AVAILABLE
lab v1.14.6 / v1.14.6 v1.36.2 / v1.36.2 1/3 0/0 EtcdRunning 2026-11-24T06:12:40Z SnapshotRecent ClusterAvailable
NODE CLUSTER ROLE HOST ADDRESS VERSION STAGE READY
cp-1 lab controlplane simhw2288v5000397 10.0.0.11 v1.14.6 running Ready
cp-2 lab controlplane - 10.0.0.12 - - -
echo $?
2
Use the JSON output in a script. The exit status tells the script if a person must act.
pk-metal status -o json | jq '.hosts[] | select(.needsAttention)'Show the status again each 10 seconds.
watch -n 10 pk-metal statusJSON output
Section titled “JSON output”-o json prints the same facts as one object.
| Key | Content |
|---|---|
version |
1. Keys do not change while the version is 1. New keys can come. |
needsAttention |
true if one row or more needs a person. |
hosts |
name, asset, vendor, phase, claim, node (name, address, or null), pathsUp, pathsTotal, blockedOn, message, needsAttention |
operations |
namespace, name, host, phase, approvedBy, blockedOn, message, needsAttention |
endpoints |
name, asset, vendor, phase, address, blockedOn, message, needsAttention |
claims |
namespace, name, asset, host, phase, blockedOn, message, onHold, needsAttention |
clusters |
name, talosVersion, talosVersionsRunning, kubernetesVersion, kubernetesVersionRunning, controlPlanes, readyControlPlanes, workers, readyWorkers, available, etcd, bootstrappedAt, backup, backupMessage, message, needsAttention |
nodes |
name, cluster, role, host, address, version, stage, ready, message, needsAttention |
Each key is always there. An empty value is "".
The lists operations and claims hold all objects, also the operations that succeeded and the claims that are bound.
Objects
Section titled “Objects”| Object | Access | Purpose |
|---|---|---|
| Host, ManagementEndpoint, HostClaim, HostOperation | list | The first four tables. The command fails if it cannot read them. |
| TalosCluster, TalosNode | list | The cluster and node tables. A cluster without these kinds shows no such tables. |
| EtcdBackupPolicy | list | The BACKUP column. Without permission, the column is empty. |
The command writes nothing.
Exit status
Section titled “Exit status”| Code | Meaning |
|---|---|
0 | Nothing needs a person. |
1 | Error: the cluster could not be read. |
2 | Something is blocked or failed (a row has needsAttention), including operations that wait for approval, a bootstrapped cluster whose etcd or Kubernetes API is unhealthy or whose backup is stale, a node of a running cluster that is not Ready, and a rollout that waits for approval, cannot plan, pauses after its first node, or failed. |
Related
Section titled “Related”- pk-metal top shows the same objects as a live view.
- pk-metal approve, pk-metal retry and pk-metal rollout are the commands that the notes name.
- Phases and conditions explains the phase and the block.
- Operation failed, BMC unreachable, Host in Mismatch and Node not ready start from this output.
- Collect diagnostics