Skip to content

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.
  • kubectl pointed at the cluster running your nodes, and jq.
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"
startup ok
readiness ok
liveness ok

On a finalized deployment, read what readiness checked:

curl -fsS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" | jq '.finalization'

Exit gate. All three answer. A 503 carries a message naming the invariant that failed.

curl -sS "${CP_CLI_ENDPOINT}/v1/system/health/readiness" | jq -r '.detail // "ok"'

2. The resolved actor

xratu auth whoami
xratu auth whoami | jq -e '.actor_id != "system"' >/dev/null && echo "actor resolved"

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:

xratu config view

3. Authority and pool

xratu dataplane pool list ${ORG}
xratu dataplane pool list ${ORG} | jq -e 'length >= 1' >/dev/null && echo "pool recorded"

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:

xratu get dataplanes
xratu describe dataplane ${DP_NODE}

From the node:

kubectl -n ${DP_NS} exec ${DP_NODE} -c xratud -- xratu dataplane status
{
  "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:

xratu get dataplanes | jq -e 'length >= 2' >/dev/null && echo "nodes 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
xratud.bootstrap.json  xratud.identity.json  xratud.runtime.cache.json

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"
1 control plane ok
2 actor resolved
3 pool recorded
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.