Diagnosing a node that will not enroll¶
What you will end up with¶
The stage that is failing, named, and the command that fixes it.
Prerequisites¶
- An applied installation whose pods are not reaching an enrolled state.
kubectlpointed at the cluster.
Work the stages in order¶
flowchart TB
A["1. Is the pod scheduled?"] --> B["2. Did the init container get a token?"]
B --> C["3. Did the exchange succeed?"]
C --> D["4. Was the seed written?"]
D --> E["5. Is xratud running and reporting?"]
E --> F["6. Is the node listed and placeable?"]
Each stage depends on the one before it, so fix the first that fails.
1. Is the pod scheduled¶
| What you see | Means |
|---|---|
Pending |
Cluster scheduling: resources, or the PVC could not bind |
ImagePullBackOff |
The runtime image is unreachable or the identity cannot pull it |
Init:0/1 for a long time |
Stage 2 or 3; carry on below |
2. Did the init container get a token¶
The pod mounts the enrollment secret and reads the key matching its own name:
kubectl -n ${DP_INSTALL} get secret ${DP_INSTALL}-enrollment-invitations \
-o jsonpath='{.data}' | tr ',' '\n'
There should be one key per node label: dp-eu-west1-0.token,
dp-eu-west1-1.token. A pod whose name has no matching key has no code to
present, which happens when the secret was minted at a lower dp_count than
the current replica count.
3. Did the exchange succeed¶
The init container waits up to 900 seconds for the control plane, so a pod stuck
in Init with no error is usually waiting rather than failing.
| Reason code | Cause | Fix |
|---|---|---|
DATAPLANE_ENROLLMENT_DISCOVERY_REQUIRED |
The organization's governance is unreconciled | xratu bootstrap reconcile "${ORG}", then re-apply |
DATAPLANE_ENROLLMENT_TRUST_CHAIN_INVALID |
The invitation predates the current governance revision | Re-apply to mint fresh invitations |
DATAPLANE_ENROLLMENT_INVITATION_CODE_REPLAYED |
The code was already consumed | Re-apply to mint a fresh one |
DATAPLANE_ENROLLMENT_INVITATION_CODE_INVALID |
The code is unknown or expired | Re-apply; invitations live 60 to 7200 seconds |
DATAPLANE_ENROLLMENT_NODE_LABEL_CONFLICT |
The label belongs to another active installation | Retire the previous enrollment, then re-apply |
DATAPLANE_ENROLLMENT_POOL_NOT_FOUND |
The pool is absent | xratu dataplane pool create "${ORG}" edge-eu |
409 tenancy policy active dataplane quota exceeded |
The organization is at its data plane quota | See Tenant-scoped bootstrap authority |
Connectivity rather than a reason code points at the endpoint:
kubectl -n ${DP_INSTALL} get statefulset ${DP_INSTALL} \
-o jsonpath='{.spec.template.spec.initContainers[0].env}'
XRATU_CP_ENDPOINT must be reachable from inside the cluster. Nodes need
outbound reachability to the control plane and nothing inbound.
4. Was the seed written¶
An empty directory means the exchange never completed; go back to stage 3. A directory that vanishes across restarts means the volume is not being retained, so check the claim:
5. Is xratud running and reporting¶
The daemon answers probes on port 8091:
kubectl -n ${DP_INSTALL} exec ${DP_NODE} -c xratud -- \
curl -fsS localhost:8091/healthz/ready && echo ready
From on the node, its own view of identity and lease state:
unknown there means the heartbeat is stale, which points at connectivity
rather than at the enrollment record. See
Manage an enrollment over its life.
6. Is the node listed and placeable¶
A node that is listed and healthy but never receives work is usually placeable in name only:
An empty project_runtime_namespaces means the node reports no approved project
runtime namespace and is rejected as a placement candidate. Add the namespaces,
re-prepare and re-apply. See
Pools, tenant scope, and placement.
The three that account for most cases¶
Governance moved. Reconciling the organization advances its revision and makes outstanding invitations unredeemable. Re-apply to mint fresh ones.
A rebuilt node reusing a live label. Its volume was lost, so it arrives as a new installation while its old enrollment still holds the label. Retire the old enrollment first.
No approved namespaces. The node is enrolled, healthy, and invisible to placement.