Run the day-0 verification checks¶
What you will end up with¶
Each of the four day-0 phases confirmed against the component that owns it, and a named phase to work on if one does not pass.
Prerequisites¶
- A control-plane endpoint on the active profile.
kubectlpointed at the cluster running your nodes, andjq.
export CP_NS=xratu-cp
export CP_CLI_ENDPOINT="http://127.0.0.1:18080"
export ORG=acme
export DP_NS=xratu-dataplane
export DP_INSTALL=dp-eu-west1
export DP_NODE="${DP_INSTALL}-0"
1. Control-plane health¶
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/startup" >/dev/null && echo "startup ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" >/dev/null && echo "readiness ok"
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/liveness" >/dev/null && echo "liveness ok"
On a finalized deployment, read what readiness checked:
Exit gate. All three answer. A 503 carries a message naming the invariant
that failed.
2. The resolved actor¶
Exit gate. actor_id is not system, auth_context.mode is token, and
auth_context.token_provider names the provider you exchanged against.
If it resolves to system, confirm what the active profile carries:
3. Authority and pool¶
Exit gate. The pool is listed for the organization. Both this and reconcile are control-plane-only, so this gate passes with no node deployed.
4. Node and enrollment status¶
From the control plane:
From the node:
{
"status": "ok",
"tenant_scope": "acme",
"dataplane_pool": "edge-eu",
"enrollment_state": "active",
"runtime_identity_state": "healthy",
"lease_state": "ready",
"cursor_lag": 0,
"outbox_depth": 0
}
| Value | Reading |
|---|---|
enrollment_state: active |
The node holds a live enrollment |
enrollment_state: not_enrolled |
The seed is absent; the join never completed |
enrollment_state: identity_mismatch |
The seed names an identity the control plane does not hold |
enrollment_state: revoked |
The runtime identity is quarantined |
lease_state: stale |
The heartbeat is not fresh, which is connectivity rather than enrollment |
Exit gate. Every node in the installation is registered:
5. The node's own probes¶
kubectl -n ${DP_NS} exec ${DP_NODE} -c xratud -- curl -fsS localhost:8091/healthz/ready && echo ready
kubectl -n ${DP_NS} exec ${DP_NODE} -c xratud -- ls /var/lib/xratu/identity
Exit gate. The probe answers and the identity directory holds its three files. An empty directory means the join never completed, whatever the pod's state suggests.
All four in one pass¶
curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" >/dev/null && echo "1 control plane ok"
xratu auth whoami | jq -e '.actor_id != "system"' >/dev/null && echo "2 actor resolved"
xratu dataplane pool list ${ORG} | jq -e 'length >= 1' >/dev/null && echo "3 pool recorded"
xratu get dataplanes | jq -e 'length >= 1' >/dev/null && echo "4 nodes registered"
When it fails¶
| First line missing | Cause class | Where |
|---|---|---|
| 1 | Fail-closed startup, or exposure | Finalization invariants |
| 2 | Exchange refused, or the token did not reach the profile | External identity exchange |
| 3 | Reconcile has not run for this organization | Bootstrap reconcile |
| 4 | Enrollment refused, or the node never reached the control plane | Diagnosing a node that will not enroll |
The phases are ordered, so work the first that fails. See Where to look when a step fails for the triage within each.
What changed¶
The deployment is unchanged. Every command here reads state; none writes.