Skip to content

Pool lifecycle

What you will end up with

A named pool in your organization, confirmed by listing, and proven usable by minting an invitation against it.

Prerequisites

export ORG=acme
export POOL=edge-eu
xratu auth whoami | jq -e '.actor_id != "system"' >/dev/null && echo "actor resolved"

The pool name is permanent and sorts first among placement candidates, so choose it with Pools in view before running the next step.

1. Create the pool

xratu dataplane pool create "${ORG}" "${POOL}"

Expected output

{
  "status": "created",
  "organization": "acme",
  "tenant_scope": "6f2a7c3e-1b54-4a29-9f0d-7c83b1e5a412",
  "dataplane_pool": "edge-eu",
  "created_by_actor": "user:alice@acme.example",
  "created_at": "2026-09-19 08:41:12"
}

The CLI resolves the organization name to its UUID, sends that as tenant_scope, and projects the response rather than returning the raw HTTP envelope.

2. Confirm the command is repeatable

xratu dataplane pool create "${ORG}" "${POOL}"
{
  "status": "exists",
  "organization": "acme",
  "tenant_scope": "6f2a7c3e-1b54-4a29-9f0d-7c83b1e5a412",
  "dataplane_pool": "edge-eu",
  "created_by_actor": "user:alice@acme.example",
  "created_at": "2026-09-19 08:41:12"
}

status now reads exists, and created_by_actor and created_at still name the first creation. Creating a pool that already exists leaves the existing one untouched, so re-running this from a provisioning script changes nothing.

3. List the organization's pools

xratu dataplane pool list "${ORG}"

Expected output

{
  "status": "ok",
  "organization": "acme",
  "tenant_scope": "6f2a7c3e-1b54-4a29-9f0d-7c83b1e5a412",
  "count": 2,
  "items": [
    {
      "dataplane_pool": "batch",
      "created_by_actor": "user:alice@acme.example",
      "created_at": "2026-09-19 08:39:55"
    },
    {
      "dataplane_pool": "edge-eu",
      "created_by_actor": "user:alice@acme.example",
      "created_at": "2026-09-19 08:41:12"
    }
  ]
}

Items come back ordered by pool name, which is the same order the scheduler sorts candidates in. This listing is also a preview of placement preference. See Pools, tenant scope, and placement.

A scripted gate:

xratu dataplane pool list "${ORG}" \
  | jq -e --arg p "${POOL}" '[.items[].dataplane_pool] | index($p) != null' >/dev/null \
  && echo "pool present"

4. Prove the pool is usable

A pool is usable when an invitation can be minted against it, which is the operation that resolves it:

xratu dataplane invitation create "${ORG}" "${POOL}"

A successful mint confirms the pool exists for this organization, the organization's governance is reconciled, and both quotas have room. Mint only when you intend to enrol a node, because the invitation carries a lifetime between 60 and 7200 seconds and the current governance revision. See Invitations and enrollment.

If it fails

The CLI projects failures into a consistent shape:

{
  "status": "error",
  "status_code": 403,
  "reason_code": "DATAPLANE_POOL_TENANT_SCOPE_FORBIDDEN",
  "reason_message": "tenant_scope forbidden for actor: 6f2a7c3e-..."
}
reason_code Cause Fix
DATAPLANE_POOL_TENANT_SCOPE_NOT_FOUND The organization UUID has no record Confirm the name with xratu get organizations
DATAPLANE_POOL_TENANT_SCOPE_FORBIDDEN The actor holds no binding in the organization Have an owner bind you. See Bind additional RBAC
DATAPLANE_POOL_UNKNOWN The response carried no recognised detail Read status_code; a 403 here is usually the bootstrap operator guard

Two failures arrive before the pool is considered at all:

Symptom Cause Fix
403 forbidden: non-system bootstrap operator actor required The request resolved to the system actor Fix authentication; xratu auth whoami must report a real actor
organization not found by name or uuid: acme Resolution failed in the CLI before any request was sent The organization does not exist, or you hold no binding in it

And one arrives later, at step 4:

Symptom Cause Fix
409 DATAPLANE_ENROLLMENT_DISCOVERY_REQUIRED The organization's enrollment governance is unreconciled Run xratu bootstrap reconcile "${ORG}", then mint again

What changed

Object State
dataplane_pools One row for acme / edge-eu
The organization One more pool available to invitations and to placement
Accountability created_by_actor and created_at recorded on the row

Next

Invitations and enrollment mints a token for this pool and brings the first node in.