Skip to content

Latest commit

 

History

History
3165 lines (2933 loc) · 256 KB

platform-notes.md

File metadata and controls

3165 lines (2933 loc) · 256 KB

Platform notes

Facts about Nomad, Hetzner Cloud, Vultr, S3-compatible object stores, prior art and Ubuntu on nodes that tent's design relies on.

Verified on 2026-09-25, section 5 on 2026-09-26, section 6 on 2026-09-29 (6.4 on 2026-10-05, 6.5 on 2026-10-06) and 1.6 from 2026-09-29 to 2026-10-05, and the items of 1.1, 1.2, 1.3, 1.4 and 1.6 that give their own date. Sources: official documentation, the Hetzner Cloud OpenAPI spec (https://docs.hetzner.cloud/cloud.spec.json), the Vultr API reference (OpenAPI spec from a Wayback copy of https://www.vultr.com/api/, 2026-09-12) plus live calls to public Vultr endpoints, release APIs and upstream source code (Nomad main, kops master, hcloud-go, govultr, cloud-init). The confidence is high unless marked otherwise.

Items marked 🔬 are unverified and are checked with hack/vultr-spike against a real account before code depends on them. Facts marked "spike" or "VM check" with a date were measured by the spike runs of that day (see 3.16).

Items marked ⏳ are volatile: prices, availability, versions, incidents. Re-check them before relying on them. When a fact here turns out wrong, fix it and note the date.

Contents

  1. Nomad
  2. Hetzner Cloud
  3. Vultr (spike results: 3.16)
  4. Prior art
  5. S3-compatible object stores
  6. Ubuntu on nodes
  7. Sources

1. Nomad

1.1 Releases and support ⏳

  • Current release. The latest stable CE release is 2.0.7 (changelog 2026-09-17, published 2026-09-18). main is at 2.0.8-dev.
  • Recent major releases:
    • 1.8.0 (2024-05): first Enterprise LTS; exec2 driver beta.
    • 1.9.0 (2024-10): HCL1 jobspecs removed; keyring moved into Raft; clients older than 1.6 rejected.
    • 1.10.0 (2025-04): dynamic host volumes; legacy Consul/Vault token workflows removed.
    • 1.11.0 (2025-11): client introduction and node identity; secret block.
    • 2.0.0 (2026-04): IBM-style versioning (April starts a support lifecycle, October adds features, fixes are monthly); "no breaking changes"; Raft WAL log store.
      • 2.0.3 added acl token create -token (custom secret) and client.default_ineligible.
      • 2.0.4 deprecated unauthenticated server join.
  • Releases on 2026-10-10. The release index (https://api.releases.hashicorp.com/v1/releases/nomad) lists 2.0.7, created 2026-09-18T16:19:20Z, as the latest CE release, with no 2.0.8 and no 2.1.0. 2.0.6 was created 2026-09-09T19:59:49Z. https://releases.hashicorp.com/nomad/2.0.6/ lists the same files as 2.0.7's directory: nomad_2.0.6_SHA256SUMS, its .sig and .72D7468F.sig, and the zips of darwin, linux and windows.
  • Support. For 2.0.0 and later, CE has a two-year base backport policy; 2.0.x base support ends 2028-04-30.

1.2 Features tent relies on

The items that name a source file were checked in the Nomad v1.11.3 source (the Go module cache) on 2026-09-29. Files under api/ are those of the API module at tent's pin (1.5). The source of 2.0.7 was not checked offline, except the items that say v2.0.7, which were read in that tag on 2026-09-29 or on the date they give. ⏳ Re-check them against the version tent runs.

Client introduction (1.11.0, CE):

  • Server configuration. In the server block: client_introduction { enforcement = "none|warn|strict" (default warn), default_identity_ttl = "5m", max_identity_ttl = "30m" }.
  • Creating a token. nomad node intro create [-node-name] [-node-pool] [-ttl], or PUT or POST /v1/acl/identity/client-introduction-token {NodeName, NodePool, TTL}, which returns {"JWT": …} (ACLCreateClientIntroductionTokenRequest in command/agent/acl_endpoint.go). The Go client's ACLIdentity().CreateClientIntroductionToken sends PUT (api/acl.go). Needs node:write.
    • A TTL above max_identity_ttl is cut to it. The server logs a warning, and the answer does not say so (IdentityTTL in nomad/structs/acl.go).
    • The server does not check that the pool exists (ACL.CreateClientIntroductionToken in nomad/acl_endpoint.go).
  • Giving it to a client. Use -client-intro-token, NOMAD_CLIENT_INTRO_TOKEN, or the file <client state_dir>/intro_token.jwt. It cannot be set in the agent configuration file.
  • Lifecycle. The token is used only for the first registration. After that the node holds an identity JWT with a per-pool node_identity_ttl (default 24h), renewed at about 67% of its lifetime.
  • Gotchas.
    • A present but invalid, expired or mismatched token is rejected even under warn. warn only admits clients with no token at all.
    • The token's pool must equal the client's node_pool.
    • Client introduction does not replace mTLS.

ACL bootstrap with an operator-supplied secret (since 1.3.2):

  • PUT or POST /v1/acl/bootstrap {"BootstrapSecret": "<UUID>"} (ACLTokenBootstrap in command/agent/acl_endpoint.go). The Go client's ACLTokens().BootstrapOpts sends PUT (api/acl.go).
  • A secret that is not a UUID gets 400 invalid acl token. Without a secret, Nomad makes one.
  • Not idempotent. A second call fails with 400 ACL bootstrap already done (reset index: N), before the secret is checked (ACL.Bootstrap in nomad/acl_endpoint.go). To make tent idempotent, verify the stored secret with GET /v1/acl/token/self after such an error.
  • token/self with a secret that matches no token answers 403 Permission denied: Authenticate turns the unknown token into that error (nomad/auth/auth.go, TestACLEndpoint_WhoAmI in nomad/acl_endpoint_test.go). A secret of an identity without an ACL token, such as a node's secret, gets 404 ACL token not found (aclTokenSelf in command/agent/acl_endpoint.go).
    • On 2.0.7 (2026-10-09 and 2026-10-10, 1.2): after a restore with another cluster's secret, token/self with the old secret answered 403. A repeated PUT /v1/acl/bootstrap with the secret in the body and as X-Nomad-Token, as tent sends it, answered 400 ACL bootstrap already done for a valid secret and for a UUID that is no token alike, and token/self then answered 200 (management) and 403.

Autopilot and Raft:

  • GET /v1/operator/autopilot/health (operator:read) returns Healthy, FailureTolerance, Leader, Voters and Servers[] (ID, Name, Address, SerfStatus, Version, Leader, LastContact, LastTerm, LastIndex, Healthy, Voter, StableSince).
  • It returns HTTP 429 while unhealthy, with the same report as the body (OperatorServerHealth in command/agent/operator_endpoint.go). The Go AutopilotServerHealth then returns an error instead of the body, so handle 429 explicitly.
  • cleanup_dead_servers defaults to true.
  • Leadership transfer (since 1.7.0): PUT /v1/operator/raft/transfer-leadership?id=<peer id> or nomad operator raft transfer-leadership.
  • Removing a peer: DELETE /v1/operator/raft/peer?id=<raft id> with a management token. ?address= returns 400.
  • The Raft configuration (GET /v1/operator/raft/configuration; v2.0.7, run on 2026-10-05 and read on 2026-10-06) lists every server of the Raft configuration with Node, Address and Voter, and has no lag.
    • Operator.RaftGetConfiguration (nomad/operator_endpoint.go:46-107) forwards to the leader and answers a management token only; any other token gets 403.
    • Node is the server's name in Nomad, and (unknown) when no Serf member has the Raft address. Address is the Raft address, on the RPC port (4647 with tent's configuration). Voter is Suffrage == raft.Voter.
  • The autopilot report is a snapshot that autopilot rebuilds on a timer from the Raft configuration of that moment (raft-autopilot v0.1.6 nextServers; run on local Nomad 2.0.7 on 2026-10-05). It lists every Raft server with Name, Address and Voter, also in the body of a 429. It lags Raft, so use it for health and the Raft configuration for membership.
    • After a SIGKILL of one of three servers, the report answered 200 with the dead server alive, Voter and Healthy for 41 s (Serf marked it failed at 41 s). It turned 429 at 41.7 s, autopilot removed the server from Raft at 47.8 s, and the report dropped it at 49.8 s. A 200 report does not mean that its servers are up.
    • A Raft server without a Serf entry stays in the report with SerfStatus left and the name it had, or an empty one (read, not run). The run of 2026-10-06 below saw a left entry.
  • A node's address in GET /v1/nodes is the host of the client's advertise.http (Node.Stub, nomad/structs/structs.go:2296 at v2.0.7, which splits HTTPAddr; run on 2026-10-05: a client that advertised 10.64.0.9:15102 showed "Address":"10.64.0.9"). It is not the bind address and not advertise.rpc. With tent's rendering, which sets advertise.http to the node's private address, it is that address.
    • The run could not use a second host address, since every agent shared 127.0.0.1, and did not run the template that renders tent's address (it needs a real interface in the VPC's CIDR). The real-cloud runs of 2026-10-06 (rugw2m, sv3vwb, rgfckj; 3.16) used it: in sv3vwb Nomad listed the replacement client ready and eligible at its private address, 10.64.0.7.

Report entries and versions (v2.0.7, run on 2026-10-06 on a local cluster of three servers and a client, and read in the source at that tag):

  • An entry of GET /v1/operator/autopilot/health has Name as <name>.<region> (s1.global), Address as the Raft address <ip>:<rpc port>, SerfStatus, Version (2.0.7), Healthy, Voter and Leader. The order of Servers changes between calls, so find a server by address or name. A node in GET /v1/nodes has Version 2.0.7.
  • A killed server (SIGKILL of a follower, the report read every 5 s, 1 s and 0.2 s) read alive for about 36 s (Serf's log marked it failed at the same moment), then left for 2 to 8 s with Healthy false and the cluster unhealthy, then left the report. failed was never seen, also at 0.2 s. Not explained: nomad/autopilot.go maps serf.StatusFailed to failed and serf.StatusLeft to left. The run of 2026-10-05 above measured 41 s for the delay. none is a fourth status by the source (not run).

Server removal, leadership, drains and purges (v2.0.7, run on 2026-10-07 on a local cluster of up to four servers with bootstrap_expect = 3, leave_on_terminate = false and one client, without ACL and TLS; the reads came every 0.5 s; times are from the start of each step). The rollout decisions rest on them (ADR-0035). A run on 2026-10-08 (local Nomad 2.0.7, five servers, with ACL, mTLS, gossip encryption and strict client introduction) repeated most of them; its facts are dated in this list, and the block that follows it holds the answers of the calls that internal/nomadops makes (ADR-0036).

  • Raft IDs are UUIDs (7f3d49f3-2757-a5a3-ff6d-f85e459bcdc7), not addresses. The comment of api.RaftServer.ID in the pinned module ("currently the same as the address") is out of date. Autopilot reported FailureTolerance 1 with 3 healthy voters and with 4, and 0 with 2 and with 1.
  • A new server was in the Raft configuration as a nonvoter at once, healthy in autopilot's report at 2 s, and a voter at 21.9 s. Its StableSince did not change when it began to vote. On 2026-10-08 two new servers were voters in the Raft configuration at 12.4 s and 13 s, and in autopilot's report at 14.5 s and 15 s.
  • A live follower's peer removed (DELETE /v1/operator/raft/peer?id=, 200): the leader added it again as a nonvoter at 39.8 s, and autopilot made it a voter at 49.4 s. On 2026-10-08 the leader re-added it 4.1 s after its peer was removed, and autopilot made it a voter 14 s later, about 18 s after the removal.
  • A follower killed (SIGKILL) and its peer removed at once, with no force-leave: no re-add in 75 s, and Serf marked it failed at 36.7 s.
  • Force-leave (PUT /v1/agent/force-leave?node=<name>&prune=1): a failed member was gone from GET /v1/agent/members within 2 s, and a repeat or an unknown name answered 200. A member that Serf still saw alive (a server killed less than a second before) turned leaving and was gone 4 to 7 s later (two runs).
  • Removing a peer that is gone answers 500 rpc error: id "<id>" was not found in the Raft configuration.
  • Two voters (s1, s2 leading): removing the live follower s1's peer (200) and killing it at once kept s2 leading, with FailureTolerance 0.
    • Without a force-leave the leader added the dead s1 again as a nonvoter at 57.5 s. Autopilot answered 429 from 58.6 s, Serf marked s1 failed at 65.7 s, autopilot removed it at 67.2 s and was healthy at 69.3 s. s2 led throughout.
    • With a force-leave right after the kill (second run, s2 the follower, s4 leading): s2 turned leaving, was gone at 6.1 s, no re-add in 95 s, and s4 led throughout.
  • Leadership transfer (PUT /v1/operator/raft/transfer-leadership?id=<raft id>): 200 with {"From": {...}, "To": {...}, "Noop": false, "Err": null}, and the leader moved at once. To the leader itself: 200 with "Noop": true. To an unknown ID: 400 id "<id>" was not found in the Raft configuration. After the transfer every server's StableSince read the time of the transfer.
  • A server killed at four voters, after the transfer: autopilot counted it healthy until Serf marked it failed at 41.2 s. At 43.3 s autopilot had removed its peer and answered 429 with FailureTolerance 0, the report still listing it, and at 45.3 s it was healthy with 3 voters. The runs of M2.7b saw 36 to 41 s.
  • Drains: PUT /v1/node/<id>/drain with {"DrainSpec": {"Deadline": 20000000000}, "Meta": {"tent_machine": "m-123"}} answered 200. The node then read Drain true, ineligible and LastDrain {Status: draining, Meta: {tent_machine: m-123}} in GET /v1/nodes, and DrainStrategy.ForceDeadline was StartedAt plus 20 s.
    • With one client, the job's allocation stopped and the drain read complete 2 s later, its replacement left unplaced. The node stayed ineligible.
    • Deadline 0 gave a ForceDeadline of null: no deadline.
    • A drain cancelled with {"DrainSpec": null, "MarkEligible": true} read canceled, with the node eligible and the meta kept.
  • Clients: a SIGKILLed client read down after 17 s. PUT /v1/node/<id>/purge of a down node answered 200, and of a node that is gone 500 node not found. A purged live node registered again with the same ID 22 s later, ready and eligible (no ACL, no client introduction). Under strict client introduction (2026-10-08) a purged live client whose introduction token had expired (TTL 1 minute, purged after the leeway) was refused at every try to register again (rpc error: rpc error: Permission denied) and was not listed again in the 2 minutes watched.

The calls of a roll with ACL, mTLS and strict client introduction (v2.0.7, run on 2026-10-08 on a local cluster: servers s1 to s5 with bootstrap_expect = 3, leave_on_terminate = false, cleanup_dead_servers = true, gossip encryption and client_introduction { enforcement = "strict" }; clients c1 to c4 with leave_on_terminate = true and raw_exec only; TLS on HTTP and RPC with verify_server_hostname and verify_https_client; ACL bootstrapped with a UUID secret. Every call used the management token and the operator certificate. A job of two raw_exec allocations with migrate { max_parallel = 1, health_check = "task_states", min_healthy_time = "10s" } ran on the clients). The facts of 2026-10-07 above ran without ACL and TLS. The calls are recorded in ADR-0036. Each write but the force-leave was also sent through a follower, and Nomad forwarded it to the leader, which did what it does when asked directly.

  • Eligibility (PUT /v1/node/<id>/eligibility {"Eligibility": "ineligible"}): 200 {"NodeModifyIndex":0,"EvalIDs":null,"EvalCreateIndex":0,"Index":<n>}. The same value again: 200 with Index 0. A down node: 200 either way. An unknown ID, through a follower: 500 rpc error: node not found. The value maybe: 500 rpc error: invalid scheduling eligibility "maybe".
  • A drain with meta (PUT /v1/node/<id>/drain {"DrainSpec": {"Deadline": 120000000000, "IgnoreSystemJobs": false}, "Meta": {"tent_machine": "m-1"}}) of a client with two allocations: 200 {"NodeModifyIndex":34,"EvalIDs":null,"EvalCreateIndex":0,"Index":34}.
    • At once GET /v1/nodes showed Drain true, ineligible and LastDrain {Status: draining, Meta: {tent_machine: m-1}}, and GET /v1/node/<id> a DrainStrategy with ForceDeadline = StartedAt plus 120 s.
    • The same drain again 6 s later: 200, ForceDeadline moved to the time of the repeat plus 120 s, and StartedAt and the start of the last drain unchanged. A repeat with other meta was not run.
    • It completed on its own after 14.4 s, with both allocations moved to another client one at a time (the migrate block): DrainStrategy null, Drain false, LastDrain.Status complete with the meta kept, and the node still ineligible. LastDrain is null for a node that was never drained, and its StartedAt has whole seconds.
  • A client that is down: a SIGKILLed client read down after 19 s (17 s on 2026-10-07).
    • Its drain (meta m-1b): 200, and within 2 s LastDrain was complete with the new meta, and StartedAt equal to UpdatedAt.
    • Its purge: 200 with a body (NodeModifyIndex, EvalCreateIndex, and more). The purge again, through the leader: 500 node not found. A drain of it then: 500 node not found. GET /v1/node/<id>: 404 node not found. Through a follower an unknown ID answered 500 rpc error: node not found to the eligibility, the drain and the purge.
  • Members (GET /v1/agent/members on a server): 200 {"ServerName": "s1", "ServerRegion": "global", "ServerDC": "dc1", "Members": [{"Name": "s2.global", "Addr": "127.0.0.1", "Port": 18022, "Tags": {"id": "<the Raft ID>", "role": "nomad", "region": "global", "dc": "dc1", "build": "2.0.7", "rpc_addr": "127.0.0.1", "port": "18012", "expect": "3", "raft_vsn": "3", ...}, "Status": "alive", ...}, ...]}. Servers only: clients are not members. Addr and Port are the Serf address, and Tags.id is the Raft ID. The answers of two servers agreed at every poll.
  • The report and the Raft configuration. The report's Leader is a Raft ID, its Voters a list of Raft IDs, and StableSince has whole seconds (2026-10-08T01:12:25Z). FailureTolerance was 1 with 3 voters, 1 with 4 and 2 with 5.
  • Force-leave of a failed member:
    • Without the region (?node=s5&prune=1): 200 with an empty body, and s5.global stayed failed.
    • With it (?node=s5.global&prune=true): 200 with an empty body, and both servers polled listed s5.global no more 0.4 s and 0.6 s later. The log said EventMemberLeave (forced) and EventMemberReap (forced).
  • A leadership transfer (PUT /v1/operator/raft/transfer-leadership?id=<raft id>), sent to a follower, to a voter: 200 {"From": {"Address": "127.0.0.1:18013", "ID": ...}, "To": {"Address": "127.0.0.1:18011", "ID": ...}, "Noop": false, "Err": null}; the new leader led at the next poll and every StableSince read the second in which the leadership moved.
    • To the leader again: 200 with "Noop": true.
    • To an unknown ID: 400 id "<id>" was not found in the Raft configuration. To a peer that autopilot had removed, through the leader: the same 400. Without an ID: 400 must specify id or address.
    • To a nonvoter (a server whose peer had been removed and re-added): 200 with To the nonvoter and "Noop": false, but another server took the leadership 1.2 s later, and every StableSince read the second of that takeover. So a 200 does not show that the server leads.
  • A server killed at five voters (SIGKILL): Serf marked it failed after 37 s. By then autopilot had removed its peer, and the report answered 429 with FailureTolerance 1, listing the server with SerfStatus left, Voter true and unhealthy. It was healthy with four voters 2 s later. Its member stayed failed in GET /v1/agent/members until the force-leave.
  • Removing a peer that is gone (DELETE /v1/operator/raft/peer?id=<the killed server's ID>): through the leader 500 id "<id>" was not found in the Raft configuration, through a follower 500 rpc error: id "<id>" was not found in the Raft configuration.
  • Removing the peer of a live follower (through a follower): 200 with an empty body.
  • A snapshot save (GET /v1/operator/snapshot).
    • For 11 s after the servers changed (a server had been re-added), every try, through a follower and through the leader, answered 500 Raft error when taking snapshot: cannot take snapshot now, wait until the configuration entry at 78 has been applied (have applied 77). After one write (PUT /v1/var/before) the next saves answered 200.
    • The answer has Content-Type: application/x-gzip, a Digest header (sha-256=<base64>) and no Content-Encoding. It took 0.02 s and held 11071 bytes through a follower and 11084 through the leader.
    • The body is a gzip tar of meta.json (574 bytes), state.bin (41359) and SHA256SUMS (152), for four servers, one node, one job, one variable and the bootstrap token.
  • A snapshot restore into the running cluster (PUT /v1/operator/snapshot with the saved bytes, through a follower): 200 with an empty body, in 0.19 s.
    • Before it, after the save, the run made a management token T (TTL 1 h), a job after, a client c4 with a new introduction token (TTL 30 minutes), and rotated the keyring.
    • After it: the leader and the Raft configuration (four voters) stayed, and every StableSince read the second of the restore. The keyring had the one key of the save, active, and the rotated key was gone. T got 403 Permission denied on GET /v1/acl/token/self. The job after was gone and the job sleepers stayed. The variable written before the save stayed, and the bootstrap token worked.
    • c4 was gone from GET /v1/nodes at the first poll. Its agent got node not found, registered again with its node identity and got rpc error: Permission denied, and was not listed again in the 75 s watched, with its valid introduction token still on disk. The run of 2026-10-09 below shows that a client that registered after the snapshot was refused without a keyring rotation too, so a rotation is not needed for the refusal. The allocation of after kept running on its client while the servers no longer knew the job.
    • Restores that Nomad refuses (through a follower): 14 bytes of text: 500 failed to restore from snapshot: failed to decompress snapshot: gzip: invalid header. The first 5000 bytes of a snapshot: 500 failed to restore from snapshot: failed to read snapshot file: failed to read or write snapshot data: unexpected EOF. The leader and the Raft configuration stayed as they were.
  • Not settled: the removal of the leader's own peer, prune=false, and tokens narrower than management for the other calls. The runs of 2026-10-09 and 2026-10-10 below settled the restore into servers that were built again, the size of a snapshot and the tokens of the snapshot calls.

Snapshots for tent's backups (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e, run on 2026-10-09 from 22:50 to 23:18 UTC, and on 2026-10-10 for the job list and the repeated bootstrap). Every agent had ACLs on and TLS on HTTP and RPC with verify_server_hostname and verify_https_client. Servers had gossip encryption, client_introduction { enforcement = "strict" }, autopilot { cleanup_dead_servers = true } and leave_on_terminate = false. Clients ran raw_exec only. The ACL bootstrap used PUT /v1/acl/bootstrap {"BootstrapSecret": <UUID>}, as tent does, and calls came from Python scripts with the operator certificate. Cluster A had three servers and three clients; cluster B had servers with empty data directories at A's server addresses, with A's CA, gossip key, region and bootstrap secret, started after A's servers were killed; C had its own gossip key and bootstrap secret; D had region eu and its own CA. The backups of tent backup rest on them (ADR-0042).

  • The save (GET /v1/operator/snapshot, three servers, two nodes, two jobs, one variable). 200, Content-Type: application/x-gzip, Transfer-Encoding: chunked, no Content-Length, no Content-Encoding, and a Digest: sha-256= header that matched the bytes. 10638 to 11242 bytes in 0.02 to 0.18 s; 16855 bytes with four jobs, three nodes and two keyring keys. The leader and a follower both answered, and ?stale=true answered on both.
    • ACL: no token 403; namespace "default" { policy = "read" } 403; operator { policy = "read" } 403; operator { policy = "write" } 200; operator { capabilities = ["snapshot-save"] } 200. A restore with the operator write token: 403, so a restore needs a management token.
    • Content: a gzip tar of meta.json (the Raft index and term, and the Raft servers with their IDs and addresses), state.bin and SHA256SUMS. state.bin held in clear the secret of the bootstrap token, of a client token and of a management token with a TTL, the job IDs, the node names and IDs, the policy name, the variable's path and the keyring key's ID with the words WrappedKeys and KeyEncryptionKey. It did not hold the variable's value in clear, nor the gossip key.
  • Size. Jobs of one group with count = 0: 250 more jobs added 56 KB, 500 added 92 KB, 1000 added 163 KB and 2000 added 305 KB (state.bin 9.6 MB), so 144 to 157 bytes of snapshot and about 4.7 KB of state for each job. The read took 0.09 to 1.75 s. 40 completed allocations of a batch job added 593 bytes of snapshot and 6.2 KB of state each. The restore of the 306 KB snapshot took 0.15 s.
  • A snapshot after the servers change. A fourth server joined B at 23:09:11. From 1.1 s after its start every read answered 500 Raft error when taking snapshot: cannot take snapshot now, wait until the configuration entry at 132 has been applied (have applied 131), and after its promotion at 22.4 s the same with entry 133. At 59 s the Raft index moved to 134 by a write of the cluster's own, and the read answered 200 from then on.
  • No leader. With three of B's four servers killed, the save answered 500 No cluster leader after 5 s, with ?stale=true 200 with 17011 bytes in 0.03 s, and the restore 500 No cluster leader after 5 s.
  • A restore into the running cluster A (after a snapshot of two nodes and four allocations: two jobs purged, a job after, tokens and variables added, a client c3 added with an intro token and no keyring rotation, c2 killed and purged once it read down). PUT /v1/operator/snapshot through a follower with a management token made after the snapshot: 200, empty body, 0.48 s. The leader and the three peers stayed, and every StableSince read the second of the restore.
    • Jobs, nodes, allocations and variables read as in the snapshot. The bootstrap token and the tokens made before the snapshot worked. Both tokens made after it answered 403, the one that made the call included.
    • c3, which the snapshot does not know, was gone from GET /v1/nodes. Its agent logged re-registering node and got Permission denied from Node.Register at every try from 22:53:23 to 22:55:00, with no introduction line in the servers' logs. After a restart of its agent it registered within a second and stopped the allocation that the servers did not know.
    • c2, dead and purged, was back as ready with its two allocations running. It read down 5 min 1 s after the restore, and the servers then placed both allocations on c1.
    • The job after was gone from the servers, but its task ran on c1 for 5 minutes. A job that was purged after the snapshot read running with its allocation running, and no process of it ran there 7 minutes later.
  • A restore into new servers (A's snapshot, A's three servers killed, B's servers bootstrapped with the same secret, which answered 200 with a new accessor). PUT /v1/operator/snapshot through a follower with the bootstrap secret: 200, 0.19 s. The leader and B's three peers stayed.
    • The keyring held A's two keys and no longer B's key, and both variables decrypted. The bootstrap secret worked, now with A's accessor; A's other tokens worked, and a management token made in B answered 403. A second PUT /v1/acl/bootstrap answered 400 ACL bootstrap already done (reset index: 8). A snapshot and an intro token right after the restore answered 200.
    • Before the restore, c1 and c3 got Permission denied from Node.UpdateStatus and Node.Register at every try, and their tasks kept running. After it they logged node registration complete 5.7 s and 6.6 s later, without a restart, and their four tasks had the same PIDs 5 min 44 s after the restore.
    • c4, which registered with B before the restore, was gone from the nodes. Its client stopped its task at the restore and got Permission denied at every try. After a restart of its agent it registered within a second, although the keyring no longer listed the key that signed its intro token. In cluster C the same kind of client was refused for the 50 s watched after a restart of the server and then of its agent, so B's servers probably still held the old key in memory (an inference from the two runs).
    • Nomad 1.11.3's Node.Register (read as a hint, not 2.0.7's source) returns Permission denied before any introduction check when the node's identity does not authenticate, which fits the refusals without a server log line.
    • A silent node after a restore into new servers was watched for 30 s and read ready. That it reads down after 5 minutes there, as in the running cluster, is an inference.
  • Another bootstrap secret (cluster C). The restore of A's snapshot with C's secret: 200. After it C's secret answered 403 on GET /v1/acl/token/self and GET /v1/nodes, A's secret answered 200 as the management token, and PUT /v1/acl/bootstrap with C's secret answered 400 ACL bootstrap already done (reset index: 8). C had another gossip key: the restore does not need it.
  • Another region, CA and gossip key (cluster D, region eu). The restore of A's snapshot: 200. GET /v1/regions answered ["eu"], the jobs kept Region: global, the variables decrypted, and a new job and an intro token were accepted. Nomad checks none of the three; in tent's flow all three come from the same state store.
  • Repeats. The restore of A's snapshot into B twice more: 200 in 0.13 and 0.20 s, the same jobs and nodes, the four peers stayed.
  • A combined node under enforcement = "warn". Its client had registered; the restore dropped it. Node.Register answered Permission denied twice, and 21 s after the restore the server logged node registration without introduction token: enforcement_level=warn and the node was ready again, without a restart.
  • The job list (2026-10-10). GET /v1/jobs?namespace=* with the management token: 200 [] on a new cluster. With a job in default and one in a second namespace it listed both, each with Namespace and ID; GET /v1/jobs listed the one of default only. A stopped job stayed listed, with Stop true, until it was purged. Without a token and with an unknown one: 403 Permission denied.
  • A repeated bootstrap as tent sends it (2026-10-10). PUT /v1/acl/bootstrap on a bootstrapped server, with the secret in the body and as X-Nomad-Token: 400 ACL bootstrap already done (reset index: 8) for the valid secret, and the same 400 for a UUID that is no token. GET /v1/acl/token/self then answered 200 (management) and 403.
  • Not measured: a snapshot of one Nomad version restored into another, the longest time that Nomad refuses a snapshot after the servers change, a combined cluster of three, and the s3 backend with a real restore.

Servers in a roll (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e; every agent on 127.0.0.1 with ACL, mTLS and gossip encryption, leave_on_terminate = false and cleanup_dead_servers = true; every request used the management token and the operator certificate). The runs of 2026-10-08 had servers s1 to s5 with bootstrap_expect = 3; the runs of 2026-10-09 and 2026-10-10 had one or two servers. Times are from the start of each step or from the transfer. The roll of server groups rests on them (ADR-0038).

  • Leadership transfers (2026-10-08): 52 transfers (PUT /v1/operator/raft/transfer-leadership?id=<raft id>), 17 at three voters, 23 at four (three old servers and a new one, as in a roll of a group of three) and 12 at five, each through a follower, the leader or the target. Each answered 200 with Noop false in 0.03 to 0.18 s, and the new leader answered the first read after it. Reads in flight during a transfer were held 0.1 to 0.46 s and then answered; none answered 5xx.
    • The blip. After 8 of the 52 (2 at three voters, 3 at four, 3 at five) every server answered 429 with Healthy false from the first read after the transfer, within 0.1 s, until 2.07 to 2.29 s after its start, then 200 healthy. In those reads one server (once two) was unhealthy, alive and a voter: the old leader, the server that took the request, or another follower. FailureTolerance was 0 at three and four voters, 1 at five voters with one unhealthy server and 0 with two. The other 44 transfers read healthy at every read.
    • StableSince of every server read the nearest whole second to the transfer, and did not change when the blip cleared. A peer removal did not change it.
  • New servers (2026-10-08, six, each joining a cluster with a leader): a healthy nonvoter in the report 0.5 to 1.6 s after the agent started, except one that read unhealthy first, with autopilot answering 429 for 2 s; a voter 10.3 to 22.9 s after the start (22.9, 18, 20.8, 18.5, 20.8 and 10.3 s; the report showed the vote up to 2 s after Raft). FailureTolerance was 2 with five voters.
  • A killed server (SIGKILL; seven runs at four and five voters, 2026-10-08): autopilot removed its peer about 38 to 51 s after the kill. In the three runs whose Serf failure was recorded, Serf marked it failed after 38.2, 41.7 and 49.3 s, and autopilot counted it healthy until then. At five voters autopilot removed its peer 1.3 s after the failure and answered 429 with FailureTolerance 1 and the server left for about 2 s. At four voters it answered 429 with FailureTolerance 0 and the server left from the failure on, removed the peer 6.2 s and 6.4 s later, and was healthy about 2 s after that. A force-leave with prune right after the removal dropped the member within 0.3 s.
  • A removed server's name (2026-10-08): each time the old server was a voter, killed, its peer removed by autopilot and its member forced out with prune=1, and the new agent had an empty data directory.
    • Same name and address, started 22 s after the prune: Serf joined it at once; the leader added it as a nonvoter 18 s later and autopilot removed it within 40 ms (nomad.autopilot: removed server), again at each reconcile a minute apart, for the 2.6 minutes watched; autopilot answered 429 for about 2 s each time. The same when started 20 s and 94 s after the prune.
    • Same name, another address, 21 s after the prune: the leader logged memberlist: Conflicting address for s7.global ... Old state: 2 and serf: Name conflict; no Raft entry within 75 s; a voter when looked at again between 95 and 152 s after the prune.
    • The reused name at the address of a holder that had never been in Raft, 49 s after its prune: it joined and voted at 18.5 s.
    • New names, at an address freed 2.5 minutes before and at one freed 14 s before: both joined at once and voted at 20.8 s.
    • Not settled: the cause in Nomad, and how long the failure lasts.
  • A server with bootstrap_expect = 1 that joins a single server (2026-10-09): it led a cluster of its own 1.4 s after its start; the first server logged skipping adding Raft peer because an existing peer is in bootstrap mode and only one server should be in bootstrap mode about once a minute and never added it (95 s watched). An agent without bootstrap_expect joined the same server as a nonvoter after 0.5 s and voted after 12.8 s; as the only server, stopped and started again, it led after 2.6 s. With bootstrap_expect = 2 a new agent joined too (a voter after 20.2 s) and logged the error peer has a conflicting expect value. nomad config validate accepts a server with no bootstrap_expect (exit 0, one warning about an odd number of servers); it accepted both joining goldens of internal/nodeconfig (2026-10-10).
  • The leader adds a removed server again at its reconcile (2026-10-10, two servers; 2026-10-09 and 2026-10-08): every 60 s from the moment it took the leadership, while the gossip pool lists the server's member alive.
    • The peer of a running follower was removed 25.3 s after the other server took the leadership. The leader added it again, as a nonvoter with its old Raft ID, at 60.1 s. Removed again at once (200 in 0.02 s), it was added again at 120.2 s. The leader's log has added peer, starting replication 60.04 s and 120.06 s after it took the leadership. A second run saw three more re-adds, each 60 s after the leadership. A peer removed 0.5 s after a transfer was added again 60.0 s after the transfer.
    • The earlier runs saw 4.1 s after a removal (2026-10-08) and 39.8 s (2026-10-07): other phases of the same timer.
    • By the source of v1.11.3 (nomad/leader.go:247-330, leaderLoop, not run on 2.0.7): the leader starts its 60 s timer at the top of each pass and runs the first pass after it takes the leadership; it handles each Serf event of a member between passes. A pass can add nothing: a barrier that fails skips it (line 259), and so does a reconcile that fails (297-300), which stops at the first member whose handling fails (1496-1505). The next pass comes a minute later.
  • Autopilot promotes a running server that was added again 9.6 s (2026-10-07), 14 s (2026-10-08) and 10.0 s (2026-10-09) later.
    • A nonvoter that autopilot counts healthy is promoted after it stops (2026-10-10, three trials). The leader added the running follower again 56.1, 57.0 and 56.9 s after the removal, each time 60 s after the other server had taken the leadership. The report listed the nonvoter healthy at the first read or 1.9 s later; the agent was stopped (SIGKILL) 5.0, 3.1 and 3.1 s after the re-add. Autopilot promoted the stopped server 19.9, 10.2 and 20.2 s after the re-add (nomad.autopilot: Promoting server), and the leader logged cluster leadership lost 0.40, 0.51 and 0.43 s after each promotion: two voters, one stopped. Reads answered 500 No cluster leader from then on. Each time the stopped agent was started again, the leader had the leadership back 1.3, 0.3 and 0.3 s after its start.
    • By the source (v1.11.3): autopilot gets no stats from a server that does not answer (nomad/stats_fetcher.go:68-72) and counts a member that Serf lists alive or leaving as alive (nomad/autopilot.go:255). The runs fit a server that keeps the health it last had until Serf fails its member.
    • A server that never read healthy is not promoted. A nonvoter stopped 0.1 s after its re-add, while the report still listed it unhealthy, stayed a nonvoter: autopilot answered 429 with FailureTolerance 0 while it was listed, and removed it 40.0 s after the stop, when Serf marked it failed (2026-10-10).
  • The removed server's own API (2026-10-09): it answered every read in under 10 ms for 2.2 s after its removal. From 2.4 s on, each read that needs the leader (raft/configuration, autopilot/health, nodes) answered 500 No cluster leader after 5.0 to 5.3 s; agent/members answered at once.
  • Autopilot's report after the removal of a live server listed it as before (alive, healthy) for 0.9 to 2.8 s and then left it out; the cluster read healthy throughout (four removals, 2026-10-09).
  • The order by hand with two voters (2026-10-09): transfer (200 in 0.06 s), the peer removed 0.75 s later while both ran (200 in 0.01 s), the old agent killed 0.7 s after that, force-leave with prune: one healthy voter 3.5 s after the transfer, the member gone after 7.7 s, nothing added again in the time watched.
  • Not measured: two live servers of one name both joining the gossip pool; a re-add that a Serf event of the removed member starts (read in the source, not run); what a server in bootstrap mode answers to the cluster's token; clients of a removed live server; the source of 2.0.7.

Combined nodes in a roll (v2.0.7, local on macOS darwin/arm64, nomad revision 9dcbdc5e; every agent combined, on 127.0.0.1, with ACL, mTLS, gossip encryption, client_introduction { enforcement = "warn" }, leave_on_terminate = false, cleanup_dead_servers = true, raw_exec only and no intro token; a service job of raw_exec tasks with migrate { max_parallel = 1, min_healthy_time = "5s" } and a system job; every request used the management token and the operator certificate; reads came every 0.5 s; a stop is a SIGKILL of the agent). The runs were 2026-10-09 23:36 to 2026-10-10 00:02 UTC in four clusters of two to five agents, and the check of the window 2026-10-10 04:15 to 04:21 UTC. The roll of combined groups rests on them (ADR-0039).

  • Drains (deadline 2 minutes, system jobs not ignored, the meta tent_machine).
    • The leader's own node with two voters (two service allocations): 200; the allocations moved to the other node one at a time; LastDrain read complete after 18.3 s; the node led throughout and stayed ineligible.
    • A follower at four voters (one service allocation): complete after 6.7 s, while the replacement was still pending; it ran 1.1 s later. The leader at four voters: complete after 7.3 s; it led throughout.
    • The system allocation of a drained node got the desired status stop (alloc not needed as node is tainted) about 1 s after the drain read complete. Its task still ran 4 s after the drain read complete on the first node, and 5.6 s and 5.1 s on the other two.
  • A follower stopped with no leader change before (drained, four voters): its node read down 23.1 s after the stop; its member failed at 37.0 s; autopilot answered 429 with FailureTolerance 0 at 38.0 s, had removed the peer at 38.6 s and was healthy with three voters at 40.1 s. A force-leave with prune then dropped the member at once.
  • Purges. The node of a down machine, purged 23.2 s after the stop while its server was still a voter and an alive member: 200; the node was gone and did not come back. A live combined node under warn: 200; the node was gone at the next read; its service allocation was replaced on another node within 0.5 s; the node registered again 1.1 s after the purge, ready and eligible, and got a new system allocation.
  • Heartbeat timers after a leader change. After a leader change Nomad gives every node failover_heartbeat_ttl, 300 s, until its next heartbeat (1.6). A drained leader whose leadership moved and whose agent was stopped soon after read ready for that long: stopped 1.44 s (two voters) and 1.69 s (four voters) after the transfer, its node read ready for 300.4 s and 300.7 s, and the leader logged nomad.heartbeat: node TTL expired at 299.7 s in the first run. Both purges after it answered 200. The transfers answered 200 in 0.06 and 0.11 s, and no read in the 1.4 s after the second one (every 0.1 s) was unhealthy.
  • Stopped 70 s after the transfer (2026-10-10, two runs on a cluster of three agents with bootstrap_expect = 3, a service job of two and a system job). In each run a new node joined, the leader's node was drained while it led, its leadership moved, and the old leader ran on for 70 s before it was stopped; four voters.
    • Run 1: the new node voted after 16.6 s; the drain read complete after 6.8 s; the transfer answered 200 in 0.08 s, and autopilot gave all four servers a StableSince of the transfer; the agent was stopped 70.2 s after the transfer; its node read down 13.4 s after the stop.
    • Run 2 (its node held the system allocation alone): complete after 0.7 s, and the system allocation left the list of running allocations 5.2 s after that; the transfer answered in 0.15 s with a new StableSince for every server; stopped 70.5 s after the transfer; its node read down 15.3 s after the stop.
    • After the two stops autopilot answered 429 with FailureTolerance 0 at 44.1 s and 39.9 s, the peer was out of the Raft configuration at 50.3 s and 39.9 s, and the report read healthy with three voters at 52.4 s and 42.0 s.
  • Not measured: a drain that reaches its deadline on a combined node; a stop between 2 s and 70 s after a transfer; two voters whose victim does not lead at the removal; unhealthy reads after a transfer with combined agents (none in the two transfers of the first runs; M3.4 saw 8 in 52 with servers); Linux with Docker. Vultr is in 3.16.

Servers and drains in a scale-down (lab of 2026-10-10, 03:23 to 03:40 UTC, local Nomad v2.0.7, darwin/arm64, nomad revision 9dcbdc5e). Servers s1 to s7 ran on 127.0.0.1 with leave_on_terminate = false, autopilot { cleanup_dead_servers = true }, gossip encryption, ACL on and bootstrapped, mTLS on HTTP and RPC with verify_server_hostname and verify_https_client, client_introduction { enforcement = "strict" } and a server_join { retry_join } to the servers that existed. Clients c1 (node class a) and c2 (class b) ran raw_exec only, each with an intro token of TTL 30 minutes in <data_dir>/client/intro_token.jwt and the RPC address of s1 alone in its configuration. Every request used the management token and an operator certificate, reads came every 0.5 s, and a stop is a SIGKILL of the agent. The scale-down of update and the growth of a server group rest on them (ADR-0040).

  • Growth from 1 to 3 and from 3 to 5. s1 ran alone with bootstrap_expect = 1; s2 and s3 (bootstrap_expect = 3, empty data directories) were started one after the other, then s4 and s5 (bootstrap_expect = 5).
    • Each new server was a nonvoter in the Raft configuration at the first read, 0.5 s after its start, healthy in autopilot's report at 1.1 to 2.1 s (s2 and s3), and a voter after 16.8, 17.8, 21.4 and 18.3 s; the report showed the vote 2 s later.
    • FailureTolerance was 0 with two voters and 1 with three (from 1 to 3), 1 with four voters and 2 with five.
    • The error peer has a conflicting expect value. All nodes should expect the same number was logged by every new server, 1 to 4 times each, about the servers that expected another number. s1 logged none. Nothing else followed from it.
  • A follower removed in tent's order (stop, wait for the member to fail, peer removal, force-leave with prune, wait for healthy).
    • From five voters (s5): the member read failed 38.3 s after the stop; autopilot had removed the peer at 39.8 s and answered 429 with FailureTolerance 1 and the server left; the force-leave with prune dropped the member at once; healthy with four voters at 42.0 s.
    • From three voters (s4): the peer was gone and the member failed at the read 48.3 s after the stop; healthy with two voters, FailureTolerance 0, at 50.6 s.
    • For s7, also from three voters, the member read failed 38.3 s after the stop. At 39.3 s autopilot answered 429 with s7 still in its report as a voter that had left, and the Raft configuration still listed it; tent's RemovePeer answered 200 in 0.02 s, the force-leave answered at 39.9 s, and the two servers read healthy at 41.4 s. For s5, s1 and s4 autopilot had removed the peer before tent's order came to that call.
  • The leader removed from four voters (s1): the transfer to s2 answered 200 in 0.10 s; the next read, 0.2 s after it, showed s2 leading, every StableSince at the transfer's second and autopilot healthy, and none of the reads in the 4 s watched was unhealthy. s1 was stopped 4.2 s after the transfer (tent waits 70 s here): failed at 35.4 s, its peer gone and 429 with FailureTolerance 0 at 36.4 s, healthy with three voters at 38.3 s.
  • From two voters to one, with the hold (s3, a follower; s2 led since 03:28:42.254). The peer of the running s3 was removed at 03:30:42.902, 0.65 s after the leader's reconcile of 120 s (200 in 0.03 s). The leader added it again as a nonvoter at 03:31:42.275, 180.02 s after it took the leadership and 59.4 s after the removal. The second removal answered 200 in 0.01 s; the agent was stopped 2.1 s after the re-add, with s2 alone in the Raft configuration. A force-leave with prune answered 200; the member read leaving and was gone 6.3 s later. In the 135 s after the stop, across the leader's reconciles at 240 s and 300 s, s2 led with one healthy voter and nothing was added.
  • The server that was left, restarted. s2's configuration says bootstrap_expect = 3. It was stopped and started again 3 s later: it logged cluster leadership acquired and answered as the leader of a Raft configuration of itself 2.0 s after its start.
  • Growth back from 1 to 3 under new names. s6 and s7 (bootstrap_expect = 3) joined s2: nonvoters at 0.5 s, voters after 19.4 and 17.8 s. Neither logged the error about the expect value, since s2 expects 3 too.
  • A new server under a removed server's name, after tent's own steps. A new agent s7 at the same address with an empty data directory started 21.7 s after the prune. Its member was listed at 0.5 s (leaving at that read, alive at 1.1 s). The leader added it as a nonvoter at 36.1 s and autopilot removed it 9.9 s later (nomad.autopilot: removed server), and again at 95.8 s, removed at 105.8 s. In each of those spans autopilot answered 429 with FailureTolerance 0 and an unnamed left nonvoter in its report. It did not vote in the 110 s watched. This is the finding of the block on servers in a roll again, after a removal by tent.
  • A drain whose allocations have nowhere to go (a service job held on c1 by a constraint on its node class, with migrate { max_parallel = 1, health_check = "task_states", min_healthy_time = "5s" }; c2 was ready and could not take it; c1 marked ineligible and drained with a deadline of 45 s and the meta tent_machine).
    • One allocation: its desired status was stop at 3.2 s; the drain read complete and the allocation complete at 8.4 s. Its replacement stayed blocked, so the job ran nothing.
    • Two allocations: the first got stop at 3.2 s and was complete at 8.4 s; the second ran on until the deadline. At 46.1 s the drain read complete while that allocation still read running with the desired status stop; 6 s later both were complete.
  • Not measured: any of this on a real cloud (the runs of 2026-10-12 are in 3.16); combined agents in a shrink; two new servers whose agents start in the same second; a drain of two nodes at once.

Heartbeats of a client whose server stops (lab of 2026-10-10 on local Nomad 2.0.7, darwin/arm64, nomad revision 9dcbdc5e: four servers and twelve clients on 127.0.0.1 with ACL, mTLS, gossip encryption and strict client introduction, one plain raw_exec job pinned to each client; the source lines are of v1.11.3, the closest on disk, and of yamux v0.1.2, and every timer below matched what the lab did). The lab froze the server's process with SIGSTOP in place of powering a machine off, because packets cannot be dropped on macOS without root. A frozen process answers nothing and sends no FIN or RST, as a powered-off host does, so the session ends by yamux's keepalive in both cases. The kernel of a frozen process still accepts new TCP connections, which then hang in the TLS handshake; a powered-off host gives no answer and the pool's dial gives up after 10 s (helper/pool/pool.go:375). A real power-off may also be reported unreachable by the network before the keepalive fires. A real power-off was not measured.

  • Which server a client talks to. Every RPC goes to the first server of the client's list (client/rpc.go:103, client/servers/manager.go:236-250). The list is the leader's Serf view, sent with every heartbeat answer; it is reshuffled when its members change, rotated when an RPC fails (rpc.go:124) and rebalanced every 5 to 10 minutes. The agent's API does not show the order: nomad agent-info and GET /v1/agent/servers sort the list (client/client.go:1274-1281). On the node, the TCP connection to the RPC port that carries traffic tells. The allocation watch (Node.GetClientAllocs, blocking up to 5 minutes) stays on the server it started on, so a client can heartbeat through one server and watch through another.
  • The timers. The leader marks a node down after its heartbeat TTL (10 to 20 s: nomad/heartbeat.go:107-108, nomad/config.go:628-629) plus heartbeat_grace (10 s: heartbeat.go:111, config.go:630) since its last heartbeat. The heartbeat RPC has no deadline (helper/pool/pool.go:498-513). Only yamux's keepalive ends a session to a server that stopped answering: a ping every 30 s that fails after 10 s (yamux session.go:349, 364-380; command/agent/config.go:1728-1731; agent.go:890-899). The keys are server.heartbeat_grace (command/agent/config.go:641) and rpc.keep_alive_interval (config.go:836-845). A failed heartbeat is not retried inside the RPC; the next one comes 0 to 3 s after the session ends when another RPC of the client is pending, else after the heartbeat loop's own retry (1 to 2 s, or a random time up to 30 s when the heartbeat is more than 30 s overdue).
  • Defaults (6 trials, 24 clients of the frozen server): 19 read down, 10.2 to 26.6 s after the freeze. The session ended 10.1 to 39.9 s after the freeze (103 rows). A plain allocation was marked lost; when the node heartbeated again it read ready, a replacement was created on the same node within 0.9 s and the old task was killed. Of 345 rows of clients on other servers, 344 were untouched.
  • A job with disconnect { lost_after = "3m" } (defaults, 5 allocations, with and without replace = false): the node read disconnected and the allocation unknown, then running again with a Reconnected event; the task was never killed. Plain allocations on the same node were lost and replaced.
  • heartbeat_grace alone (clients at defaults, 3 trials each): 20 s, 8 of 13 down; 30 s, 2 of 12; 45 s, 2 of 13; 60 s, 0 of 13. The worst client needed 66.1 s.
  • rpc { keep_alive_interval = "5s" } on the clients: the session ended 10.0 to 14.8 s after the freeze. With a grace of 10 s, 4 of 13 read down; with a grace of 20 s, 0 of 13 (the worst needed 12.4 s). These are tent's values.
  • A graceful end of the server's process (SIGTERM and SIGINT, 12 clients): the server stopped accepting connections 0.39 to 0.47 s after the signal, the clients moved within 1.7 s, and 12 of 12 nodes stayed ready.
  • The Raft peer removed first, then the freeze (4 trials, 19 clients whose heartbeat failed on that server): the server lost its leader 1.1 to 2.2 s after the removal and answered its own reads 500 No cluster leader after 5.0 to 5.2 s (nomad/rpc.go:646). The first heartbeat through another server came 9.7 to 27.4 s after the removal, and 19 of 19 nodes stayed ready. The leader added the server again as a nonvoter 34.1 to 39.8 s after the removal, and a nonvoter serves clients.
  • A leader change right before or after the freeze gives every node failover_heartbeat_ttl, 300 s: with the old leader frozen 1.6 s after a transfer, 0 of 5 clients read down, and with a transfer between two other servers 2.1 s after the freeze of a follower, 0 of 11 (they would have needed up to 35.5 and 36.6 s).
  • A killed client read ready for 13.9 to 26.3 s at a grace of 10 s and 51.7 to 61.2 s at 45 s (4 each): the grace plus what was left of the TTL. With tent's 20 s that is 20 to 40 s from the kill, derived from these timers and not measured.
  • Not measured: a real power-off; more than 12 clients (the TTL grows above 500 nodes); a grace of 75 s; the rpc block under load or on a slow network.

ACL tokens that expire (v2.0.7, run on 2026-10-06 with curl and the operator certificate; source at the tag):

  • The create. PUT /v1/acl/token {"Name", "Type": "management", "ExpirationTTL": "24h"} with the bootstrap secret answers 200 with an AccessorID, a SecretID of 36 characters (a UUID) and an ExpirationTime exactly 24 hours after CreateTime. 1m answers 200. 30s answers 400 token 0 invalid: 1 error occurred:\n\t* expiration time cannot be less than 1m0s in the future (was 30s), and 24h1m 400 ... cannot be more than 24h0m0s in the future (was 24h1m0s).
    • The limits are ACLTokenMinExpirationTTL 1 minute and ACLTokenMaxExpirationTTL 24 hours (nomad/config.go lines 697 and 698), checked in ACLToken.Validate (nomad/structs/acl.go line 756). Nothing there depends on the type, so a management token may expire.
    • GET /v1/acl/token/self with the new secret answers 200 with the same accessor, name and times.
  • After the end. A token of 1 minute, read 4 s after its end: GET /v1/acl/token/self answers 500 rpc error: ACL token expired, while GET /v1/jobs and GET /v1/operator/autopilot/health answer 403 Permission denied. By the answer of /v1/jobs or of the autopilot report a caller cannot tell an expired token from a missing right.
  • The bootstrap secret must be a UUID, else 400 invalid acl token.
  • ⏳ A one-time token lives 10 minutes, and nomad ui -authenticate makes one (v1.11.3 source, not checked on 2.0.7); tent uses neither.

The nomad CLI's environment (v2.0.7, run on 2026-10-06; api/api.go lines 342 to 388):

  • The client reads NOMAD_ADDR, NOMAD_REGION, NOMAD_NAMESPACE, NOMAD_HTTP_AUTH, NOMAD_CACERT, NOMAD_CAPATH, NOMAD_CLIENT_CERT, NOMAD_CLIENT_KEY, NOMAD_TLS_SERVER_NAME, NOMAD_SKIP_VERIFY and NOMAD_TOKEN. No variable names a token file.
  • With NOMAD_ADDR, NOMAD_CACERT, NOMAD_CLIENT_CERT, NOMAD_CLIENT_KEY, NOMAD_TLS_SERVER_NAME and NOMAD_TOKEN and nothing else (checked with env), against servers whose certificate has DNS names only, nomad server members, nomad node status and nomad job run of a small job worked, in sh through eval and in fish through source (run as fish --no-config). The key was PKCS#8, and the token file held 36 bytes with no line end.
  • Without NOMAD_TLS_SERVER_NAME each command exits 1 with x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs.
  • A raw_exec job needs plugin "raw_exec" in the client configuration, since the driver is disabled by default.
  • After its table, nomad server members prints a hint on stderr: two empty lines and ==> View and manage Nomad servers in the Web UI: <NOMAD_ADDR>/ui/servers. NOMAD_CLI_SHOW_HINTS=false turns it off (run on 2026-10-07 against a cluster that tent built). A script that reads the table takes stdout alone. Through tent ui the hint named the proxy's address. With the exported variables it then names a server's own https address (not seen: the run kept no output of that call), which a browser cannot open without the client certificate.

The web UI and the CLI behind a proxy that adds mTLS and a management token (v2.0.7, run on 2026-10-06 in Chromium through Playwright, with a throwaway httputil.ReverseProxy, and read in the source at the tag):

  • No sign-in. /ui/ lists jobs, clients and servers with no token entered. The UI calls /v1/acl/token/self on every load and stores the secret of the answer in localStorage.nomadTokenSecret, so the browser then holds the proxy's token (the same sha256). A made-up secret stored first is overwritten, with no error shown (ui/app/services/token.js, routes/application.js).
  • Exec works with Origin removed. With Origin passed on and Host rewritten to the server's, the upgrade fails with 500 websocket: request origin not allowed by Upgrader.CheckOrigin; with Origin passed on and the browser's Host kept it works. The UI's live updates are websockets too (ws_handshake=true, ui/app/services/watcher-fetch.js), so the same pair breaks them. An agent option http_disable_websocket_origin_check and dev mode turn the check off (command/agent/http.go).
  • The websocket handshake reads the token from the first frame and, when a header also carries one, requires the two to be equal (command/agent/websockets.go, readWsHandshake). Behind the proxy they are.
  • Live updates. A job's page changed within 6 s of nomad job stop, with no reload, and the log view followed new lines.
  • The log view first calls the node's own HTTP address from the browser, which fails (the node's API is not reachable from outside), and falls back to the server through the proxy after a delay (ui/app/components/task-log.js).
  • CORS. Nomad answers cross-origin requests for 14 wrapped endpoints (/v1/client/fs/, /v1/client/stats, /v1/client/allocation/, /v1/client/metadata, /v1/client/identity, /v1/vars, /v1/var/ and others), with all origins, all headers and credentials. /v1/jobs, /v1/agent/self and /v1/namespace* have none.
  • Another page (on another port of the same host, whose Sec-Fetch-Site is same-site) calling a proxy that adds the token and removes Origin: fetch('/v1/jobs') failed in the page, but the request reached Nomad, and a blind fetch(..., {method: 'POST', mode: 'no-cors'}) of a namespace created it. With Origin passed on, /v1/vars and /v1/client/stats were readable. A proxy that answers 403 to a foreign Host, Origin or a Sec-Fetch-Site other than same-origin and none stopped all of it, and nothing was created.
  • The CLI with NOMAD_ADDR=http://127.0.0.1:<proxy> and no other variable ran nomad status, job run, job stop, alloc logs and alloc exec, with the checks on. It sends neither Origin nor Sec-Fetch-Site.
  • Not tested: a page left open across a restart of the proxy with a new token, and whether the UI falls back to polling when a websocket fails.

Node pools (since 1.6.0):

  • Client configuration: client { node_pool = "x" }, default default. The built-ins default and all cannot be modified, and all is for jobs only. A change to either gets 400 modifying node pool "…" is not allowed (NodePool.UpsertNodePools in nomad/node_pool_endpoint.go).
  • Pools are auto-created when a client registers in the authoritative region (Node.Register in nomad/node_endpoint.go, UpsertNode in nomad/state/state_store.go). A job that references a missing pool fails to register.
  • Per-pool scheduler_config is Enterprise-only.

Joining servers:

  • Use server_join { retry_join = [...] }. server.retry_join, start_join, retry_interval and retry_max will be removed in 2.1.0.
  • go-discover has no Hetzner provider. Issue #73 has been open since 2018, and PR #167 is still open.
    • Built-in providers: aliyun, aws, azure, digitalocean, gce, linode, mdns, os, packet, scaleway, softlayer, tencentcloud, triton, vsphere, and srv (DNS SRV, since 2.0.4).
    • Nomad's docs suggest exec= (go-netaddrs, since 1.7.0) with the hcloud CLI for Hetzner.
    • go-netaddrs runs the command without a shell, so pipes do not work. You need a wrapper that prints space-separated IPs, plus HCLOUD_TOKEN on the node.

Agent configuration:

  • go-sockaddr templates work in bind_addr, addresses.*, advertise.* and client.network_interface. addresses.http accepts several space-separated addresses.

  • File merging. LoadConfigDir (command/agent/config.go) reads the .hcl and .json files of a directory, skips temporary files, sorts the paths and merges the files in that order. A later file's single values win, except plain booleans such as leave_on_terminate and leave_on_interrupt: they merge with OR, so a later false does not undo an earlier true (Config.Merge, v2.0.7). client.meta and client.options merge key by key. A later, non-empty server_join.retry_join replaces the earlier list (ServerJoin.Merge).

  • Unknown keys are errors. Each file is checked for keys that no field takes (extraKeys in command/agent/config_parse.go, helper.UnusedKeys in helper/funcs.go).

  • Parser. Agent configuration is still parsed with HCL1, with no HCL2 functions. Nomad's go.mod replaces github.com/hashicorp/hcl with its fork v1.0.1-nomad-1. Upstream v1.0.0, which tent's tests use, shows (hcl/scanner/scanner.go, hcl/strconv/quote.go):

    • the scanner refuses U+E123 anywhere in a file, as "reserved for internal use";
    • in a quoted string, ${ opens a span that runs to its matching }. Quotes inside it do not end the string, and backslash escapes inside it are kept as written. HCL1 has no escape for ${.

    The fork itself was not read. Nomad 2.0.0 and 2.0.7, which parse with it, accept tent's golden files: nomad config validate passed each role's goldens on 2026-10-02 (1.6).

  • Graceful shutdown settings.

    • leave_on_interrupt and leave_on_terminate default to false.
    • With them enabled, a server leaves the peer set gracefully. SIGTERM leaves only with leave_on_terminate, and SIGINT only with leave_on_interrupt (handleSignals in command/agent/command.go).
    • Clients with drain_on_shutdown { deadline, force, ignore_system_jobs } drain themselves on shutdown, and stay ineligible after their next start (1.6).
    • How long the agent waits, and what a server's leave does to Raft: 1.6.
  • Jobs default to datacenters = ["*"] (since 1.5).

Client settings tent writes (v1.11.3 source, 2026-09-29, as above):

  • client.options."driver.allowlist" is a comma-separated list of driver names, each trimmed of white space (splitValue in client/config/config.go). A non-empty list starts only those drivers (client/pluginmanager/drivermanager/manager.go); an empty one starts all. driver.whitelist is the old name. raw_exec stays disabled until its plugin sets enabled = true (drivers/rawexec/driver.go).
  • Dynamic ports. client.min_dynamic_port and max_dynamic_port default to 20000 and 32000 (nomad/structs/network.go, DefaultConfig in command/agent/config.go).
  • ACLs on clients. A client takes acl.enabled from the agent configuration (convertClientConfig in command/agent/agent.go). With it off, the client resolves every token to an ACL that allows everything (resolveTokenAndACL in client/acl.go) and accepts any migrate token (ValidateMigrateToken in client/client.go). So acl { enabled = true } belongs on clients too.
  • The state directory and the intro token. client.state_dir defaults to <data_dir>/client (convertClientConfig). When no token came by flag or environment, the agent reads intro_token.jwt in that directory; a missing file is no error (readIntroTokenFile in command/agent/agent.go).
  • Joining. server { server_join { retry_join } } joins the servers' Serf, whose default port is 4648. client { server_join { retry_join } } sets the client's servers, and an address without a port gets 4647 (resolveServer in client/rpc.go). One agent may have both blocks.
    • server.retry_join still works, with a deprecation warning, and cannot be combined with server_join (handleRetryJoin in command/agent/command.go, retryJoiner.Validate in command/agent/retry_join.go).
    • start_join is refused for clients.
  • A combined agent's client reaches its own server over the network. When the agent runs a server, it adds the server's RPC bind and advertise addresses to the client's servers (finalizeClientConfig in command/agent/agent.go). No code outside tests sets the client's in-process RPCHandler (client/config/config.go, client/rpc.go). So a combined node must be able to reach its own RPC port on its private address.
  • Bridge networking.
    • Nomad's CNI page asks for net.bridge.bridge-nf-call-arptables, -ip6tables and -iptables set to 1 (docs, read 2026-09-29). These sysctls exist only while the br_netfilter module is loaded.
    • The default bridge subnet is 172.26.64.0/20 (client/allocrunner/networking_bridge_linux.go). Bridge-mode workloads reach the host from it.
    • tent's choice for client and combined nodes: load br_netfilter and set the three sysctls; install Docker from the distribution's packages, with the overlay module for its storage, unless the group's drivers leave docker out. Servers get none of it.
    • Nomad's CNI configuration (v1.11.3 and v2.0.7, client/allocrunner/cni/bridge.go): cniVersion 0.4.0, name nomad. loopback; bridge on the bridge nomad with ipMasq, isGateway, forceAddress, hairpinMode from bridge_network_hairpin_mode (default false) and host-local IPAM on the bridge subnet; firewall with the iptables backend and the admin chain NOMAD-ADMIN; portmap with snat.
    • In iptables (CNI plugins v1.9.1 and Nomad v2.0.7 source): the firewall plugin puts -j CNI-FORWARD first in filter FORWARD. CNI-FORWARD jumps to NOMAD-ADMIN, then accepts each allocation's replies (-d <IP> ctstate RELATED,ESTABLISHED) and its own traffic (-s <IP>); Nomad adds -o nomad -d 172.26.64.0/20 -j ACCEPT to NOMAD-ADMIN. So Docker's drop policy on FORWARD (6.2) does not break the bridge. portmap DNATs mapped ports in nat PREROUTING and OUTPUT (CNI-HOSTPORT-DNAT) and marks what it masquerades with 0x2000.
    • A mapped port reached from another host never reaches the host's input chain: the DNAT before routing makes it forwarded traffic to the post-DNAT address (the hook order is verified; the rest is inferred). A workload on a bridge that calls the local agent, or a task with host networking, at the node's address does reach input. So does a Docker container that calls a published port of its own node: with userland-proxy on, the default, the DNAT rule leaves out docker0, and docker-proxy answers (moby iptabler/port.go).
    • Backends. The CNI plugins added nftables backends to ipMasq and portmap in v1.6.0 (2024-10-15); both use iptables unless iptables is unusable (v1.9.1). The firewall plugin has only iptables and firewalld, and Nomad picks iptables. ⏳ v1.9.1 (2026-03-16) is the latest; v1.9.0 fixed CVE-2025-67499 in the nftables portmap.

Workloads on a client (read 2026-09-29), for the metadata block (architecture §9.4):

  • Where they run (v1.11.3 and v2.0.7):
    • A client creates /sys/fs/cgroup/nomad.slice/{share,reserve}.slice as plain directories when the agent starts; a server-only agent does not.
    • exec, raw_exec and java tasks run in nomad.slice/<share|reserve>.slice/<alloc>.<task>.scope; raw_exec honours a job's cgroup_v2_override.
    • The docker driver sets no cgroup parent since 1.7.0 (GH-18371), so containers run in system.slice/docker-<id>.scope, next to other services.
    • The artifact fetcher runs as root inside system.slice/nomad.service.
  • Capabilities. Nomad's default capabilities give tasks neither CAP_NET_ADMIN nor CAP_NET_RAW (v2.0.7 drivers/shared/capabilities/defaults.go). An operator adds them with a driver's allow_caps and a task's cap_add. Docker's own default set, outside Nomad, includes NET_RAW.
  • Container logs. Nomad's docker driver sets json-file with 2 files of 2 MB on each container it starts (v2.0.7 drivers/docker/config.go), whatever the daemon's defaults.

TLS:

  • Recommended: rpc = true, http = true, verify_server_hostname = true, verify_https_client = true. Nomad's docs call verify_https_client = false "safe so long as ACLs are enabled".
  • Certificate names: server.<region>.nomad, client.<region>.nomad and cli.<region>.nomad, plus localhost and 127.0.0.1.
  • nomad tls always uses ECDSA P-256. The CA is valid 5 years, other certificates 1 year.
  • The Go API client's TLSConfig has CACert, CAPath, CACertPEM, ClientCert, ClientCertPEM, ClientKey, ClientKeyPEM, TLSServerName and Insecure.

Status and agent endpoints (used by seed-and-refresh discovery and API-driven server removal):

  • GET /v1/status/leader and GET /v1/status/peers require no ACL token; mTLS still applies. peers returns the Raft peers' RPC addresses (["10.0.0.5:4647", …]). Their answers with ?stale and on clients: 1.6.
  • GET /v1/agent/servers (agent:read) lists the servers a client knows.
  • PUT /v1/agent/servers?address=… (agent:write) replaces that list. Whether this survives a restart is not documented.
  • There is no /v1/agent/leave. No endpoint makes an agent leave gracefully.
  • PUT /v1/agent/force-leave?node=<node name>.<region>&prune=true (agent:write) removes a failed or left member from the Serf member list immediately; a name without its region answers 200 and changes nothing (2026-10-08, above). A member that is still alive rejoins.

Without a leader:

  • A server that knows no leader holds each request that needs one for the RPC hold timeout, 5 s by default (RPCHoldTimeout in nomad/config.go). Then it answers 500 No cluster leader (getLeaderForRPC in nomad/rpc.go, the default status of wrap in command/agent/http.go). Writes need the leader, and so do reads without ?stale.
  • GET /v1/status/leader goes the same way: without a leader it answers 500 No cluster leader, and "" only with ?stale (Status.Leader in nomad/status_endpoint.go).

The Go API client over HTTP:

  • Nodes().List sorts the list by CreateIndex and panics on a null element (NodeIndexSort.Less in api/nodes.go).
  • api.NewClient calls DefaultConfig, which reads the NOMAD_* variables, but takes only its address, and only when the given one is empty (api/api.go).
  • The client sends the token as X-Nomad-Token (api/api.go). Go's net/http client copies every header of the first request to each redirect. It drops only Authorization, Www-Authenticate, Cookie, Cookie2, Proxy-Authorization and Proxy-Authenticate, and those only when the host changes (makeHeadersCopier in net/http/client.go, Go 1.27.1). So the token follows any redirect.
  • An agent takes at most 100 HTTP connections from one client IP by default: limits { http_max_conns_per_client = 100 } (DefaultLimits in nomad/structs/config/limits.go, connLimiter in command/agent/http.go).

Fingerprinting:

  • The only cloud environment fingerprinters are env_aws, env_gce, env_azure and env_digitalocean. There is none for Hetzner or Vultr.
  • Disable them with client.options."fingerprint.denylist".

Backups:

  • The snapshot agent is still Enterprise-only.
  • In CE, use nomad operator snapshot save or GET /v1/operator/snapshot. Since 1.11.3 the operator:snapshot-save capability is sufficient.
  • Restore with PUT /v1/operator/snapshot.
  • Snapshots contain the keyring, so treat them as secrets.

Volumes:

  • Dynamic host volumes (1.10) are CE; only governance features are Enterprise.
  • The hcloud CSI driver:
    • Its docs say "Nomad is not officially supported". It does ship a Nomad guide (docs/nomad/README.md) and runs Nomad 2.0.5 E2E in CI.
    • Requirements: plugin id csi.hetzner.cloud, privileged Docker, the token stored as a Nomad Variable, single-node-writer volumes, a 10 GB minimum.
    • The latest release is v2.23.0 (2026-09-03).

1.3 Upgrades and version skew

  • Order. Servers first, one at a time with health checks, then clients.
  • Methods. An in-place binary swap and restart is supported (allocations continue), and so is rolling VM replacement.
  • Skew. The rule is "backward compatible for at least 2 point releases". Servers on 1.9+ reject clients older than 1.6. There are no downgrades.
  • The upgrade guide, read on 2026-10-10 (https://developer.hashicorp.com/nomad/docs/upgrade, which a fetch tool named the page of v2.0.x; the same sentences are in website/content/docs/upgrade/index.mdx of the source of Nomad 1.11.3):
    • "Nomad strives to be backward compatible for at least 2 point release, so Nomad v1.7.x works with v1.5.x."
    • "Nomad does not support downgrading at this time. Downgrading clients requires draining allocations and removing the data directory. Downgrading servers safely requires re-provisioning the cluster."
    • "New features are unlikely to work correctly until all nodes have been upgraded."
    • "While it is possible to upgrade Nomad client nodes before servers, this guide recommends upgrading servers first as many new client features will not work until servers are upgraded."
    • "Rolling: New hosts containing the new Nomad version may be added followed by the removal of old hosts."
    • "Continue with the upgrades across the servers making sure to do a single Nomad server at a time."
  • The page of version details (.../docs/upgrade/upgrade-specific, 2026-10-10) has sections for 2.0.0 and 2.0.4 and none for 2.0.5 to 2.0.7, and no sentence about versions that an upgrade may skip. The section of 2.0.4 says that 2.1.0 removes server.retry_join and server.start_join; tent writes server_join { retry_join }.
  • Minimum versions in the source of 1.11.3. A server turns some features on only when every server has a minimum version (ServersMeetMinimumVersion). An intro token is signed only when every server of the region runs 1.11.0 or newer (minVersionNodeIntro); 2.0.6 and 2.0.7 are above it. The other minimums were not read, and nothing was read in the source of 2.0.7.
  • Unverified: the skew rule has not been restated for the 2.x versioning scheme: the guide of 2026-10-10 still gives its example in 1.x terms.
  • Measured on 2026-10-10 (a local lab on 127.0.0.1, macOS, darwin_arm64; Nomad 2.0.6, revision f74ce32f, beside 2.0.7, revision 9dcbdc5e; ACL, mTLS, gossip encryption and client_introduction { enforcement = "strict" }; servers with bootstrap_expect = 3, server_join { retry_join }, leave_on_terminate = false and autopilot { cleanup_dead_servers = true }; up to seven servers and three clients with raw_exec jobs; a server stopped with SIGKILL):
    • A 2.0.7 server joined three 2.0.6 servers: a nonvoter after 0.3 s, a healthy nonvoter in autopilot's report after 1.4 s, a voter after 13.4 s (15.3 s in the report), with autopilot healthy and failure tolerance 1 at every read. The 2.0.6 leader logged nomad.autopilot: Promoting server. The next two 2.0.7 servers voted after 17.4 s and 12.4 s.
    • A 2.0.6 server joined three 2.0.7 servers: Nomad 2.0.7 did not refuse it (one run). It was a nonvoter after 0.3 s, healthy after 1.9 s, and the 2.0.7 leader promoted it after 13.7 s. Autopilot stayed healthy and a job was placed meanwhile. Only tent's own rules keep an older server out.
    • Autopilot's Version, the node list's Version and the members' build tag are 2.0.6 and 2.0.7, with nothing before or after. /v1/agent/self has an empty VersionPrerelease and VersionMetadata. During the mix autopilot reports each server with its own version and reads healthy.
    • The leadership moved from a 2.0.6 leader to a 2.0.7 server (200 in 0.06 s, autopilot healthy at the first read) and back (200 in 0.11 s; autopilot answered 429 with failure tolerance 0 for up to 2.2 s, as on one version, see 1.2). A job ran on a 2.0.6 client under a 2.0.7 leader after 1.1 s, and both versions gave an intro token.
    • Servers rolled in tent's order (a 2.0.7 server first; for each 2.0.6 server a kill, the wait until autopilot stops counting it, the peer removal, a force-leave with prune; the leader last, after a transfer): Serf marked the killed servers failed after 36.1 to 43.7 s, autopilot removed two of three peers itself 0.5 to 1.6 s after that, and each force-leave answered 200. The 2.0.6 client stayed ready and eligible, its allocation kept its ID with 0 restarts, and jobs submitted after each removal ran on it within 1.6 s. Its /v1/agent/servers listed the three 2.0.7 servers though its configuration names the old ones. Two and a half hours later it was still ready.
    • A 2.0.7 client with an intro token joined three 2.0.6 servers: ready after 0.3 s, and a job ran on it after 1.1 s. The control without a token was refused (node registration without introduction token: enforcement_level=strict).
    • The logs of ten agents hold no line about a version difference (mismatch, incompat, unsupported, downgrade, upgrade, newer version, older version, protocol version, minimum version, version skew).
    • Not shown: a combined agent, a drain, Docker tasks, Linux, versions more than one patch apart, and tent-node's refresh-join (the clients learned the new servers from Nomad's heartbeats).
    • On Vultr (runs w28exz and ae5dhs, 2026-10-14): a 2.0.7 combined node joined 2.0.6 ones and the roll of the three nodes ended, as in the local lab, with the leader moving once and no leaderless poll (3.16).

1.4 Downloads and verification

  • Binaries: https://releases.hashicorp.com/nomad/{V}/nomad_{V}_linux_{amd64|arm64}.zip. The zip contains LICENSE.txt (mode 0644) and then nomad (0755), both regular files at the top, deflated, and nothing else. The linux zips of 2.0.0 and 2.0.7 take 53 to 59 MB and their binaries 137 to 147 MB: 2.0.7's nomad is 147,230,688 bytes on amd64 and 137,387,200 on arm64 (their central directories, read on 2026-10-02).
  • Checksums and signatures: nomad_{V}_SHA256SUMS, plus detached signatures nomad_{V}_SHA256SUMS.sig and ….72D7468F.sig.
  • JSON index: https://api.releases.hashicorp.com/v1/releases/nomad/{V|latest}.
  • Nomad 2.0.6 (checked on 2026-10-10). Its nomad_2.0.6_SHA256SUMS lists c6da734081a41d51cadf15ec880d5eab0313093a29d2ee0984ca5ae1cdf867ec for nomad_2.0.6_linux_amd64.zip. The sha256 of the darwin_arm64 zip that the lab of 1.3 ran matched its line, a76e9a8a63d8e6c62bae942834a32fafa66776657c285c0031da0abe3f87107a. tent's tests serve the file and its signature byte for byte (internal/assets/assetstest/testdata); the signature verifies at the test clock of 2026-09-28.
  • Release signing key: https://www.hashicorp.com/.well-known/pgp-key.txt, fingerprint C874 011F 0AB4 0511 0D02 1055 3436 5D94 72D7 468F. The 2.0.7 signature and the linux_amd64 sha256 were checked and are valid. Checked again on 2026-09-28, for the copy that tent embeds:
    • The primary key is RSA 4096, made on 2021-04-19, and expires on 2030-03-01T23:14Z.
    • Releases are signed with its subkey 374E C75B 4859 1360 4A83 1CC7 C820 C6D5 CD27 AB87 (RSA 4096, made on 2021-04-21), which expires on 2030-03-01T23:15Z. The 2.0.7 SHA256SUMS.sig is made with this subkey and SHA-256.
    • The file also holds an encryption subkey, which expires with the primary key, and a signing subkey that expired on 2022-04-20.
    • A verifier that checks the key at the current time, as tent does, rejects every signature after the expiry, whenever it was made. HashiCorp can move the expiry with new self-signatures, and a verifier sees that only with a fresh copy of the key.
  • APT. ⏳ apt.releases.hashicorp.com provides arm64. Its signing key was rotated on 2026-09-09 after a security incident (HCSEC-2026-33); the new key is D55C 0D1A C78A 8D81 26CB 631C FC9C A96A CA02 6560. tent does not use the APT repository.
  • CNI plugins ⏳ (containernetworking/plugins, which Nomad's bridge networking needs): the latest release is v1.9.1, of 2026-03-16. Each archive, https://github.com/containernetworking/plugins/releases/download/v{V}/cni-plugins-linux-{amd64|arm64}-v{V}.tgz, has a .sha256 file next to it and no signature. The v1.9.1 sha256s in tent's stable channel were checked against the digests that GitHub lists for the release's assets on 2026-09-28.

1.5 Licensing

  • Nomad is BUSL 1.1 from 1.7.0. The 1.6.x tags are MPL-2.0.
  • MPL-2.0 modules: github.com/hashicorp/nomad/api (a separate module with no semver tags, so pin by pseudo-version; requires Go 1.26+), jobspec2, go-discover, go-netaddrs.
  • Do not import root-module packages such as helper/tlsutil: they are BUSL.
  • tent's pin. tent pins nomad/api at v0.0.0-20260917172403-9dcbdc5e64ec, the commit of tag v2.0.7 (decision 16 of architecture §18). It brings hashicorp/cronexpr v1.1.3, hashicorp/go-rootcerts v1.0.2 (MPL-2.0), gorilla/websocket v1.5.3 (BSD-2-Clause), go-viper/mapstructure/v2 v2.5.0 (MIT) and mitchellh/go-homedir v1.1.0 (MIT). hashicorp/go-cleanhttp v0.5.2 (MPL-2.0), an indirect dependency before, is now direct. The licence check passes on ./cmd/tent ./internal/nomadops (2026-09-29).
  • cronexpr offers Apache-2.0 or GPLv3 (its README) and ships both texts, as APLv2 and GPLv3. Its LICENSE is Apache-2.0, and tent uses it under Apache-2.0. The licence check reads only files named like LICENSE, COPYING or NOTICE.
  • Size. Linking internal/nomadops adds about 150 KB to the tent binary in a release build (-s -w), about 210 KB unstripped. Since M2.7a update calls it.
  • Competitive use. BUSL "competitive offering" covers products provided on a paid basis. A free tool that downloads official binaries is fine; a paid managed-Nomad offering would need a commercial licence. This is not legal advice.
  • Forks. No maintained, foundation-backed fork exists. OpenNood/nood (based on 1.6.5) has had no commits since December 2023. (Medium confidence.)

1.6 The agent on a node

What tent-node's join, nomad, verify and refresh-join rely on, and the shutdown facts behind tent's agent configuration (ADR-0030). Read in the v2.0.7 tag (commit 9dcbdc5, 2026-09-17) and in the docs of 2.0.x on 2026-09-29, and seen in live runs of the official nomad_2.0.7_darwin_arm64 binary, with ACLs on and without TLS, on 2026-09-29, unless an item says otherwise. The M2.6b VM checks of 2026-10-05 (runs bxkllh on Ubuntu 24.04 and g2rl9d on 26.04, 3.16) settled the items that name them; those still marked 🔬 are open.

Health and status (live runs, and the source where an item says so):

  • GET /v1/agent/health needs no ACL token. It answers 200 with application/json when the agent is healthy, and 500 with the same JSON as text/plain when not. ?type=client or ?type=server checks one part; a part that the agent does not run fails (client not enabled).
    • A server runs the Status.Leader RPC, which the leader answers. Without a leader it answers 500 {"server":{"ok":false,"message":"No cluster leader"}} after the RPC hold of 5 s. With ?stale it answers 500 at once, with the message no leader.
    • A client is healthy when its list of servers is not empty. The list starts empty, and retry_join adds a server only after a Status.Ping to it succeeds. Unhealthy is {"client":{"ok":false,"message":"no known servers"}}. In a live run the client turned healthy right after the join although Node.Register failed with Permission denied.
    • On a combined agent the client part is healthy at once, since the local server's RPC address is in its list (1.2). The server part needs a leader.
  • GET /v1/status/peers and /v1/status/leader need no token: the agent drops their auth errors on purpose.
    • A server without a leader answers 500 No cluster leader after 5 s. With ?stale it answers from its local Raft configuration: [] before the bootstrap, and "" for the leader. So GET /v1/status/leader?stale answers 200 on a server without a leader.
    • Peers are RPC addresses, "10.0.0.5:4647", and in IPv6 "[fd00::1]:4647" (source only).
    • A client forwards both to a server, but blocks until the node has registered: in a live run a request to a client that had not registered hung for 12 s.
  • Server certificates name no node address: tent's carry 127.0.0.1 alone (architecture §9.1). A caller that dials a server's private IP sets tls.Config.ServerName to server.<region>.nomad. The M2.6b VM checks made one such call on a real node: refresh-join asked the node's own agent at 127.0.0.1 with server.global.nomad, and got the node's address. The M2.7a cluster check (run qypvsk, 2026-10-05, 3.16) made the first call between two machines: a client's 05-join.hcl lists the three servers' RPC addresses, and its tent-node-join.service ran 3 times with 0 failed runs. The answer matched the seed, so the file was not rewritten; that the mTLS call with the TLS name server.<region>.nomad worked is inferred from the runs that did not fail. 🔬 E2E still has to show a call after servers have been replaced.

The stock unit (.release/linux/package/usr/lib/systemd/system/nomad.service): Wants= and After=network-online.target; User= and Group=root; Type=notify; EnvironmentFile=-/etc/nomad.d/nomad.env; ExecReload=/bin/kill -HUP $MAINPID; ExecStart=/usr/bin/nomad agent -config /etc/nomad.d; KillMode=process; KillSignal=SIGINT; LimitNOFILE=65536; LimitNPROC=infinity; Restart=on-failure; RestartSec=2; TasksMax=infinity; OOMScoreAdjust=-1000; WantedBy=multi-user.target. HashiCorp's e2e units add StartLimitIntervalSec=0 and StartLimitBurst=3.

  • sd_notify (since 1.8.0): the agent sends READY=1 once it is set up and its signal handlers are in place, without waiting for a join or a leader, and again after a SIGHUP reload (handleSignals after setupAgent in command/agent/command.go, v1.11.3, read 2026-10-02). On the M2.6b VM checks systemctl start of a combined node's Type=notify unit returned 1.0 to 1.4 s after tent-node asked for it (by the timing of the log lines), far within systemd's default start timeout of 90 s.
  • KillMode=process: the executor and logmon processes of tasks stay in the unit's cgroup and must outlive a restart of the agent. They do: on the M2.6b VM checks systemctl restart nomad.service with a docker job running left its container with the same id and start time and the task unrestarted. At a shutdown systemd logs Unit process … (nomad) remains running after unit stopped for two such processes.
  • Delegate=yes is not needed: Nomad writes the root cgroup.subtree_control and makes nomad.slice itself (GH-18211).
  • cgroups v2: the client needs root and cpuset cpu io memory pids in /sys/fs/cgroup/cgroup.controllers, and nothing from the unit. On the M2.6b VM checks the client reported the docker and exec drivers healthy on 24.04 and 26.04 (Driver Status = docker,exec), so its cgroup checks passed (inferred). 🔬 nomad.slice itself was not listed.

Stopping (command/agent/command.go):

  • Without leave_on_terminate, SIGTERM makes the agent exit with 1 at once (1.2).
  • The graceful wait is gracefulTimeout, 5 s, plus the client's drain_on_shutdown deadline (terminateGracefully, v2.0.7). systemd's default stop timeout of 90 s would cut a long drain short; without a drain it covers the 5 s.

A client's drain at shutdown and its eligibility (verified on 2026-10-03 in the v2.0.7 tag, commit 9dcbdc5, and on a local 2.0.7 cluster on macOS: the official darwin_arm64 binary, one server and one client, ACLs on; -dev skips the self-drain):

  • On SIGTERM with leave_on_terminate the client calls DrainSelf (client/drain.go:16-86). Without a drain_on_shutdown block it returns at once, since the drain configuration is nil (DrainConfigFromAgent in client/config/drain.go; read in v1.11.3 on 2026-10-03 too), and the agent exits with 0 as soon as the leave returns, within the 5-second graceful wait (command/agent/command.go:1058-1064 and 1083-1089; Client.Leave returns at once, client/drain.go:17-20). With one it sends Node.UpdateDrain with MarkEligible=false (drain.go:34) and the meta message shutting down.
  • When the drain completes, NodesDrainComplete clears the drain strategy and leaves the eligibility as it is (nomad/drainer_shims.go:26, nomad/state/state_store.go:1231-1236). At the client's next registration the server keeps the stored eligibility (state_store.go:1016-1018), and the client takes it (client/client.go:2299-2303).
  • Live: an eligible client, stopped with SIGTERM, was ineligible, with its last drain's AccessorID client:<id> and the message shutting down; after a start it was ready and ineligible. A crash, SIGKILL or a power loss leaves it eligible (by the source: only DrainSelf marks it).
  • Nomad has no setting that makes the client eligible again: hashicorp/nomad#17093, open since 2023-05-05 and accepted, where a maintainer writes "Currently there's no built-in way to do that". The docs of 2.0.x (configuration/client.mdx) say nothing about eligibility after drain_on_shutdown.
  • The node's secret ID can clear it through PUT /v1/node/<id>/drain (verified live). Nomad's code says the secret ID "is no longer used as the primary authentication method" and still uses it while the servers are not upgraded (client/client.go:935-942). node:write has no per-node scope (acl/policy.go:239-241): it covers the drain, eligibility, purge and meta of every node, the garbage collection of allocations and intro tokens.

A server's leave_on_terminate (verified on 2026-10-03 in the v2.0.7 source and live runs of three local servers with ACLs, retry_join and bootstrap_expect = 3):

  • With it, SIGTERM makes a leader remove itself from Raft, and a follower waits up to 5 s for the leader to remove it (nomad/server.go:817-908). That wait (raftRemoveGracePeriod, after the Serf leave, server.go:861-906) can outlast the agent's graceful wait of 5 s: the agent then exits with 1, and systemd would show the unit failed after the stop, though the stop, and a restart, complete (inferred; the runs had no systemd). A combined agent in a cluster of several servers runs the same server code, so it does the same (by the source, not run).
  • At the next start Serf has forgotten its peers (rejoin_after_leave is false), retry_join brings the server back, the leader adds it as a nonvoter, and autopilot promotes it (server_stabilization_time, 10 s). In the runs it was a voter again 7 to 20 s after its start; the 7 s case, the former leader, is not explained.
  • A whole cluster whose servers left one by one comes back only through the last server to leave: until it starts, the others answer No cluster leader.
  • Without it, a short restart keeps the voter set. A stopped server stays a voter until autopilot removes it (about 40 s in the run) or DELETE /v1/operator/raft/peer does.
  • A single server (bootstrap_expect = 1, as a combined node of one) skips the removal and comes back as it was.
  • A hard power-off never leaves.
  • The docs of 2.0.x (configuration/index.mdx) say to set it on servers only "if the terminated server will never join the cluster again"; hashicorp/nomad#7943 gives the reasons (extra Raft log entries, Raft v2 ids).
  • Run on 2026-10-05 (three local servers with leave_on_terminate = false, Nomad 2.0.7 darwin_arm64, TLS and ACLs on): SIGTERM to a follower made it exit with status 1 within 0.28 s, and 0.44 s in a second run, and the log said nomad: serf: Shutdown without a Leave. In 25 polls of GET /v1/operator/raft/configuration, one a second from 2 s before the stop to 12 s after the restart, it stayed Voter=true while it was down (8 s) and after it restarted with the same data_dir. Autopilot was healthy with three voters again. On a real server the unit showed failed after that exit status (3.16, run qypvsk, 2026-10-05).

A new cluster's bootstrap and first clients (what update of M2.7a relies on). Run on 2026-10-05 against local Nomad 2.0.7 agents: the binary from the official nomad_2.0.7_darwin_arm64.zip, whose sha256 matches HashiCorp's signed nomad_2.0.7_SHA256SUMS, ports 14700 to 14732 on 127.0.0.1, region global, TLS on HTTP and RPC with verify_server_hostname and verify_https_client, ACLs on, certificates made with openssl. Requests came from curl and python over mTLS; the source is the v2.0.7 tag:

  • PUT /v1/acl/bootstrap with an unknown secret in X-Nomad-Token is accepted. With the header set to the bootstrap secret S and the body {"BootstrapSecret": "S"}, before any bootstrap: HTTP 200 and a management token whose SecretID was S. A second identical call answered 400 ACL bootstrap already done (reset index: 8), and GET /v1/acl/token/self with S returned the same token. GET /v1/status/leader with an unknown token answered 200 before the bootstrap.
    • The source agrees. ACL.Bootstrap (nomad/acl_endpoint.go:450-452) throws away any auth error "so that we can measure rate metrics" and only authenticates. A non-empty BootstrapSecret must be a UUID, else 400 invalid acl token, and becomes the SecretID (lines 497-504). The HTTP handler (ACLTokenBootstrap, command/agent/acl_endpoint.go:145-162) takes PUT or POST, reads the header into the request and checks nothing.
    • nomadops.Client.Bootstrap itself was not run: the check used curl and python, not the Go client.
  • A new cluster is healthy at once. GET /v1/operator/autopilot/health with the bootstrap token, for one server (bootstrap_expect = 1): HTTP 200, Healthy, one voter. For three servers (bootstrap_expect = 3), started one after another within about 1 s: the first leader showed 1.5 s after the poller started, the bootstrap answered 200 at once, and the first health call after it, 0.02 s after the leader showed, was healthy with three voters, all Voter=true. The log said found expected number of peers, attempting to bootstrap cluster. All three servers are in the first Raft configuration, so no promotion is awaited. Localhost timing only: VMs are slower.
  • Intro tokens. PUT /v1/acl/identity/client-introduction-token with {"NodeName": "n1", "NodePool": "default", "TTL": "30m"} and the management token answered 200 with {"JWT": …}. The string 30m is accepted (exp - iat = 1800); ACLIdentityClientIntroductionTokenRequest in api/acl.go has TTL time.Duration, NodeName, NodePool.
    • Size. 739 bytes for the node name n1. The JWT is RS256 with the claims aud, exp, iat, jti, nbf, nomad_node_name, nomad_node_pool and sub (node-introduction:global:default:n1:default), so each character of a longer name adds about 4/3 bytes twice, in the name claim and in sub.
    • strict. A client with the token in <data_dir>/client/intro_token.jwt (0600) registered (client: node registration complete, GET /v1/nodes showed it ready). The file stayed after registration. A client without a token did not register: the client logged Permission denied for Node.Register, the server node registration without introduction token: enforcement_level=strict, and GET /v1/nodes was empty.
    • The log lines (Nomad 2.0.7, a local server with client_introduction { enforcement = "strict" } and a client with no token, 2026-10-07). The server logs [ERROR] nomad.client: node registration without introduction token: enforcement_level=strict node_id=<uuid> node_pool=default node_name=rogue. The client logs [ERROR] client.rpc: error performing RPC to server: error="rpc error: Permission denied" rpc=Node.Register server=... and [ERROR] client: error registering: error="rpc error: Permission denied". GET /v1/nodes stays empty. The E2E step intro-token looks for the server's line, with node_name=e2e-rogue, and for the client's error registering line (ADR-0034).
    • warn. After the servers restarted with enforcement = "warn", a client without a token registered, and the server logged a warning with enforcement_level=warn.
    • The keyring signs the tokens, and it comes after the leader (Nomad 2.0.7, 2026-10-07). A local server with ACLs and strict introduction had a leader at 2.05 s and its ACL bootstrap at 2.09 s; at 2.13 s GET /v1/operator/keyring/keys answered 200 with [], and PUT /v1/acl/identity/client-introduction-token answered 500 failed to sign node introduction identity claims: keyring has not been initialized yet; at 2.28 s the keys listed one with "State":"active" and the token was issued. The agent logged nomad.keyring: initialized keyring after the failed request. In the v2.0.7 source, both calls are forwarded to the leader, and activeCipherSet (nomad/encrypter.go) fails with that text while the state store holds no active root key. The E2E run 4bjbp8 on Vultr hit it with one server: the first client's intro token got the 500 right after 1 Nomad server is healthy. Since M2.9 the Nomad step of update waits for an active key before it scrubs the servers and asks for any intro token.

Nodes of one name and expired intro tokens. Run on 2026-10-05 against local Nomad 2.0.7 (the official nomad_2.0.7_darwin_arm64.zip, sha256 4ada34db43f8b75c80c4e09ce50f4753e661bcb4a3745f415dd4aa7d01483e58, which matches nomad_2.0.7_SHA256SUMS): three servers, region global, TLS on HTTP and RPC, ACLs on, strict client introduction unless said otherwise, the default heartbeat and garbage-collection settings. The source is the v2.0.7 tag:

  • A killed client reads down after 14 to 16 s. SIGKILL at t=0, polled every 2 s: ready at 14.1 s, down at 16.1 s. The defaults allow 20 to 30 s from the last heartbeat, which is 10 to 30 s from the kill: a heartbeat TTL of 10 s plus a random stagger of up to 10 s, plus a grace of 10 s (nomad/config.go, nomad/heartbeat.go). tent sets a grace of 20 s, which allows about 20 to 40 s from the kill (derived, not measured; see the block on heartbeats in 1.2). After a leader change every node that is not terminal gets failover_heartbeat_ttl, 300 s (read in the code and measured on 2026-10-10: 1.2), so a dead client can read ready for up to 5 minutes then.
  • A client keeps its node through the removal of every server (lab of 2026-10-10, 1.2). c1 and c2, each with the RPC address of s1 alone in its configuration, read ready and eligible at every read through the removal of five servers and the restart of the last one, and still 5 min 35 s after that restart, past Nomad's 300 s timer after a leader change. c2's log shows its RPCs going to s4, then s3, then s2 as the servers went.
  • The node stays listed. 5 minutes later it was still down; node_gc_threshold is 24 h (not waited for).
  • A new client of the same name registers at once, as a second node. With an empty data directory, the same HTTP address and a new intro token, GET /v1/nodes listed two nodes called c1: one down and one ready, with different IDs and the same Address.
  • An intro token works for 60 s after its expiry. VerifyClaim (nomad/encrypter.go) calls go-jose v3.0.5's Validate, whose default leeway is one minute. With tokens of TTL 1 s, a new client registered when it started 30, 50 and 58 s after exp, and was refused at 62, 75 and 80 s (Permission denied for Node.Register; the server logged node registration introduction authentication failure … token is expired (exp)). The client retries on its own and never registers.
  • Under warn an expired token is refused too (the server logged the same failure with enforcement_level=warn), and a client without a token registers (node registration without introduction token). newRegistrationAllowed (nomad/node_endpoint.go:312) returns before it looks at the level when the token fails. The default enforcement is warn when the server block sets none (nomad/structs/node.go:860).
  • A new combined agent under warn registers at once (2026-10-09 and 10, seven agents, local Nomad 2.0.7 with ACL, mTLS and gossip encryption, no intro token): its node was ready and eligible 0.5 to 0.6 s after the agent started, and the leader logged node registration without introduction token: enforcement_level=warn. Its server voted 12.8 to 22.2 s after the start (12.8, 15.4, 13.8, 22.2, 19.5, 20.2 and 19.8 s). A system job's allocation ran on one of them 1.6 s after its start, while its server was a nonvoter. At the first start of three agents two nodes were ready after 2.0 s and the third, the leader's, after 17.6 s.
  • The server accepts any TTL. 1s, 5s, 10s, 20s, 1m, 0s (the server default, 5 m), 500ms, 1ms and -1s all answered 200, so a TTL has no lower bound; one above max_identity_ttl is cut to it. A TTL that works is limited by the 60 s of leeway.

What the agent reads once:

  • retry_join is read only at start; SIGHUP does not reload it (live run). SIGHUP reloads the log level, the TLS certificates, the scheduler workers, some Raft settings and the client's fingerprinters.
  • retry_interval defaults to 30 s and retry_max to 0, which sets no limit (DefaultConfig in command/agent/config.go, retryJoiner in command/agent/retry_join.go, v1.11.3, read 2026-10-02).

The data directory:

  • The agent makes missing directories and never changes the mode of one that exists: a server's data_dir and server/ 0755 and its keystore 0700; a client's client/ 0700, alloc/ 0711, and <parent of data_dir>/alloc_mounts 0711 (/var/lib/alloc_mounts).
  • A client/ made beforehand with mode 0700 and holding intro_token.jwt was left as it was. The agent reads the token once at start, and never removes or rewrites it.

Settings tent turns off:

  • disable_update_check = true, a top-level setting, stops the agent's update check with HashiCorp (docs).
  • Consul auto-join. consul { server_auto_join, client_auto_join } default to true (DefaultConsulConfig in nomad/structs/config/consul.go, v2.0.7, read 2026-09-30). With these defaults and no Consul, the agent logs Consul discovery errors every few seconds (live run). With both false, a server sets up no Consul bootstrap handler (setupConsulSyncer in nomad/server.go) and a client runs no Consul discovery (consulDiscovery in client/client.go). The agent still asks Consul otherwise: a client's Consul fingerprinter runs every 15 s (client/fingerprint/consul.go; these three in v1.11.3, read 2026-10-02).

nomad config validate <dir>:

  • It merges a directory as the agent does (*.hcl and *.json, sorted, subdirectories skipped, a later non-empty retry_join replacing an earlier one), refuses unknown keys and runs IsValidConfig; it exits with 1 on errors. It does not resolve go-sockaddr templates, and missing TLS files only warn, with exit 0. A top-level server_join {} passes and is ignored (source and live runs, 2026-09-29).
  • Zips exist for darwin on amd64 and arm64, linux on amd64 and arm64, and windows on amd64.
  • tent's online test ran it on darwin/arm64 on 2026-10-02 with Nomad 2.0.0 and 2.0.7, on each role's directory of tent's goldens: each printed WARNING: Error when parsing TLS configuration: open /etc/nomad.d/tls/ca.pem: no such file or directory and Configuration is valid!, and exited with 0. A file with tent_unknown_key = true exited with 1: Error loading <dir>/50-unknown.hcl: unexpected keys tent_unknown_key. With several bad files only the first in name order is named (2.0.7, 2026-10-02).

Seen on Ubuntu (the M2.6b VM checks, 2026-10-05): Nomad bound to the node's private address at its start, so the VPC interface was up by network-online.target and the go-sockaddr templates resolved; at a shutdown with a job running Nomad stopped in 1.1 s, before Docker, without a drain; the client was ready and eligible after the reboot. Nomad did not reattach to its container after systemctl restart docker (6.2).

After a hard stop of a server (run w28exz, 2026-10-14, Nomad 2.0.7). At about 01:07:29 a server stopped (a power-off). The probe's next read of the allocations through it timed out (7.1 s). Then for 30.2 s the reads of the checks of both running allocations failed, while the reads of the allocations and the service's registrations answered through other servers and listed both allocations running. A read of the checks goes over the connection of the allocation's client to a server. By a reading of Nomad's source, the client keeps that connection until its keepalive fails (5 s interval, about 10 s more for the ping) and its next heartbeat registers the node on another server. Run ae5dhs showed one stretch of 20.1 s without readable checks (upgrade) and one poll of 7.1 s in which the read of the registrations through a server that had just stopped failed (ha). Run qkmdrs showed one of 7.1 s (upgrade). The server rolls of ha in both runs showed no stretch without readable checks.

A rebooted client (run ae5dhs, 2026-10-14). A worker that was built with the old servers and restarted after all three servers had been replaced came back with the same node ID. SSH answered from a new boot 2 min 17 s after the restart, and 11 s later the journal of that boot held client: node registration complete and Nomad listed the node ready and eligible. After the boot its 05-join.hcl named the three new servers.

A tent-node of another version (the first E2E run, run 0oqujb, and a debug cluster built the same way, e2e-dbgaa1-2404, 2026-10-07). tent-node's preflight refuses a tent-node whose version is not the one in the NodeConfig's tent-node asset. The suite had built tent with go build, so its version was dev, and the tent-node that make dev-upload had uploaded carried the Makefile's git describe version. Both clusters of the run failed at create; on the debug cluster preflight failed with tent-node is v0.1.0-rc.3-2-gf15e11a, not dev, the version of the node config's tent-node asset. tent-node failed, so ufw stayed on and dropped port 4646, while SSH from the runner still passed (the cloud firewall's /32 rules worked). create then failed after about 11 minutes with failed to wait for a Nomad leader: ... <ip>:4646: ... no answer within 30s. A development build of tent and the tent-node that TENT_NODE_URL names must carry one version; make build gives both binaries one. The suite checks this by comparing TENT_NODE_SHA256 with the sha256 of the tent-node from the same make build, since a second make build of one commit writes another DATE and so another sha256.


2. Hetzner Cloud

2.1 API basics

  • Rate limit. The default is 3600 requests per hour per project, refilling at 1 per second, with bursts allowed.
    • Headers: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset (a UNIX time).
    • Exceeding the limit gives 429 rate_limit_exceeded.
  • Labels.
    • A key is an optional prefix (a DNS subdomain of at most 253 characters, followed by /) plus a name of at most 63 characters. The name starts and ends alphanumeric, with -, _ and . allowed inside.
    • A value is at most 63 characters with the same character rules, or empty.
    • The hetzner.cloud/ prefix is reserved.
  • Label selectors: k=v, k==v, k!=v, k, !k, k in (a,b), k notin (a,b), combined with commas (AND).
  • Waiting on actions. There are no webhooks, so you poll actions.
    • GET /actions?id=…&id=… batches up to 25 ids per request. hcloud-go's Action.WaitFor / WaitForFunc does this (since v2.8.0).
    • The per-resource action endpoint GET /<resource>/{id}/actions/{action_id} is deprecated (2026-04-30).
  • Tokens. Tokens are per project: Read or Read & Write. There are no finer-grained permissions.

2.2 Capacity, limits and prices ⏳

  • Capacity. Since 2026-06-26 a status incident says Hetzner restricts server creation for new customers and some randomly chosen existing customers. Every CX and CAX plan is marked "not available" on the website. A tool must:

    • check server_types[].locations[].available;
    • handle 412 resource_unavailable;
    • handle a create action that fails after the server briefly appears.
  • Default limits:

    • 5 servers per account. The docs also mention 8 dedicated-vCPU servers.
    • 20 load balancers, 50 firewalls, 30 snapshots and 10 floating IPs.
    • Primary IPs: up to 2× the server limit.
    • 50 placement groups per project.
    • Up to 3 networks per server.
  • Raising limits. Console → Limits → Request change. Allowed only after one month and a paid first invoice.

  • Server type names changed on 2025-10-16:

    • CX22/32/42/52 became CX23/33/43/53.
    • CPX11–51 became CPX12/22/32/42/52/62 in FSN, NBG, HEL and SIN. The old CPX types remain in ASH and HIL.
    • CAX11–41 (Arm) and CCX13–63 (dedicated AMD) are unchanged.
    • CX and CAX are EU-only.
    • The API field deprecated is removed on 2026-11-02; use locations[].deprecation.
  • Prices. Prices rose for all products on 2026-04-01, and again on 2026-06-15 for new orders and rescales. EU prices per month, excluding VAT and IPv4:

    Type Specs €/month
    CX23 2 vCPU, 4 GB, 40 GB 5.49
    CX33 4 vCPU, 8 GB 8.49
    CAX11 2 Arm vCPU, 4 GB 5.99
    CAX21 4 Arm vCPU, 8 GB 10.49
    CPX12 1 vCPU, 2 GB 11.49
    CPX22 2 vCPU, 4 GB, 80 GB 19.49
    CPX32 4 vCPU, 8 GB 35.49
    CCX13 2 dedicated vCPU, 8 GB 42.99
    • Primary IPv4 costs €0.50 per month; IPv6 is free.
    • The smallest load balancer, LB11, costs €6.99 plus €0.50 for IPv4.
    • US examples: CPX11 €17.49, CCX13 €43.49.
  • Type picks:

    • Nomad servers: CX23 or CAX11 when in stock, otherwise CPX22.
    • Workers: CX33, CX43 or CAX21–31, otherwise CPX32 or CPX42.
    • CCX for steady CPU.

2.3 Locations and network zones

Network zone Locations
eu-central fsn1, nbg1, hel1
us-east ash
us-west hil
ap-southeast sin
  • Networks. All subnets of a network are in one network zone. Servers in different locations of that zone can share it, which is useful in practice only in eu-central.
  • Location binding. Load balancers and floating IPs are bound to a network zone; primary IPs to a location.
  • Datacenters are gone. ⏳ /datacenters returns 410 from 2026-10-01, and the datacenter field was removed from servers and primary IPs on 2026-07-01 (hcloud-go v2.45 removed it). Use locations.

2.4 Servers

  • POST /servers parameters:
    • networks: IDs only, and the IP is assigned automatically;
    • start_after_create (default true);
    • placement_group;
    • firewalls (applied to the public interface);
    • public_net.enable_ipv4 / enable_ipv6;
    • ssh_keys, labels, volumes, automount;
    • location (ID or name).
  • user_data:
    • limited to 32 KiB;
    • cannot be updated (PUT /servers changes only the name and labels);
    • since 2026-01-16, a rebuild, which wipes the disk, can replace it.
  • shutdown sends an ACPI request, and the action status only reflects that it was sent. Use poweroff if the server must be off.
  • DELETE /servers/{id} removes the server immediately and detaches volumes, primary IPs, floating IPs, firewalls and placement groups.
  • Names. Server names must be unique per project and be valid hostnames.
  • SSH keys are unique per fingerprint within a project.

2.5 Networks

  • Subnet types:
    • cloud (use this);
    • server (deprecated);
    • vswitch, which couples a Robot dedicated-server vSwitch into the cloud network. This makes a future bare-metal client option possible.
  • attach_to_network takes network, ip (request a specific IP), alias_ips (up to 5, configured on the host by hand) and ip_range (auto-assign from a specific subnet). Errors: ip_not_available, no_subnet_available, server_already_attached.
  • A fixed private IP is only possible through attach_to_network. Create the server with start_after_create: false, attach it with ip, then power it on.
  • Servers with no public IP must get their network at creation.
  • MTU is 1450 on the private interface and 1500 on the public one.
  • Gateway. The gateway is the first IP of the network's range (for example 10.0.0.1). 172.31.1.1 is reserved as the public default gateway.
  • Interface names:
    • ens10 on CX*1 and CCX*1;
    • enp7s0 on CX*2, CX*3, CPX, CAX, CCX*2 and CCX*3, then enp8s0, enp9s0;
    • eth1 on CentOS 7.
  • Private interface configuration. Since 2026-05-18, Ubuntu 22.04+ and Fedora 44 configure the private interface through cloud-init 25.3+. Debian ≤13 and Alma/Rocky still use hc-utils (hc-net-ifup@<if>.service).

2.6 Firewalls

  • Scope. Firewalls filter the public interface only. The FAQ answers "Can Firewalls secure traffic to my private Networks?" with "Not yet".
  • Where they do not apply: load balancers ("Not yet"). Metadata requests also bypass them.
  • apply_to takes type server or label_selector. Resources added directly take precedence over those added through a label selector.
  • Default policy. Inbound defaults to DROP when the firewall has no inbound rules; outbound defaults to ACCEPT.
  • Limits: 5 firewalls per server, 50 rules and 500 effective rules per firewall.
  • Names are unique per project.

2.7 Placement groups

  • Only the spread type exists: every server in a group runs on a different physical host.
  • At most 10 servers per group, 50 groups per project and 1 group per server.
  • Placement groups are not bound to a location.
  • A server must be powered off to be added to a group, or it can be set at creation.

2.8 Load balancers

  • Targets: server, label_selector or ip (ip targets only in eu-central). use_private_ip requires the load balancer to be in the same network.
  • Private networking. Attach at creation (network) or with attach_to_network (ip, ip_range). public_interface: false makes the load balancer internal-only.
  • Protocols: tcp (passthrough, optional PROXY protocol), http, https (TLS terminated at the load balancer).
  • Health checks: tcp or http, with interval, timeout, retries, path and status codes.
  • No source-IP allow-list and no firewall for load balancers.
  • LB11: 5 services, 25 targets, 10 certificates, 10k connections and 20 TB of traffic in the EU.

2.9 Metadata service

  • Endpoint: http://169.254.169.254/hetzner/v1/metadata returns a YAML summary with hostname, instance-id, public-ipv4, private-networks, availability-zone (for example hel1-dc2) and region (the network zone, for example eu-central). User data is at /hetzner/v1/userdata.
  • private-networks lists, for each network: ip, alias_ips, interface_num, mac_address, network_id, network_name, network, subnet and gateway.
  • EC2-style routes (/latest/...) were removed on 2026-08-01.
  • Access control. No token or hop-limit protection is documented. Assume that containers using NAT can read user data, and block 169.254.169.254 for workloads. (Medium confidence, inferred.)

2.10 Object Storage ⏳

  • Endpoints: https://{fsn1,nbg1,hel1}.your-objectstorage.com. EU only.
  • Pricing is per account: a base of €6.49 per month, billed hourly while any bucket exists. It includes 1 TB of storage and 1 TB of egress. Beyond that, storage is €0.0087 per TB-hour and egress €1 per TB. The minimum billable object size is 64 KB.
  • S3 credentials can be created only in the Console. Neither the Cloud API nor hcloud-go manage buckets.
  • Supported: versioning, Object Lock (enabled at bucket creation), bucket policies and lifecycle rules.
  • Conditional writes. Conditional PUT and DELETE are unsupported on versioned buckets. If-None-Match: * on unversioned buckets is undocumented and unverified, so test it before relying on it. Until E2E does, tent treats every endpoint on your-objectstorage.com as a store without conditional writes (5.1).
  • Limits: 100 buckets, 200 credentials and 750 requests per second per bucket.

2.11 DNS

  • DNS is part of the Cloud API (/zones, /zones/{id}/rrsets, zone file import and export). It was in beta from 2025-10-07 and generally available from 2025-11-10.
  • hcloud-go added ZoneClient in v2.27.0; it is GA since v2.30.0, with exp/zoneutil.
  • The old dns.hetzner.com API went read-only on 2026-05-20 and was removed on 2026-05-27. Old DNS tokens do not work with the new API.

2.12 Images and snapshots

  • Images are named by name and architecture, and passing the name picks the right one.
  • Available: ubuntu-22.04, ubuntu-24.04 and ubuntu-26.04 (x86 and Arm), debian-12 and debian-13, fedora-43/44, and Alma and Rocky 8–10.
  • debian-11 is deprecated and unavailable after 2026-11-30.
  • Snapshots are not bound to a location, but they are bound to an architecture. The default limit is 30.
  • Arm servers exist only in the EU.

2.13 hcloud-go ⏳

  • Latest release: v2.49.0 (2026-09-22). go.mod requires Go 1.25.0.
  • Retries. hcloud-go retries on 409 conflict, 429, bad_gateway, timeouts, HTTP 502/504 and network timeouts.
    • Backoff: exponential from 1 s, capped at 60 s, with jitter, at most 5 retries (WithRetryOpts).
    • It does not read RateLimit-Reset.
  • Polling. The default action poll is a constant 500 ms. Set WithPollOpts with exponential backoff.
  • Mockable interfaces. I*Client interfaces (for example IServerClient) make fakes straightforward.
  • Experimental exp/ packages: actionutil, deprecationutil, labelutil, mockutil (a scripted httptest server), zoneutil and kit. They may break in minor releases.
  • Recent additions:
    • the Storage Box client;
    • user data on rebuild;
    • per-location server type availability;
    • datacenter fields removed (v2.45).

2.14 Integrations relevant to Nomad

  • CSI driver: see 1.2 (not officially supported for Nomad, but documented and tested).
  • Cloud controller manager: Kubernetes only.
  • Autoscaler plugin. There is no official Nomad Autoscaler plugin for Hetzner. The community AndrewChubatiuk/nomad-hcloud-autoscaler looks unmaintained: its last tag was in 2024-03 and its last commit in 2024-12. The Nomad Autoscaler itself is active (v0.5.0, 2026-05).
  • go-discover: no Hetzner provider (see 1.2).

3. Vultr

Vultr blocks automated access to www.vultr.com and status.vultr.com, so the API spec, the pricing pages and the status history were read from Wayback snapshots (August–September 2026). Public endpoints (/v2/regions, /v2/regions/{id}/availability, /v2/plans, /v2/os) were called live without a key on 2026-09-25.

3.1 API basics and access control

  • Base and auth. Base URL https://api.vultr.com/v2, authenticated with Authorization: Bearer <API key>.
  • Rate limit.
    • Counted per source IP: more than 30 requests/s may return 429 with a Retry-After header (in seconds).
    • Live responses also carry undocumented X-RateLimit-* headers. Treat them as informational.
  • Pagination. Cursor-based: per_page (default 100, maximum 500), cursor, meta.links.next/prev, meta.total.
  • Latency ⏳. In the M1 exit run of 2026-09-28 (3.16), each list call that tent made took 0.9–2 s. A node create makes 7 list calls, one after another, before its POST in a cluster with both firewall groups, so it spent 8–10 s before the POST (architecture §11.3).
  • Keys and users.
    • Keys belong to users. A user may have several named keys, each with an optional expiry.
    • User ACLs: abuse, activity_logs, alerts, billing, dns, firewall, loadbalancer, manage_users, objstore, provisioning, subscriptions, subscriptions_view, support, upgrade.
    • service_user creates an API-only user.
    • The IP allow-list is per user (all of the user's keys), not per key.
    • The E2E service user (set up by the maintainer by 2026-10-06; its rights told on 2026-10-07): an API-only user with every right except billing, user management and one more that the maintainer did not name, and an allow-list of the maintainer's two addresses. The key works only from those addresses, so the suite runs from the maintainer's machine (ADR-0034). Vultr raised the account's instance limit from 5 to 20 at the maintainer's request (told on 2026-10-06). On 2026-10-07 the key listed instances, VPCs, firewall groups, SSH keys, regions, plans and images with 200.
  • IAM (2026).
    • Policies list actions such as compute.instance.Create|Delete|List|Read|Update, network.firewall.* and network.vpc.*, with Allow or Deny.
    • Resources are * or type:id. No tag conditions.
    • Roles, groups, role trusts with OIDC federation, assumed-role sessions, and an STS-compatible AssumeRole.

3.2 govultr ⏳

Facts dated 2026-09-27 were read in the v3.33.0 source.

  • Release. v3.33.0 (2026-09-01), which removed VPC 2.0. go.mod requires Go 1.23.
  • Retries. govultr wraps go-retryablehttp, with 3 retries and 500 ms waits by default. It retries 429, 5xx other than 501 and connection errors for every method, POST included, and honours Retry-After.
    • SetRetryLimit(n) sets the retry count for every call. There is no policy per method (2026-09-27).
    • SetRateLimit(d) only sets the minimum and maximum wait between retries. It is not a throttle, and the README's SetRateLimit(500) means 500 ns.
    • An OnRequestCompleted hook gets each response, or nil where the error handler below took it (2026-09-27).
  • Errors are untyped. Delete, Halt, Start and Reboot return only an error. In detail (2026-09-27):
    • A 429 or a 5xx other than 501 goes through retryablehttp's error handler, even with retries at 0. The call gets a nil response and, at retries 0, the error gave up after 1 attempts, last error: "<body>".
    • A transport error becomes text as well, so errors.Is(err, context.Canceled) fails.
    • Any other non-2xx answer comes back as errors.New(body), with a {"error","status"} payload.
  • Requests and answers (2026-09-27).
    • govultr never sets Authorization. The http.Client it gets must set it, as the README's oauth2 example does.
    • It decodes an answer only when Content-Type is exactly application/json. For any other type it returns an empty result without an error.
    • InstanceUpdateReq sends tags and ddos_protection even when they are unset, as null, and leaves out every other empty field, firewall_group_id included (omitempty). What Vultr does with such a PATCH: 3.3.
  • Mocking. The service fields (InstanceService, VPCService, FirewallGroupService, LoadBalancerService, and so on) are interfaces, so fakes are easy. There are no official mocks.

3.3 Instances

  • POST /v2/instances requires region and plan, plus one of os_id, iso_id, snapshot_id, app_id or image_id.

    • Optional parameters include:
      • label, hostname, tags[], user_data (base64), sshkey_id[];
      • firewall_group_id (a single group), attach_vpc[] or enable_vpc, vpc_only;
      • enable_ipv6, disable_public_ipv4 (only together with IPv6), reserved_ipv4;
      • backups (enabled/disabled), ddos_protection, script_id, user_scheme (root/limited), activation_email, block_devices.
    • It returns 202 with instance.id and no job id.
    • The older fields attach_private_network, enable_private_network and tag are deprecated.
  • Status fields:

    • status: pending, active, suspended, resizing;
    • power_status: running, stopped;
    • server_status: none, locked, installingbooting, ok.

    Treat active + running + ok as ready in the API. Spike 2026-09-25: that state arrived 46–73 s after the create call, in one case 7 s before the kernel started. It does not mean the OS is up; see 3.4 for the boot timeline.

  • Labels are not unique, and create has no idempotency key. Vultr's own cloud controller manager handles "multiple instances found with name".

  • Tags.

    • Tags are plain strings and exist on instances (and bare metal) only.
    • The format rules are undocumented. Spike 2026-09-25: every tag tried was accepted and stored verbatim: /, =, :, ., spaces, upper case and non-ASCII (tent-ü). 512-character tags were accepted (longer ones were not tried). 50 tags per instance were accepted; 100 were rejected.
    • GET /v2/instances filters by tag (one value), label, hostname, region, main_ip and firewall_group_id. Spike 2026-09-25: ?tag= is an exact but case-insensitive match (no prefix or suffix matches), and ?label= is exact (no prefix match).
    • A new instance was listed by ?tag= on the first request after the create response (5 of 5 instances on 2026-09-25, 1 of 1 on 2026-09-27). On 2026-09-29 one of two was listed on the first request, and the other only on the second, about 1 s after the create response. So a search by operation tag right after a lost response can miss the instance for about a second.
  • PATCH /v2/instances/{id} returns 202 with job_ids. It can change:

    • tags (replaces the whole set);
    • user_data;
    • firewall_group_id;
    • plan;
    • attach_vpc / detach_vpc;
    • label (govultr and vultr-cli send it).

    hostname changes only through a reinstall.

    Spike 2026-09-27: a PATCH with "tags": null and "ddos_protection": null, as govultr's InstanceUpdateReq sends it, keeps the tags. That held with user_data and with firewall_group_id: "", and the user data was applied. govultr leaves out an empty firewall_group_id (3.2), so its Instance.Update cannot detach a firewall group.

    One PATCH with tags and user_data is what Nodes.MarkJoined sends: every tag the instance has, with tent/joined=true added, and the scrub stub. The spike saw tags alone and user_data with "tags": null, never both fields in one call. The M2.7b cluster runs of 2026-10-06 (rugw2m, sv3vwb, rgfckj; 3.16) verified that Vultr applies both: in each run five of five instances carried tent/joined=true and a user data that equalled the stub byte for byte. In all three runs Vultr listed the tags sorted (tent/joined=true second), although MarkJoined sends that tag last.

  • Private IP and MAC: GET /v2/instances/{id}/vpcs returns vpcs[] with id, mac_address and ip_address. The instance object also has internal_ip and vpcs[].

  • Power actions. halt, start and reboot return 204.

    • There is no graceful shutdown endpoint.
    • The v1 documentation described halt as a "hard power off (basically, unplugging the machine)", and the current docs call a restart a "hard reboot". Spike 2026-09-25: halt is a hard power-off.
      • A systemd unit's ExecStop marker was not written, although the unit was active.
      • The journal of the halted boot ends mid-activity, with no shutdown messages.
      • power_status read stopped 5–9 s after the call. M3.4 run 2026-10-10: 4 to 19 s after the call (three halts, 3.16); the machine itself stopped within a second, so the list is the late one.
      • start returned 204, and the instance was running/ok 15 s later.
    • Spike 2026-09-28: a second halt of a stopped instance also returned 204, so halting twice is not an error.
    • DELETE destroys a running instance immediately.
    • Stopped instances are billed until they are destroyed.

3.4 user_data, metadata and identity

  • user_data.
    • Base64-encoded. The size limit is not documented anywhere. Spike 2026-09-25:
      • The API has no limit up to 4 MiB. Both PATCH and create accepted 4 MiB and stored it intact.
      • A 65,508-byte user_data (tent's budget then, 64 KiB) works end to end: the metadata service served all of it, and a 45 KB write_files payload (encoding: b64) landed on disk with the right sha256. tent's budget is now 24 KiB on every provider (ADR-0027).
      • Larger payloads were not tested on the instance.
      • tent writes node.json with encoding: gz+b64, which cloud-init's write_files accepts. VM check 2026-09-29 (M2.5): on Ubuntu 24.04 and 26.04 the node.json on the instance had the sha256 of the payload, mode 0600 and owner root:root.
    • It can be updated through PATCH, with no rebuild. Spike 2026-09-25:
      • The metadata service served the new value 4 s after the PATCH, at both /latest/user-data and /v1.json.
      • After halt and start, the instance-id was unchanged and runcmd did not run again. cloud-init only cached the new value in /var/lib/cloud/instance/user-data.txt. Per-boot modules would run from the new value, so a scrub stub must contain none.
    • It is readable from inside the instance without authentication, at /v1.json (user-data) and /latest/user-data.
    • GET /v2/instances/{id}/user-data returns {"user_data": {"data": "<base64>"}}.
  • cloud-init.
    • Official Linux images run cloud-init with the Vultr datasource.

    • Vultr's docs: "cloud-init updates all the system packages before it enables SSH. This takes several minutes. The directive is in Vultr's vendor-data." This is outdated (spike 2026-09-25): the vendor data now sets package_upgrade: false itself, and the package-update-upgrade-install module took 2 ms.

    • Ordering. cloud-init runs runcmd in cloud-final.service, so tent-node install runs there. On Ubuntu, cloud-init's unit orders cloud-final.service after multi-user.target (upstream systemd/cloud-final.service.tmpl), so on a reboot cloud-final waits for tent-node.service, which multi-user.target wants. VM check 2026-09-29 (M2.5), Ubuntu 24.04 and 26.04:

      • After the reboot, After= of multi-user.target listed tent-node.service. tent-node.service became active, then multi-user.target, then cloud-final.service started: at 25.3 s, 25.8 s and 26.0 s on 24.04, and 22.2 s, 23.0 s and 23.0 s on 26.04 (monotonic).
      • cloud-init status --wait --long was done, with no errors, on both boots.
      • The critical chain of tent-node.service passed no cloud-final, cloud-config or cloud-init.target.
      • Both images run cloud-init 26.1, under different unit names. The critical chains pass cloud-init-local.service and cloud-init.service on 24.04, and cloud-init-main.service, cloud-init-local.service and cloud-init-network.service on 26.04.
      • VM check 2026-09-30 (M2.6a), with Docker and the CNI plugins: the same order after the reboot, with tent-node.service active, multi-user.target active and cloud-final.service started all at 28.3 s on 24.04 and 29.1 s on 26.04; cloud-init status done with no errors on both boots.
    • How SSH is enabled. The image's sshd listens on 127.0.0.1 only. A vendor-data script removes that ListenAddress and reloads sshd. Port 22 became public 31 s after kernel start.

    • Boot timeline (spike 2026-09-25, vc2-1c-1gb, ams, Ubuntu 24.04), counted from the create call:

      Step Time
      API active/running/ok 46–73 s
      kernel start 63–80 s
      sshd public kernel + about 31 s
      cloud-init finished (on the instance) kernel + 32–37 s
      SSH login from outside 127–133 s
      cloud-init status: done seen from outside 129–149 s
      • The timings were the same with no user data and with a 64 KiB tent-like cloud-config.
      • In cloud-init analyze blame no module took more than 5 s; the largest was the Vultr datasource search.
      • The first run's figures (SSH after 365 s; over 900 s with the default vendor data) did not reproduce. The on-instance timestamps show no step that slow.
      • VM check 2026-09-29 (M2.5), with tent-node's user data, on Ubuntu 24.04 and 26.04: API active/running/ok after 52–55 s, SSH login after 102 s, and cloud-init status: done at 104–105 s. After a reboot from inside, SSH answered on the new boot after 52–53 s. By status.json, up ran for about 0.3 s on the first boot and 1.1–1.3 s after the reboot. By the critical chain, tent-node.service took 0.3 s and 1.6–1.7 s.
      • VM check 2026-09-30 (M2.6a), with Docker and the CNI plugins, on Ubuntu 24.04 and 26.04: API active/running/ok after 55 s and 67 s, SSH login after 102 s and 118 s, cloud-init status: done at 155 s and 138 s. On the first boot up ran for 50 s and 32.5 s: the Docker install took 43 s and 26 s, the CNI download and unpack 4 s. tent-node.service's memory peak on the first boot, apt and dpkg included, was 554 MiB and 473 MiB. After a reboot SSH answered after 53 s and 52 s, and up ran for 6.3 s and 6.8 s, of which the cni phase's cache hit took 2.9 s and 3.2 s.
    • Vendor data (six MIME parts, read on the instance on 2026-09-25). User data does not replace them: they ran on instances with and without user data.

      • A cloud-config: a root password, ssh_pwauth: true, disable_root: false, a linuxuser account, package_upgrade: false, and a reboot if /tmp/.vultr_reboot_required exists.
      • A swap file of 100 MiB per GB of root disk (at most 8 GiB) on disks of 10 GB or more: 2.3 GiB on 25 GB.
      • /usr/lib/sysctl.d/90-vultr.conf, made immutable with chattr +i: fq, bbr, larger TCP buffers, net.ipv4.conf.all.arp_filter=1 and accept_ra=2 per interface. It also sets NIC multi-queue. Other sysctls must go into a later file, such as /etc/sysctl.d/99-tent.conf.
      • The sshd ListenAddress 127.0.0.1 removal described above.
      • A one-shot reboot hook.
      • It also shows /var/log/cloud-init.log in less on tty4.
  • Metadata service. http://169.254.169.254/v1/ and /v1.json, with no token and no hop limit.
    • Fields: hostname, instanceid (legacy), instance-v2-id (the API UUID), public-keys, region (countrycode, and regioncode in upper case, for example AMS), bgp, nvidia-driver and interfaces[].
    • Each interface has network-type (public or private), mac, IPv4 address, netmask and gateway, and network-v2-id (the VPC id).
    • Spike 2026-09-25:
      • The private interface also carries mtu ("1450") and has no gateway.
      • The public interface lists a route for 169.254.169.254/32 through the public gateway, so metadata traffic leaves through the public NIC.
      • /latest/user-data answered HTTP 200 from inside the instance.
    • /v1.json also carries user-data, vendor-data and startup-script.
    • What tent-node reads (ADR-0028): instance-v2-id, regioncode in lower case, and the IPv4 address of the one interface with network-type: private, from one GET of /v1.json per run. Its tests use a document of the form an instance in ams served on 2026-09-25, with documentation values in place of its ids and public addresses.
      • VM check 2026-09-29 (M2.5): on Ubuntu 24.04 and 26.04 the read succeeded at the first try, on the first boot and after a reboot. The read and the rest of preflight took 145 ms and 163 ms on 24.04, and 123 ms and 136 ms on 26.04, under the 1 s that a failed try waits before the next. The instance id, zone and private IP in status.json matched the API.
      • VM check 2026-09-30 (M2.6a): again at the first try, in 164 ms and 204 ms on the first boot and 184 ms and 383 ms after the reboot (24.04 and 26.04), now through the marked socket.
    • Who may ask it: since M2.6a only tent-node's marked socket (ADR-0029 decision 1).
      • VM check 2026-09-30 (M2.6a), Ubuntu 24.04 and 26.04: root curl on the host, a root busybox:1.38 container on the host network and one on Docker's bridge got no answer, each confirmed by the drop counter of its chain (output 0, 3, then 6; forward 0, then 3). tent-node up by hand exited with 0, every phase unchanged, and the output drops stayed at 6 during it.
      • After the reboot both drop counters stayed at 0: nothing asked the service without the mark once up had loaded the table. cloud-init's Vultr datasource keeps its cached data when the DMI id matches (DataSourceVultr.check_instance_id, cloud-init source, read 2026-09-29; the images run cloud-init 26.1), and cloud-final runs after up.
    • tags is present but was empty even though the instance had tags (both spike runs on 2026-09-25), so do not rely on it. Label and plan are not exposed.
  • Networking at boot. The first interface uses DHCP and SLAAC. Private interfaces get a static address, netmask, MTU and routes from metadata. So a VPC attached at creation is configured automatically, and a later attachment probably is not.
    • Spike 2026-09-25: cloud-init wrote netplan with dhcp4: true on the public NIC. The private NIC got addresses: [10.64.0.3/16] and mtu: 1450. Both were matched by MAC with set-name: enp1s0 public, enp8s0 private on vc2-1c-1gb in ams.
  • No signed instance identity document or attestation.
  • systemd and time sync on the image, as tent-node uses them.
    • systemctl show -p Job --value <unit> prints the id of the unit's queued or running job, or an empty line when it has none, on systemd 255 and 259 (systemd source at v255 and v259, src/systemctl/systemctl-show.c and src/shared/bus-print-properties.c, read 2026-09-30: -p shows the property even when it is empty, and --value prints only the value). systemctl show output is stable for programs (docs/PORTABILITY_AND_STABILITY.md). runtime reads it for docker.service (ADR-0029 decision 15). VM check reruns 2026-09-30 (M2.6a): exercised on systemd 255 and 259, by the timing: runtime waited 2.2 s and 1.5 s after the reboot and reported unchanged on both, which a failed call or a wrong reading would not have allowed. The reports show the waits and the statuses, not the job.
    • A systemctl start of a service whose automatic restart waits out RestartSec (SERVICE_AUTO_RESTART): on systemd 255 service_start returns -EAGAIN, so the start job waits for the automatic restart; on 259 it cuts the wait short and starts the service at once (src/core/service.c at v255 and v259, read 2026-09-30).
    • VM check 2026-09-29 (M2.5): systemctl is-enabled of a unit without a file prints not-found on stdout and nothing on stderr, and exits with 4, on systemd 255 (255.4-1ubuntu8.17, Ubuntu 24.04) and 259 (259.5-0ubuntu3.4, Ubuntu 26.04). tent-node's install and verify read the state from stdout and fail when it is empty.
    • VM check 2026-09-29 (M2.5): Vultr's Ubuntu 24.04 and 26.04 images both run systemd-timesyncd. /usr/lib/systemd/ntp-units.d/ holds only 80-systemd-timesync.list, chrony is inactive, and after up timedatectl show gave CanNTP=yes and NTP=yes. NTPSynchronized was no at the first check on 24.04 and yes after the reboot; on 26.04 it was yes both times.
      • Ubuntu moved its default to chrony in 25.10, but Vultr's 26.04 image does not use it. The earlier guess here that 26.04 runs chrony was wrong for Vultr's image.
      • tent-node turns NTP on through timedatectl where it can, and otherwise requires chrony.service or systemd-timesyncd.service to be active, so it also accepts an image that runs chrony.
    • Reloads of PID 1. systemctl enable without --no-reload asks PID 1 to reload by itself (systemctl(1), --no-reload). The M2.5 VM check did not record the reloads.
      • VM check 2026-09-30 (M2.6a): on the first boot PID 1 logged reloads requested by cloud-final.service ×2, cloud-init-local.service ×1 and tent-node.service ×4 on 24.04, and by cloud-init-main.service ×3 and tent-node.service ×4 on 26.04. systemd 255 logs them as "Reloading requested from client …", 259 as "Reload requested from client …". By their times, three of tent-node.service's came while hostfirewall ran and one during the Docker install, so docker.io's install reloads PID 1 too; whether through its debhelper snippets or systemd's dpkg trigger was not checked.
      • systemctl status tent-node.service showed no "changed on disk" warning, and NeedDaemonReload was no.

3.5 VPC

  • Only one VPC product remains.
    • "VPC 2.0" was deprecated on 2025-03-10 and has returned 404 since at least 2026-07-29.
    • govultr removed it on 2026-09-01.
    • /private-networks is a deprecated alias.
  • Scope. A VPC is region-scoped, and a region allows at most 5. An instance may join several; the per-instance maximum is undocumented.
  • CIDR. Set with v4_subnet and v4_subnet_mask (RFC1918), or assigned automatically.
    • Spike 2026-09-25: /16, /20 and /24 were all accepted for 10.64.0.0.
    • Addresses are assigned in order: the first two instances got .3 and .4.
    • The instance's VPC address was visible through GET /v2/instances/{id}/vpcs 6–7 s after the create call.
    • Spike 2026-09-28: the first read of /vpcs, 31 s after the create call, answered 200 with the address while the instance was still pending. No 404 was seen, but the first 31 s were not sampled.
  • Attaching. At creation (attach_vpc), or later with POST /v2/instances/{id}/vpcs/attach {vpc_id} or PATCH. Attaching later reboots the VM.
  • No specific private IP can be requested. The attach call takes only vpc_id; VPC 2.0's ip_address is gone.
  • Alias IPs work. Legacy docs say "Vultr does not enforce specific IP address ranges on private networks". Spike 2026-09-25: an address added in the OS (ip addr add 10.64.0.250/16 on the VPC interface) answered ping and HTTP from another instance, so the VPC does not bind addresses to instances. Nothing reserves such an address, though, and Vultr may later assign it to a new instance.
  • Traffic. Ping between instances over the VPC works with the image's default host firewall (spike 2026-09-25).
  • A freed private address goes to a new machine (run ae5dhs, 2026-10-14). After the rolls of ha, the new workers had the addresses of servers that the roll had deleted. After the servers were deleted and rebuilt, the three new servers got 10.64.0.3, .6 and .7, one of the three old addresses back (the servers before the delete had .3, .8 and .9), while the workers were at .4 and .5.
  • Deleting. After the instances disappeared from GET /v2/instances, DELETE /v2/vpcs/{id} still failed for 14–20 s with 400 The following servers are attached to this VPC network: <IPs> (spike 2026-09-25). Retry it. On 2026-09-28 the delete succeeded 12 s after the instance was gone, on the second request; the <IPs> in the refusal were the instance's public address, not its VPC address. On 2026-09-29 it succeeded 21 s and 25 s after the instance was gone, each time on the second request, after the same refusal. On 2026-09-30 it took 73 s and 7 requests, refused with the instance's public address until then, and 4 s and 1 request; in the reruns of that day 16 s and 2 requests, and 4 s and 1 request.
  • MTU and interfaces. MTU is 1450. Private interface names vary (enp6s0, enp7s0, enp8s0, ens7), so match by MAC.
  • No VPC peering API. Cross-region connectivity is do-it-yourself, for example with WireGuard.

3.6 Firewall groups

  • Rules:
    • ip_type: v4 or v6.
    • protocol: ICMP, TCP, UDP, GRE, ESP or AH.
    • subnet + subnet_size.
    • port: a single port or a range a:b.
    • source: empty, cloudflare, or a load balancer id. Vultr lists an empty source as the rule's own subnet (see below).
    • notes.
  • Accept-only. Inbound traffic that matches no rule is dropped.
  • Limits. Each group reports its max_rule_count (50 in examples). The number of groups per account is undocumented.
  • One group per instance (firewall_group_id), set at creation or with PATCH. PATCH with firewall_group_id: "" detaches the group (202).
  • Rule syntax that worked (spike 2026-09-25): {ip_type: "v4", protocol: "tcp", subnet: "0.0.0.0", subnet_size: 0, port: "22"}, the same with v6 and ::, and icmp without a port.
  • How Vultr lists rules (checked 2026-09-27, hack/vultr-spike run aqh7ag). Rules sent in tent's form come back as sent: ip_type, protocol, subnet, subnet_size and port keep their values and case, a single port stays 22, :: stays ::, and an ICMP rule has the port "". tent also reads 22:22, other cases and 0:0:0:0:0:0:0:0 as the same rule. The listing also has these fields, of which govultr's FirewallRule reads only source:
    • source: the rule's own subnet when the create had no source, such as "203.0.113.7/32" or "::/0". tent reads a source equal to the rule's subnet as no source.
    • type: the same as ip_type.
    • direction: "in".
    • loadbalancer_id: "".
  • A creation date without a zone (run w28exz, 2026-10-14). The firewall list gave a group made at 00:46:46 UTC on 2026-10-14 the date_created 2026-10-13 20:46:46: no zone, and 4 hours behind UTC, which is US Eastern time (UTC-4 in summer). Other objects gave RFC 3339 with an offset. The E2E suite's client reads a date of that form as US Eastern time; tent's own Vultr code skips a date it cannot read.
  • A second copy of a rule is refused (checked 2026-09-27): the same rule sent twice gets 400 {"error":"This rule is already defined ","status":400} the second time, with a trailing space in the text. tent counts it as done.
  • Deleting a group that an instance uses (spike 2026-09-27): DELETE /v2/firewalls/{id} answers 204 and deletes the group. The instance's firewall_group_id reads "" right after and 15 s later, so the instance has no firewall group. tent refuses to delete a group that nodes of the cluster use (architecture §11.5). It still retries an answer that says the group is in use (409, 423, or a 4xx whose message says "in use" or "are attached"), though Vultr gave none.
  • instance_count (spikes 2026-09-27 and 2026-09-28): while an instance used the group, neither GET /v2/firewalls/{id} nor GET /v2/firewalls had an instance_count (the field was missing, for 32 s after the attach). tent does not read it: the inventory counts the cluster's instances in each group itself (architecture §11.1).
  • Scope: "the main network interface", inbound. Spike 2026-09-25: a group that allowed only SSH and ICMP blocked public :4646 12 s after the PATCH, while :4646 over the VPC stayed reachable. Groups do not filter VPC traffic.
  • Host firewall (Ubuntu 24.04 image, spike 2026-09-25).
    • ufw is active: default deny incoming, allow outgoing, routed disabled. The only rules allow 22/tcp for IPv4 and IPv6, without limit.
    • firewalld, fail2ban and sshguard are not installed. The rules live in iptables-nft (table ip filter, table ip6 filter).
    • With these defaults :4646 is blocked from the internet and from the VPC. ICMP passes. With ufw disabled, both answered.
    • Other images (for example with firewalld) were not checked.
    • What tent-node does with it: architecture §11.5.
    • VM check 2026-09-30 (M2.6a), Ubuntu 24.04.5 (os_id 2284) and 26.04.1 (os_id 2760):
      • The images: nftables 1.0.9-1ubuntu0.1 and 1.1.6-1, iptables 1.8.10-3ubuntu2 and 1.8.11-2ubuntu3, no firewalld; nftables.service disabled; the iptables alternative is iptables-nft; the apt sources list main restricted universe multiverse.
      • The first boot: unattended-upgrades.service started at 26.4 s (24.04) and 24.6 s (26.04) (monotonic), but only as the "Unattended Upgrades Shutdown" helper; apt-daily and apt-daily-upgrade did not run, and no install command waited for a lock.
      • After up: docker.io 29.1.3-0ubuntu3~24.04.2 and 29.1.3-0ubuntu4.1 from the updates pockets, and 65 and 62 files in /var/lib/apt/lists; ufw.conf says ENABLED=no and the unit is disabled; tent's table inet tent, with its comment in nft -j list tables, next to Docker's ip filter, ip6 filter, ip nat and ip6 nat; the ip filter FORWARD policy is Docker's drop and ip6 filter FORWARD accepts; Docker 29.1.3 runs with overlayfs, the systemd cgroup driver on cgroup v2, live-restore, json-file logs and the iptables firewall backend; /opt/cni/bin holds 20 files.
      • After a reboot, as soon as SSH answered (uptime 33 s and 37 s, up already done): sshd on 22 (IPv4 and IPv6), systemd-resolved on 127.0.0.53 and 127.0.0.54, the DHCP client (systemd-networkd) on udp 68 of the public address, and containerd on a random 127.0.0.1 port listened, and nothing else.
  • sshd defaults (same image). PermitRootLogin yes, PasswordAuthentication yes, MaxAuthTries 6, MaxStartups 10:30:100. Password guessing from the internet reached a test instance within 12 minutes of boot.

3.7 Load balancers

  • Always public (IPv4 + IPv6), with no internal-only option. The vpc setting makes backends reachable over the VPC.
  • Targets are instance IDs only; there is no tag or label selection.
  • Forwarding. At most 15 rules (TCP, UDP, HTTP, HTTPS), TCP passthrough with optional PROXY protocol, and TCP, HTTP or HTTPS health checks.
  • Firewall. firewall_rules take a port, a source CIDR or cloudflare, and an ip_type.
  • Availability and price. Not available in mxp or sao. $10/month ($0.015/hour).

3.8 Regions, images, plans and billing ⏳

  • Regions. The API returns 33:

    • Americas: atl, dfw, ewr, hnl, lax, mex, mia, ord, sao, scl, sea, sjc, yto.
    • Europe: ams, cdg, fra, lhr, mad, man, mxp, sto, waw.
    • Asia-Pacific: blr, bom, del, icn, itm, mel, nrt, sgp, syd.
    • Africa and the Middle East: jnb, tlv.

    There are no availability zones.

  • Availability. GET /v2/regions/{id}/availability[?type=vc2] returns available_plans[] and available_vpc_only_plans[]: the plans deployable right now, without quantities. The locations list in /v2/plans does not mean "in stock". Checked live on 2026-09-27:

    • An unknown region answers 400 {"error":"Invalid region.","status":400}.
    • type takes all, vbm, vdc, vhp, vhf, vc2, voc, vcg, vdg, vdm, vx1, voc-g, voc-s, voc-c or voc-m. Any other value answers 400 Please provide a valid type: … with that list.
  • Images. Referenced by numeric os_id from GET /v2/os: Ubuntu 24.04 LTS = 2284, Ubuntu 26.04 LTS = 2760, Debian 12 = 2136, Debian 13 = 2625 (checked live).

  • No arm64 Cloud Compute plans. Checked live on 2026-10-05: GET /v2/plans?type=all&per_page=500, which answered without a key at about 12:30 UTC, returned 151 plans. type is voc (51), vx1 (36), vhp (16), vcg (15), vc2 (12), vdm (11) or vhf (10); cpu_vendor is AMD (97), Intel (53) or empty (1, a vdm GPU plan); vcpu_type is thread; gpu_brand is none, NVIDIA or AMD. No field says arm, a plan has no architecture field, and a case-insensitive search of the whole answer for arm, ampere and aarch found nothing.

  • An unauthenticated GET /v2/plans failed on 2026-10-05. From about 18:11 UTC Vultr answered it without a key with HTTP 500 Call to a member function request() on null, while the same call answered 200 at about 12:30 UTC that day. The failure was without a key: the preflight of the M2.7a cluster check read the plan and its price with the key at about 21:37 UTC. The spike's preflight sends the key when it has one, and goes on without the plan's price when the call fails without a key. On 2026-10-06 the call answered 200 without a key again.

  • Smallest plans (checked live for ams on 2026-09-25):

    Plan vCPU / RAM / disk $/month Real $/hour (÷ 672)
    vc2-1c-1gb 1 / 1 GB / 25 GB 5 0.0074
    vc2-1c-2gb 1 / 2 GB / 55 GB 10 0.0149
    vc2-2c-4gb 2 / 4 GB / 80 GB 20 0.030
    vhf-1c-2gb (NVMe) 1 / 2 GB / 64 GB 12 0.018
    vhp-1c-2gb-amd (NVMe) 1 / 2 GB / 50 GB 12 0.018

    The 512 MB plans ($2.50 IPv6-only, $3.50) are too small for Nomad.

  • Billing.

    • Hourly, with a minimum of 1 hour per instance, capped at 672 hours a month. Stopped instances are billed.
    • The API's hourly_cost divides by 730, about 8% below the real rate, so compute monthly_cost / 672.
    • location_cost applies multipliers (São Paulo 1.5×).
    • A public IPv4 is included.

3.9 Networking extras

  • Reserved IPs are public only, region-bound and cost $3/month.
  • Managed NAT gateway, generally available since 2026-02-05.
    • One per VPC, 8 Gbps, $0.03/hour.
    • Egress, TCP/UDP port forwarding and its own firewall.
    • vpc_only: true instances get no public interface and egress through it.
  • IPv6-only. disable_public_ipv4 together with enable_ipv6.

3.10 Ownership fields on other resources

  • Tags exist only on instances and bare metal. The NAT gateway has a single tag.
  • Everything else has one free-text field:
    • VPC and firewall group: description;
    • load balancer, reserved IP, block storage: label;
    • SSH key: name;
    • snapshot: description.
  • None of these is unique. Only GET /v2/instances filters by tag.
  • Spike 2026-09-25: the VPC description, the SSH key name and the firewall group description stored tent:cluster=…;kind=… markers, including :, = and ;, verbatim.
  • The longest text stored verbatim (spike 2026-09-27): 255 characters in a VPC or firewall group description, 128 in an SSH key name. Longer text is accepted (204) and cut to that length without an error. The spike set the texts with updates as govultr sends them: PUT for a VPC or a firewall group, PATCH for an SSH key. With op, tent's markers for a 20-character cluster name reach 99 characters on a firewall group, 98 on an SSH key and 82 on a VPC, so they fit.
  • A second SSH key with the same key material is accepted (spike 2026-09-27) under another name, and the account then lists both. So two clusters can use the same operator key, and so can a cluster and a key that an operator uploaded by hand.

3.11 Block storage and CSI

  • Block storage.
    • Types: high_perf (NVMe, 10–10,000 GB) and storage_opt (HDD, 40–40,000 GB).
    • Up to 16 volumes per instance, one instance per volume, same region.
    • live: true attaches without a restart.
    • $1 per 10 GB per month.
  • vultr-csi v0.19.0 (2026-09-08) ships official Nomad docs and example jobs (docs/nomad):
    • the controller runs as a service job and the node plugin as a system job;
    • it needs allow_privileged;
    • the API key goes to the controller only;
    • one deployment per region.

3.12 Object Storage ⏳

  • Endpoints are <id>.vultrobjects.com: ewr1, ewr2, chi3, atl1, atl2, lax1, sjc1, sea1, ams1, ams2, lhr1, mxp1, sgp1, sgp2, blr1, blr2, del1, nrt1, syd1. There is no Frankfurt endpoint.
  • Pricing. Relaunched on 2025-03-03.
    • Standard $18/month, Premium $36, Performance $50, Accelerated $100. Each includes 1 TB of storage and 1 TB of egress; extra egress is $0.01/GB.
    • The $6 Archive tier archives objects and needs them restored before reading, so it cannot hold state.
    • Limits: 100 buckets and 400 ops/s per subscription.
  • Features. Versioning, lifecycle rules, policies, ACLs, CORS, tagging and presigned URLs. Object lock is set at bucket creation through the Vultr API.
  • Keys through the API. POST /v2/object-storage with cluster_id and tier_id returns s3_access_key and s3_secret_key. Keys cover the whole subscription.
  • Conditional writes are not documented by Vultr. The endpoints run Ceph Object Gateway "tentacle", whose source honours If-Match and If-None-Match on PutObject. Likely supported, but untested 🔬. The spike's check needs an existing bucket and was not run on 2026-09-25. Ceph RGW 20.2.4 on RADOS honoured both in a local test on 2026-09-26 (5.1); Vultr's endpoints themselves are still untested.

3.13 DNS

  • Full API coverage (/v2/domains, records, SOA, DNSSEC), free of charge.
  • Documented propagation takes 6–12 hours.

3.14 Account limits, terms and operations ⏳

  • Account limits.

    • Set per account and not published: maximum instances, maximum monthly instance cost, and possibly instances created per 24 hours (anecdotal).
    • Not exposed by the API. Raise them in the Console under Billing → Limits.
    • Anecdote: a fresh account showed "maximum instances: 1, maximum billing fee: $1".
    • A deleted instance still counts for a short time. Run rugw2m (2026-10-06, 5 instances before the delete): the create that tent sent after the delete of an instance, in the same update --yes, failed with 400 Bad Request: Server add failed: You have reached the maximum number of active instances for this account. The report gives no time between the two calls: the whole run took 11 s, and the plan alone had taken 5 s, so the create came less than 10 s after the delete. In run sv3vwb the replacement was created 51 s after the delete of the machine it replaced, where an ordinary create of that run took 50 s, so the limit held that create back for a few seconds at most. Neither run measured how long Vultr counts a deleted instance.
  • Verification. A card or PayPal account is required.

  • TOS and AUP. Nothing about minimum instance lifetimes. Circumventing limits (for example, with extra accounts) is forbidden. Crypto mining is banned.

  • Provisioning time (VPSBenchmarks, order to SSH, small samples):

    Provider Average Notes
    Vultr 80 s median 60 s, range 30–260 s, 12 samples
    Hetzner 32 s 2 samples
    • Deploying from a snapshot takes 10–15 minutes longer.
    • Creating a snapshot takes up to 30 minutes and costs $0.05/GB-month.
  • Incidents.

    • Deploy delays: 2025-07-14, 2025-10-08, 2025-11-11, 2025-11-23, 2026-05-09.
    • Deploy failures in the API and console: 2026-08-06.
    • API outage: 2026-09-06.
    • Atlanta partial outage, open since 2026-09-18.

3.15 Ecosystem

  • go-discover has no Vultr provider.
  • Nomad Autoscaler has no Vultr target plugin.
  • Terraform provider vultr/vultr v2.32.0 fails on instance reads after the VPC 2.0 removal. The fix is on master but unreleased as of 2026-09-25.
  • Packer plugin: v2.7.0.
  • Cluster API provider CAPVULTR is active: v0.5.0, 2026-09-11.
  • "Clusters" API. A new API for instance pools built from templates. It is not in govultr, and its documentation is thin.
  • Vultr's Nomad guide (updated 2026-04) joins servers through static private IPs in retry_join. That breaks after servers are replaced; tent uses seed-and-refresh instead.

3.16 Spike runs

All runs: region ams, plan vc2-1c-1gb, Ubuntu 24.04 (os_id 2284), except one of the M2.5 VM checks, one M2.6a VM check and its rerun, one M2.6b VM check and its rerun, and the second cluster of each E2E run, which ran Ubuntu 26.04 (os_id 2760). Runs 1 to 3 ran on 2026-09-25, run 4 on 2026-09-27, run 5 on 2026-09-28, the M2.5 VM checks on 2026-09-29, the M2.6a VM checks and their reruns on 2026-09-30, the M2.6b VM checks, their reruns and the M2.7a cluster check on 2026-10-05, and the three M2.7b cluster runs below, all on 2026-10-06, the M2.8 cluster check on 2026-10-07, and the M3.3 roll check on 2026-10-08. The six E2E runs of M2.9 (2026-10-07, below) ran the smoke scenario of test/e2e on Ubuntu 24.04 and 26.04 at once. Reports are in hack/vultr-spike/results/ (git-ignored), and the E2E runs' results in test/e2e/results/ (git-ignored). The M1 exit run below was not a spike run.

Run 1 (tt3s1g, spike v1) verified:

  • the tag syntax, limits and filter semantics;
  • ownership markers in free-text fields;
  • VPC masks, static private addressing and interface naming;
  • metadata fields;
  • no user_data limit up to 4 MiB.

Its SSH to the instances stopped working after a burst of about seven connections, so every check that needed SSH was inconclusive. Its boot timings (SSH after 365 s, over 900 s with the default vendor data) did not reproduce later.

Run 2 (hh7sgs, spike v2) ran every check except userdata (settled by run 1) and objstore (no bucket). Spike v2 opens one multiplexed SSH connection per host, paces new connections and collects data on the instance. It verified:

  • the host firewall defaults and sshd settings of the image (3.6);
  • that firewall groups do not filter VPC traffic;
  • that alias IPs in the VPC are reachable (3.5);
  • ping between instances over the VPC;
  • user_data scrubbing, and that cloud-init does not re-run after a restart (3.4);
  • that a 64 KiB user_data works end to end;
  • that halt is a hard power-off and start works (3.3);
  • the vendor data contents and where boot time goes;
  • that a new instance is listable by tag at once;
  • that the VPC cannot be deleted for 14–20 s after its instances are gone.

Its outside boot timings were too high: macOS nc -w does not bound the connect time, so every probe of a host that did not answer yet blocked the poll loop for 75 s. The script now uses a bash /dev/tcp probe with a 5 s limit.

Run 3 (mqlko4, --only boot) re-measured boot with the fixed probe. Its figures are the ones in 3.4.

Why run 1 lost SSH is still unknown. The image has no SSH rate limiting (ufw allows 22 without limit, no fail2ban or sshguard, default MaxStartups), and run 2, with one connection per host, had no SSH problems. This does not affect tent: tent never uses SSH in the node lifecycle.

Run 4 (aqh7ag, spike v3, --only sshdup,lengths,rules,fwinuse,patchtags) checked the facts that ADR-0023 and the node primitives rely on, with one instance. It verified:

  • that Vultr accepts a second SSH key with the same key material (3.10);
  • the longest description and SSH key name stored verbatim, and that longer text is cut without an error;
  • how Vultr lists firewall rules, and that it refuses a second copy of a rule (3.6);
  • that Vultr deletes a firewall group that an instance uses; GET /v2/firewalls/{id} of that group had no instance_count;
  • that the instance PATCH govultr sends keeps the tags and applies the user data (3.3);
  • again, that a new instance is listable by tag at once.

Run 5 (ekrnuo, spike v4, --only vpcpending,fwinuse,halttwice) ran one instance in a firewall group with no rules, since none of these checks needs SSH. It verified:

  • that an instance can be created with a firewall group, which applies from its first boot;
  • that /vpcs answered 200 with the address at the first read, 31 s after the create call (3.5);
  • that neither firewall group endpoint reports instance_count (3.6);
  • that a second halt of a stopped instance answers 204 (3.3).

M1 exit run (2026-09-28) was tent itself against the API, in ams with vc2-1c-1gb: a cluster with one server and one worker, then two workers.

  • tent create cluster … --allow-single-server --yes built the VPC, both firewall groups and two nodes, whose VPC addresses were 10.64.0.3 and 10.64.0.4. tent update cluster --exit-code --allow-single-server then printed No changes. and exited with 0, so the firewall rules read back from Vultr without a diff.
  • With the workers raised to 2, an update --yes was interrupted with SIGINT 20 s after creating node …-workers-1: after the POST, while tent waited for the node to be ready. The next update --yes planned ~ node …-workers-1 (ID …, wait until it is ready) (the line of that tent; since M2.7b it reads wait until it joins, scrub its user data) and created no instance, and a further --exit-code run had no changes. Vultr listed exactly three instances.
  • tent delete cluster --yes deleted the three nodes, both firewall groups, the VPC and the four state objects. The API then listed no instance, VPC, firewall group or SSH key with the cluster's marker.
  • Each list call took 0.9–2 s (3.1).

M2.5 VM checks (ppssbr and yccsoc, spike v5, --only tentnode, 2026-09-29) each booted one instance from the user data of hack/tent-node-userdata: ppssbr on Ubuntu 24.04 (os_id 2284), yccsoc on Ubuntu 26.04 (os_id 2760). Both ran one development build of tent-node, v0.1.0-rc.2-18-g4fc8be6-dirty, which make dev-upload put into the CI R2 bucket; the object was deleted afterwards. Both passed. They verified:

  • that node.json arrives intact from the gz+b64 user data (3.4);
  • that up ran on the first boot, and after a reboot changed nothing but status.json;
  • the order of tent-node.service, multi-user.target and cloud-final after the reboot, and that cloud-init finished with no errors on both boots;
  • that the metadata read succeeded at the first try on both boots;
  • what systemctl is-enabled prints for a unit without a file on systemd 255 and 259;
  • that both images run systemd-timesyncd, not chrony;
  • that a new instance can need a second request, about 1 s after the create response, to be listed by tag (3.3);
  • that the VPC delete succeeded 21–25 s after the instances were gone (3.5).

M2.6a VM checks (3ornct and yqjlcb, spike v6, --only tentnode, 2026-09-30) each booted one client instance from the user data of hack/tent-node-userdata: 3ornct on Ubuntu 24.04.5 (os_id 2284, systemd 255.4-1ubuntu8.17), yqjlcb on Ubuntu 26.04.1 (os_id 2760, systemd 259.5-0ubuntu3.4). Both ran one development build of tent-node, v0.1.0-rc.2-30-ga41d6e1. Both passed but for one finding. They verified:

  • the image's packages and firewalls, and that no apt timer held a lock on the first boot (3.6);
  • ufw off, tent's table next to Docker's tables, Docker with daemon.json, and the CNI plugins in /opt/cni/bin;
  • that root curl, a root container on the host network and one on Docker's bridge get no answer from the metadata service, while tent-node's marked read does, and that nothing asked it unmarked after the reboot (3.4);
  • PID 1's reloads during install and up, with no "changed on disk" warning;
  • after the reboot: tent's table loaded again with the same comment, only status.json changed among tent-node's files, cloud-init done with no errors, the boot order as designed, and only sshd, systemd-resolved, the DHCP client and containerd on loopback listening when SSH answered, after up had run;
  • that a new instance was listed by tag at the first request, and that the VPC delete took 73 s and 7 requests, then 4 s and 1 request, after the instance was gone (3.5).

The finding: after the reboot on 24.04 runtime reported done. By the timing, docker.service was still inactive with its start job queued, and systemctl start waited 2 s for it. On 26.04 runtime reported unchanged; it took 1.9 s, so Docker was most likely still activating, which the old code counted as no change; with Docker active, runtime takes about 30 ms (up by hand). The fix followed: runtime now counts a pending job of docker.service as Docker starting on its own (ADR-0029 decision 15). The reruns below confirmed it.

M2.6a VM reruns (7lhvvv and jcirel, spike v6, --only tentnode, 2026-09-30) ran the check again with the fix: 7lhvvv on Ubuntu 24.04 (os_id 2284), jcirel on Ubuntu 26.04 (os_id 2760), both with one development build of tent-node, v0.1.0-rc.2-30-ga41d6e1-dirty, and the spike's parser for systemd 259's reload messages. Both passed, with no failed, unexpected, missing or unknown row. They verified:

  • the fix on a real VM: after the reboot runtime waited about 2.2 s for Docker on 24.04, as in the first run, and reported unchanged; on 26.04 it reported unchanged after 1.5 s; only hostfirewall was done on both;
  • the reloads of the first boot, now parsed on both images, with the same counts as the first runs (3.4);
  • everything else as in the first runs: the metadata probes blocked with their counters, up by hand unchanged, tent's table back after the reboot with the same comment, and only status.json changed.

M2.6b VM checks (bxkllh and g2rl9d, spike v7, --only tentnode, 2026-10-05) each booted the combined node of a cluster of one node from the user data of hack/tent-node-userdata (ADR-0030): bxkllh on Ubuntu 24.04.5 (os_id 2284, systemd 255.4, docker.io 29.1.3-0ubuntu3~24.04.2), g2rl9d on Ubuntu 26.04.1 (os_id 2760, systemd 259.5, docker.io 29.1.3-0ubuntu4.1). Both ran one development build of tent-node, v0.1.0-rc.2-30-g3b219a6-dirty, with Nomad 2.0.7; the user data took 6111 and 5959 bytes. Every row was as expected on both images but one, the restart of Docker (below). They verified:

  • Boot. cloud-init finished 248 s and 137 s after the create call. tent-node.service was active 92.0 s and 83.9 s after boot, and nomad.service 91.9 s and 83.8 s. systemctl start nomad.service returned 1.0 to 1.4 s after tent-node logged start Nomad, on the first boot and after the reboot (by the timing of the log lines), well within systemd's start timeout of 90 s. After the reboot nomad.service was active 38.2 s and 35.4 s after boot, and started after hostfirewall had logged its result (27.5 s, then 37.2 s; 23.5 s, then 34.2 s, monotonic).
  • Cost on the node. Over the first boot the cgroup of tent-node.service peaked at 519.4 MB and 436.7 MB, apt's install and the page cache of what up wrote included (systemd's memory peak). With the zip in the cache, the nomad phase took about 3 to 4 s before start Nomad (by the timing).
  • Registration. The first Node.Register failed with failed to sign node identity claims: keyring has not been initialized yet and succeeded 24 s and 21 s later. After systemctl restart nomad.service, Node.Register and Node.GetClientAllocs failed with Permission denied and succeeded 23 s and 20 s later; on 24.04 the keyring replicator first logged failed to fetch key from any peer. After the reboot the client registered at once. verify passed every time: a combined node's client knows its own server before it has registered.
  • Nomad. nomad acl bootstrap exited with 0, and the token stayed in a root-only file. The node led its cluster of one in the region global with the datacenter ams, and nomad node status showed it ready and eligible in the pool default, with the meta tent_instance_id, tent_cluster and tent_nodegroup. With enforcement = warn the server logged node registration without introduction token.
  • A job (busybox:1.38's httpd in bridge mode with a dynamic port): its port answered on the private address, and from its container the metadata service timed out while the drop counter of tent's forward chain grew.
  • A restart of Nomad with the job running returned after 1.5 s and 1.7 s. The container kept its id and start time, the task was not restarted, the node stayed ready and eligible, no line named a drain, and the port answered. Nomad logged nothing at INFO about restoring or reattaching.
  • refresh-join. Its first run, right after tent-node.service finished, asked the node's own agent over mTLS (server.global.nomad) and rewrote 05-join.hcl to 10.64.0.3:4648 (known=0 servers=1); later runs changed nothing, and peers.json held ["10.64.0.3"].
  • The reboot. hostfirewall and nomad were done, every other phase unchanged, and only status.json changed among tent-node's files. join logged a server did not answer for the node's own address (connection refused), since Nomad was not running yet. The node came back ready and eligible. The first boot's allocation ran again: the client restarted its task after Exit Code: 255, with the restart policy's delay of 17.3 s and 15.6 s. When SSH answered, up had finished on 24.04 and Nomad listened; on 26.04 up still ran, and only sshd, systemd-resolved, the DHCP client and containerd listened.
  • The shutdown with the job running: Nomad's stop took 1.1 s on both and ended before Docker's stop began, and no line named a drain. systemd logged Unit process … (nomad) remains running after unit stopped for two processes, which KillMode=process leaves to the tasks. Docker's stop took about 5 s.
  • docker.io came from noble-updates/universe and noble-security/universe on 24.04, and from resolute-updates/universe and resolute-security/universe on 26.04 (apt-cache policy).
  • Preflight's metadata read took 256 ms and 148 ms on the first boot, 255 ms and 379 ms after the reboot. The VPC delete succeeded 12 s and 3 requests after the instance was gone, on both.

The finding: a restart of Docker restarted the job's task on both images. tent-node up with a changed daemon.json restarted docker.service (runtime done, every other phase unchanged, Nomad not restarted). Nomad's docker driver logged failed to wait for container; already terminated and log streaming ended with error: unexpected EOF; the task ended Terminated with Exit Code: 0, Exit Message: "unexpected EOF", and the client started it again in a new container after the restart policy's delay of 17.3 s and 18.7 s. So Nomad 2.0.7 did not reattach to its container after a restart of docker.io 29.1.3 with live-restore. What tent does about it: see ADR-0030's follow-ups.

M2.6b VM reruns (bqpw7p and xskxx4, spike v8, --only tentnode, 2026-10-05) ran spike v8 on Ubuntu 24.04 (bqpw7p) and 26.04 (xskxx4) with a rebuild of the same version label (sha256 ed76e2b8c84d74ffce336a6df185c3d1a27fb8858d3a1b222b97c5e7fb35910e; the v7 runs had eed8a97a23d5f7f4801fab7b347e4dc4f6f61c2614fbe8569dd72d3bca101a40), and passed every row on both. Besides what the v7 runs showed, they verified:

  • A restart of containerd with the job running (systemctl restart containerd.service) kept the task: the same container id and start time, no task restart, watched 62 s and 63 s after containerd was active again. Neither docker.service nor nomad.service became active again. So an upgrade of containerd does not touch Nomad's docker tasks (6.4).
  • A restart of Docker replaced the task again, as accepted: it ran again 17 s and 20 s after docker.service was active again.
  • Records. needrestart is installed on Vultr's images (3.6-7ubuntu4.5 on 24.04, 3.11-1ubuntu2 on 26.04), with no $nrconf{restart} line, the package's default. /etc/apt/apt.conf.d/20auto-upgrades sets APT::Periodic::Update-Package-Lists "1" and APT::Periodic::Unattended-Upgrade "1" on both. debconf-show docker.io gives docker.io/restart: false on both. docker.service has Wants= and After= on containerd.service, Requires=docker.socket, no BindsTo= or PartOf=, and Restart=always.
  • Everything else as on the v7 runs: a restart of Nomad kept the task, the node was eligible after the reboot, and Nomad stopped in 1.1 s, before Docker.

M2.7a cluster check (qypvsk, spike v9, --only cluster, 2026-10-05) ran tent itself on Ubuntu 24.04, ams, vc2-1c-1gb, with tent v0.1.0-rc.2-43-g58a50ff-dirty and a development tent-node, and passed every row. It built a cluster of 3 servers and 2 clients, five instances at once, from an empty account, with tent create cluster --yes:

  • The build. The command exited 0 after 453 s. The progress lines showed a Nomad leader, the bootstrap and healthy servers all at 190 s, and the clients registered 126 s and 263 s after the leader line (each client's create included). The bootstrap and the health wait with three voters answered at once, as on the local run (1.6). The longest wait of the Nomad step stayed far under its 10 minutes.
  • The Nomad API, through the certificate and token of hack/tent-operator, the stopgap that tent export nomad has since replaced (TLS name server.global.nomad): 3 alive servers, autopilot healthy with 3 voters, 2 ready and eligible clients under their instance labels. A docker job in bridge mode ran on a client after 5 s and was purged.
  • A second run. update cluster --exit-code exited 0 and update cluster --yes printed cluster … is up to date, each in 4 s. All 5 instances carry a tent/spec-hash tag, 2 distinct values (servers and clients).
  • User data. All 5 instances still held /etc/tent/node.json: M2.7a scrubbed nothing.
  • A client. status.json had preflight and verify unchanged and every other phase done; 05-join.hcl listed the 3 servers on port 4647. The intro token file was 787 bytes, mode 0600, root:root, for the node name spk-qypvsk-workers-0 (the plan's size check assumes up to 2048). The size matches the estimate of 4/3 bytes per name character, twice, from the 739 bytes for a two-character name (1.6).
  • Decision 26 on a real server. systemctl restart nomad exited 0 and the unit was active again at once (Result success, NRestarts 0). Its journal had one Failed with result 'exit-code' line, the stop ending with status 1. Autopilot was healthy with 3 voters 7 s after the restart.
  • The delete. tent delete cluster --yes exited 0 after 23 s; the VPC delete was retried four times, about 10 s, while Vultr still listed the instances as attached. Afterwards no instance, VPC, firewall group or SSH key of the cluster was left, and the state store was empty. None of the CA key, gossip key, ACL bootstrap token and operator key appeared in tent's output or the report.

M2.7b cluster check, first run (rugw2m, spike v10, --only cluster --unregistered, 2026-10-06) ran tent v0.1.0-rc.2-53-g638ebd9-dirty with a development tent-node on Ubuntu 24.04, ams, vc2-1c-1gb. It built the cluster of the M2.7a check, 3 servers and 2 clients, and the replacement of a client then failed (below). The three rows after it, the replacement, its node and the final update --exit-code, did not run. It verified:

  • The build. tent create cluster --yes exited 0 after 543 s. The leader, the ACL bootstrap and the healthy servers showed at 268 s, and the clients registered 142 s and 275 s after the leader line. Five scrubbed the user data of node … lines followed, a server's after the healthy servers and a client's after its registration.
  • The scrub. Five of five instances carried tent/joined=true beside tent/spec-hash, and their user data, read from GET /v2/instances/{id}/user-data, equalled tent's stub byte for byte and held no /etc/tent/node.json. So one PATCH set the tags and the user data (3.3). update --exit-code exited 0 and update --yes printed is up to date, each in 4 s.
  • A reboot of a client left /etc/tent/node.json with its sha256. SSH answered after 53 s and Nomad listed the node ready and eligible 54 s after the reboot.
  • The delete guard. With one client in the specs, update and update --yes each exited 1 in 5 s and 4 s with update would delete a node that joined Nomad: …-workers-1, and 5 instances stayed. With the specs restored, the plan was empty.
  • A client that never registered. systemctl stop nomad.service left the unit inactive, and it was still inactive 1711 s later, so nothing starts Nomad again. The purge of its node answered HTTP 200. At an age of 1946 s the plan was a delete as not registered and a create of the same name, exit 0 in 5 s.
  • The delete. tent delete cluster --yes exited 0 after 19 s. The VPC delete was retried three times (0.9 s, 1.6 s, 3.3 s) while Vultr still said that servers were attached. Nothing was left in the Vultr API or the state store, and no secret was in the output.

It found two things, both fixed:

  • cloud-init read degraded after the reboot. cloud-init status --wait --long printed status: done, extended_status: degraded done and exit 2, with the recoverable error Failed at merging in cloud config part from part-001: empty cloud config. The stub was a header and a comment (6.5). The stub got a line {}. The row had called this as expected, since it read only errors: [].
  • The replacement failed at the account's limit (3.14): update --yes exited 1 after 11 s. The Vultr provider now sends a node create again that the instance limit refuses within 2 minutes of its own delete.

M2.7b cluster check, second run (sv3vwb, spike v11, --only cluster --unregistered, 2026-10-06) ran tent v0.1.0-rc.2-54-g7d1c6fd-dirty the same way, with the two fixes in the code. Spike v11 changed three things against v10: the stub's bytes, the cloud-init verdict of the reboot row (it needs status: done, exit 0 and no recoverable error), and the row of the replacement, which also gives the seconds between the delete and the create and the time that a client's create took in the build. It verified:

  • The build. tent create cluster --yes exited 0 after 484 s. The leader, the bootstrap and the healthy servers showed at 212 s, the clients registered 140 s and 271 s after the leader line, and five of five instances carried tent/joined=true and the stub of three lines. update --exit-code exited 0 in 6 s and update --yes printed is up to date in 3 s. Three voters were back 1 s after a server's restart.
  • cloud-init after the reboot was healthy: status: done, extended_status: done, errors: [], recoverable_errors: {}, exit 0 (6.5). The row itself read UNEXPECTED: cloud-init status ? (errors []): cloud-init status --wait printed ..status: done, and the script read the status only at the start of a line. The script is fixed, and the third run shows the row as expected; the details of this report hold the healthy status.
  • The delete guard exited 1 in 5 s and 4 s with 5 instances left, and --exit-code after the specs were restored exited 0 in 4 s.
  • A client that never registered. Nomad was inactive after the stop and still inactive 1711 s later. At an age of 1944 s the plan was the delete as not registered and the create, exit 0 in 6 s. tent update cluster --yes then exited 0 in 142 s: it deleted, created, registered and scrubbed the client. The new machine took the node's name and Nomad listed it ready and eligible at 10.64.0.7. update --exit-code after it exited 0 in 7 s.
  • Vultr gave the replacement the private address of the machine it replaced: 10.64.0.7 for the new instance 222dbfa9-… as for the old 4b4c83f4-….
  • The delete. tent delete cluster --yes exited 0 after 18 s and left nothing; the state store was empty; no secret was in the output.

The report does not say whether Vultr refused the replacement's create: the provider logs a refusal at info level, and the run was made without -v. created node came 51 s after deleted node, against 50 s for a client's create in the build, so a retry cost a few seconds at most (3.14). Unit tests cover the retry.

M2.7b cluster check, third run (rgfckj, spike v11, --only cluster, 2026-10-06) ran tent v0.1.0-rc.2-54-g17bc737-dirty with the fixed script and without --unregistered. Every row read as expected, and the client check was skipped. tent create cluster --yes exited 0 after 429 s; the leader and the bootstrap showed at 185 s and the healthy servers at 188 s; the clients registered 124 s and 243 s after the leader line; five of five instances carried tent/joined=true and the stub. After the reboot of a client SSH answered after 53 s, Nomad listed the node ready and eligible 54 s after the reboot, and the row read cloud-init status done, exit 0, no recoverable error (status: done without dots, extended_status: done, recoverable_errors: {}, exit 0). The delete guard exited 1 in 7 s and 4 s with 5 instances left. tent delete cluster --yes exited 0 after 20 s and left nothing.

M2.8 cluster check (9pxbqn, spike v12, --only cluster --keep, 2026-10-07) ran tent v0.1.0-rc.2-67-g57d69b6-dirty. Every row read as expected but one, where the script was wrong. tent create cluster --yes exited 0 after 490 s; the leader, the bootstrap and the healthy servers showed at 208 s; the clients registered 138 s and 281 s after the leader line. The new rows:

  • tent export nomad exited 0 in 1 s. The directory had mode 700 and the four files 600; stdout was the six lines with a server's public address; the token was not the bootstrap token and was in neither stream; Nomad called it a management token named tent export nomad ... that ended 24 hours after the export; cli.pem was for cli.global.nomad, for client authentication only, and ended with the token. With the exported files curl read three alive members, a healthy autopilot report with three voters and two ready clients, and the docker job ran after 6 s.
  • nomad server members with the six lines sourced listed the three servers as alive. The row read UNEXPECTED: 3 alive of 4: the script read stdout and stderr together and counted the CLI's hint (1.2) as a fourth server. The script now reads the table from stdout alone.
  • tent validate cluster exited 0 in 2 s with cluster spk-9pxbqn is valid: 3 servers and 2 clients run Nomad 2.0.7 and the warnings about the open spec.access.api and the one failure domain.
  • tent ui --listen 127.0.0.1:0 answered /v1/status/leader and /ui/ with 200, used a management token named tent ui ... that was not the bootstrap token, refused Host: example.com with 403, ended with exit 0 one second after SIGINT, and its port then refused connections.
  • A client whose Nomad stops. After systemctl stop nomad.service on spk-9pxbqn-workers-1 Nomad listed the node down after 21 s. tent validate cluster then exited 2 in 3 s and named the node with its Nomad client is down. After systemctl start nomad.service, tent validate cluster --wait 5m exited 0 in 2 s.

The rows of M2.7a and M2.7b read as before: after the reboot of a client SSH answered after 53 s and Nomad listed the node ready and eligible after 54 s, and the delete guard exited 1 twice with five instances left. None of the six secrets that the run read (the CA key, the gossip key, the bootstrap token, the operator's key and token, the token of tent ui) was in its output. The delete rows did not run, since --keep left the cluster for the steps by hand; the maintainer deleted it with tent delete cluster --yes after them.

By hand against that cluster, through tent ui, the same day:

  • The maintainer opened the UI in a browser and it worked, an exec into a task and the Logs tab included. The first try showed nothing: tent ui ran on another machine over SSH, and its port is a loopback port of the machine that runs tent.
  • Headless Chrome 154 loaded /ui/ through the proxy, and the proxy's log at -v showed 200 or 204 for every request it made. A request with a Host of another port got 403 forbidden: unexpected Host, as an SSH tunnel on another local port would.
  • With NOMAD_ADDR set to the proxy's address and no other variable, the nomad CLI 2.0.7 ran the job of the quickstart (nomad job run: the deployment was successful and the allocation ran on a client), nomad alloc exec into its task (the proxy logged the upgrade with status 101), nomad alloc logs and nomad job stop -purge. tent ui exited with 0 on SIGINT each time.

E2E runs of M2.9 (2026-10-07), make e2e, each with one cluster of 1 server and 1 client per image, both images at once (ADR-0034):

  • 0oqujb: both clusters failed create after about 11 minutes with failed to wait for a Nomad leader. On a debug cluster built the same way, e2e-dbgaa1-2404, tent-node refused to run: tent-node is v0.1.0-rc.3-2-gf15e11a, not dev, the version of the node config's tent-node asset, since the suite had built tent without the Makefile's version (1.6). make e2e now builds tent and tent-node with one version and uploads that tent-node.
  • 4bjbp8: on 26.04 the first client's intro token got Nomad's 500 keyring has not been initialized yet right after 1 Nomad server is healthy (1.2); tent now waits for the keyring. 24.04 passed create in 6m22s, and the suite's validate lacked --allow-single-server.
  • b2qpe2: create, validate, export and service passed on both images; metadata failed on both with exit 12 in all three groups: the one control site, archive.ubuntu.com, timed out. From the maintainer's machine, archive.ubuntu.com and security.ubuntu.com did not answer over IPv4 at that time either, while deb.debian.org, detectportal.firefox.com and captive.apple.com did. The probe now tries those three.
  • r7l48w, 58sglh and g57k85 (the last on the final code of M2.9): every step passed on both images, in 435 s, 409 s and 348 s. Per image: create 4m6s to 6m18s, validate 1 to 2 s, export 1 to 2 s, service 5 to 10 s, metadata 10 s, intro-token 5 to 10 s, delete 18 to 20 s. Every metadata probe, on Nomad's bridge, Docker's bridge and the host network, printed wget: download timed out after a control site answered; each server logged node registration without introduction token: enforcement_level=strict ... node_name=e2e-rogue. The leak check of the 24.04 cluster took 101 s, 71 s and 42 s while the other cluster was still being built. The log of r7l48w did not show its polls; in 58sglh and g57k85 no poll listed anything, and in g57k85 no retry of a Vultr call was printed. The times fit one list request that waits out its 30 s timeout per failed poll (by the timing only); the suite now logs a poll whose lists fail, with the error and the time they took.

M3.3 roll check (2026-10-08), a fish script run by the maintainer's session (not a hack/ spike run; its logs are not in the repo), tent v0.1.0-27-g5893420 with the tent-node of the same build, Nomad 2.0.7: a cluster of one server and two workers, a job of two allocations (distinct_hosts, migrate { max_parallel = 1, health_check = "checks", min_healthy_time = "10s" }, an HTTP check every 5 s), the workers made outdated by a change of spec.nomad.meta, then tent rolling-update cluster --yes under a poller that read the job's allocations with their checks and the cluster's instances with a 2 s pause between polls (about every 3 s). A second roll was cut with Ctrl-C during its first drain wait and run again. Both rolls passed every check of the plan, and the cluster was deleted with nothing left by its tag. Times are the progress lines' and the poller's (UTC, to the second).

  • The job: at each of the 233 polls of the two rolls at least one allocation ran with its check passing.
  • A new machine: Vultr listed it with status pending at once, then active with power_status stopped 3 to 7 s later; tent had its private address after 52 s; Nomad listed its node 82 to 91 s after that (three creates).
  • A drain of a node with one allocation took 7 s (three drains).
  • A deleted instance was gone from GET /v2/instances?tag=... at the next poll, within 2 s of the delete's answer (three deletes; the fourth fell into the API's errors below).
  • Private addresses: a machine whose create was sent 1 s after a delete got a fresh address (10.64.0.7, while 10.64.0.4 had been freed); machines created about 5 minutes after deletes got the addresses of the deleted machines (10.64.0.4 and 10.64.0.5).
  • The node of a deleted machine read down in Nomad 24 s after the delete's answer (one server, one measurement).
  • Vultr's API answered 502 and timed out from 20:22:23 to 20:24:09 UTC during the first roll (about 110 s, with one answer at 20:23:33); tent's delete in that time took 22 s, and the roll went on.
  • The cut: the cut run printed failed to wait for node e2e-m33roll-workers-2 to drain: context canceled and Error: interrupted; Nomad finished the drain meanwhile, and the next run's first step deleted the drained machine.
  • Run times: the cluster's create 7 minutes; the first roll of two workers with maxSurge 1 429 s (with the API's errors); the run after the cut 182 s; the whole check 21 minutes.

M3.4 server roll check (2026-10-10, an early run), a fish script run by the maintainer's session (not a hack/ spike run; its logs are not in the repo), tent at d18132f with the tent-node of the same build, Nomad 2.0.7, region ams, plan vc2-1c-1gb, ubuntu-24.04: three servers and a worker, a job of one allocation with an HTTP check, the servers made outdated by a change of spec.nomad.extraConfig.server, then tent rolling-update cluster --yes -vv under a poller that read the leader and the job (every 1 to 6.5 s, 422 polls). The cut that the script was to make did not reach tent (the wrapper that fish started blocked SIGINT: a fault of the script, fixed), so this run is the uncut one. Times are the progress lines' and the poller's.

  • The roll ended by itself in 12 min 5 s with Rolled: 3 created, 0 drained, 3 stopped, 3 deleted, 0 purged. Then Nothing to roll., validate cluster exit 0, four instances, the servers -3, -4 and -5 as voters at their private addresses, autopilot healthy with failure tolerance 1, three alive members and no other.
  • Per server (-0, -2, then the leader -1): from the create call to the machine's address 52, 52 and 42 s; from there to the vote 59 to 61 s; the window 52 to 53 s (71 s after the transfer); the halt call 2.2 s; the wait until autopilot no longer counted the stopped server 35, 35 and 37 s; the force-leave about 1 s, then healthy within 2 s; the delete 0.4 s.
  • Who removed the peer: autopilot for -0 (no RemovePeer by tent), tent for -2 and -1.
  • The transfer answered in 55 ms. No unhealthy read followed it and no settle wait came. Autopilot read unhealthy, with the stopped server left and failure tolerance 0, at three polls only, each right when the stopped server's peer went.
  • Leader and job: the poller got a leader from a server at every poll, also at the transfer; the allocation ran with its check passing at each of the 409 polls that read the job (13 reads went to a server that had just been halted and timed out; the poller now asks the next server). Every one of the roll's 261 observation lines named a leader.
  • A halted machine stops at once: a probe that connected to the stopped server's port 4646 every 200 ms was accepted for the last time 0.25 to 0.31 s after tent's stopping line, about 2 s before the halt call returned (three halts). Vultr listed power_status stopped 4 to 19 s after the call.
  • The pace of the loop: an observation that does not list the machines took 0.17 to 0.29 s (229 polls of waits); one that lists took 2.2 to 2.9 s (the one before each stop and the one after it).
  • Private addresses: the third new server got 10.64.0.3, the private address of the first old server, which was deleted 3 min 48 s before; it joined under its new name and voted in the usual time.
  • ADR-0016's follow-up: the worker was rebooted through Vultr after the roll: its node read down 20 s after the call and ready again, under the same node ID and with its allocation running, 53 s after the call (uptime 36 s). Its 05-join.hcl then named exactly the three new servers' addresses.

M3.4 server roll checks, second run (2026-10-10, 12:31 to 13:18 UTC), the same kind of script as the early run, tent at 069f100, region ams, Nomad 2.0.7, with a poller on the leader and the job. Times are the progress lines' and the poller's.

  • Three servers and a worker, cut during the second server's wait for autopilot. The cut run ended with Error: interrupted. The next run finished in 337 s with Rolled: 1 created, 0 drained, 1 stopped, 2 deleted, 0 purged. Then Nothing to roll., validate cluster exit 0, the servers -3 to -5 as voters, autopilot healthy with failure tolerance 1 and three alive members. A leader answered at each of 430 polls, and every observation line named one.
  • Halts: the call took 2.1 to 2.5 s; the last connection that the stopped server accepted began 0.25 to 0.47 s after the call began; Vultr listed stopped 6 to 7 s after the call.
  • The worker's reboot through Vultr: down after 29 s, back after 61 s with its node ID, and its 05-join.hcl held the three new servers.
  • The job's allocation was lost once. The first old server was halted at 12:40:53. From 12:41:12 to 12:41:30 the servers listed no running allocation: the worker's node had been marked down and its allocation lost (alloc is lost since its node is down). A replacement was created on the same node at 12:41:31 and started at 12:41:32, and the old task was stopped by 12:41:37. The worker was healthy all along; the server it talked to had been powered off, and its heartbeats did not reach another server in time with Nomad's defaults. The lab above measured the mechanism; tent's heartbeat_grace and rpc settings are the fix.

M3.4 single-server rolls (2026-10-10, 12:31 to 13:18 UTC, the same session): a cluster of one server and a worker, three rolls, each with a new server (-1, -2, -3). None of the new servers' 10-node.hcl had bootstrap_expect; the first server's had bootstrap_expect = 1.

  • All three rolls: a leader answered at every poll of the rolls (the one gap, 44 s, is the reboot at the end); the same allocation ran from the start to the end (792 polls read it); the Raft configuration never held two voters with one stopped.
  • Run 1, uncut, 5 min 14 s: the transfer at 13:00:11.57; the first RemovePeer 72.5 s later; the hold 48.7 s; the poller saw the old server a nonvoter again at 13:02:11, 120 s after the transfer; tent removed it at 13:02:14.58 and sent the halt at 13:02:16.06, 4.5 s after the reconcile.
  • Run 2, cut right after the first RemovePeer and left for 80 s: the leader added the old server 120 s after the transfer and autopilot promoted it 9 s later (two voters, both running). The next run removed it, held for 22 s until the reconcile at 180 s, removed it again and sent the halt 5.8 s after that reconcile; it took 39 s.
  • Run 3, cut in the window after the transfer: the next run's first RemovePeer came 119.476 s after the transfer, 0.5 s before a reconcile. The leader added the server at once; tent removed it 3.5 s later, held the stop because it had not seen the server absent first, and stopped it 4.3 s after the next reconcile, 60 s later.
  • Halts: the call took 2.2 to 2.4 s; the last accepted connection began 0.24 to 0.30 s after the call began; Vultr listed stopped about 4 s after. The worker's 05-join.hcl held the new server's address alone 1 to 40 s after each roll. The server that was rebooted through Vultr led again 54 s after the call, with the worker ready and its allocation running.

M3.4 client check (2026-10-10, 16:26 to 16:51 UTC), tent at 7c6f61d with the heartbeat settings of ADR-0038 item 19, region ams, Nomad 2.0.7: three servers and three workers, the job e2e-web with three allocations on distinct hosts, the servers rolled uncut.

  • The roll took 757 s: Rolled: 3 created, 0 drained, 3 stopped, 3 deleted, 0 purged. Every worker's 00-tent.hcl had the rpc block.
  • At each of 325 polls (one every 2.1 s, the longest gap 13.1 s) a leader answered, the three nodes read ready and the three allocations of the start read running. The job had no other allocation at the end.
  • The workers did lose their server: after each of the three halts the checks of one or two workers could not be read through the servers for 32 to 37 s (workers 1 and 2 after the first halt, worker 1 after the second, worker 0 after the third). So four times a worker's server was powered off and its node stayed ready. With Nomad's defaults the lab lost 19 of 24 such clients, and the second run above lost its one.

M3.4 check of the names (2026-10-10, 20:15 to 20:29 UTC), tent at 0c6363d, region ams, Nomad 2.0.7: one server and one worker, a job with one allocation.

  • The cut: rolling-update --force --nodegroups servers --yes was cut 3 s into the window, after servers-1 had joined (Error: interrupted; three instances ran).
  • The second run: the same command ran to its end in 355 s with Rolled: 1 created, 0 drained, 2 stopped, 2 deleted, 0 purged. It removed servers-1 first (the peer, a hold of 32 s for the leader's reconcile, the peer again, the stop, the member, the delete), created servers-2 1.2 s after that delete, moved the leadership to it and removed servers-0 the same way (a hold of 51 s). Without the remembered index, the tests of the code show that create taking servers-1 again.
  • After it: the two creates of the two runs were servers-1 and servers-2; the store's names/servers held 2; the server group had one instance, the one voter; validate cluster was valid and a plain rolling-update had nothing to roll.
  • The job: at each of 275 polls a leader answered, the worker's node read ready and the allocation of the start ran with its check passing; the job had no other allocation. The check deleted its cluster with 0 instances left.
  • The second run sent the first removal without a window: the window counts the voters other than the victim, and the other voter had been stable for long.

M3.5 combined roll, three nodes (2026-10-12, 11:38 to 11:59 UTC), tent v0.1.0-66-g97ecb2a, region ams, plan vc2-1c-1gb, ubuntu-24.04, Nomad 2.0.7: three combined nodes, the job e2e-web with three allocations on distinct hosts (distinct_hosts, so that every drain moves one) and a system job of one small task. A poller read the leader, autopilot and the job's allocations over the operator's access. The run passed.

  • Three runs: the first was cut 0.5 s after waiting for node e2e-m35roll-nodes-0 to drain; the second found that drain complete (its plan: Next: stop node e2e-m35roll-nodes-0), sent no second drain, and was cut 3 s into the second node's wait for autopilot; the third finished in 383 s with Rolled: 1 created, 1 drained, 1 stopped, 2 deleted, 2 purged. From the start of the first run to the end: 14 min 14 s.
  • The new nodes (3, 4 and 5): the create call took 41.1, 52.8 and 51.4 s; from its end the node read ready after 76.0, 70.5 and 93.6 s and the server voted after 93.9, 93.7 and 112.7 s; tent's wait for the join ended 95.8, 94.1 and 113.2 s after the create's end. The node half came 18 to 23 s before the vote, as the lab saw.
  • Drains took 9.6 s and 8.5 s (the first was cut).
  • The leader (nodes-1) went last: drain, transfer at 11:57:11.5 (the call took 0.07 s), a settle of 3.8 s (autopilot reports the servers unhealthy (e2e-m35roll-nodes-1)), the window until 11:58:22, and the stop at 11:58:25, 73.7 s after the transfer.
  • Stops: the call took 2.2, 2.6 and 2.1 s; Vultr listed the machine stopped 8.7, 1.8 and 20.0 s after the call; Nomad listed the node down 33.9, 32.9 and 20.0 s after the call, the old leader's 20.0 s; autopilot stopped counting the server 46.3, 40.0 and 44.0 s after the stop; autopilot removed the peer twice and tent once (the old leader's); the delete came 47.6, 43.5 and 45.6 s after the stop, and the purge about 2 s later. No waiting for Nomad to list node ... as down appeared: each node was down before its machine's delete.
  • The service: every one of the 321 observation lines of the loop names a leader. The poller saw a leader at each of its 348 polls and one change of leader, at the transfer, between two polls 2 s apart. At least two of the job's three allocations ran at every poll (three at 345 polls, two at 3); their checks passed for three at 309 polls, two at 38 and one at one poll (the checks are read from the client through a server).
  • The system task: at the last poll before each stop the system job's allocation on the node read complete with the desired status stop, and the service allocation complete. No task was cut at a stop in this run.
  • After the roll: Nothing to roll., validate cluster exit 0, Vultr listed nodes 3 to 5, three voters at their private addresses, autopilot healthy with failure tolerance 1, three alive members, three ready and eligible nodes, both jobs on each new node, and no peer, member or node of an old machine. The cluster was deleted with no instance left.
  • Not measured: a poll every second (the poller read every 2 s, since a poll with the checks of three allocations takes about 2 s, and 5 s while a stopped machine is still asked, once 10.6 s).

M3.5 combined roll, one node (2026-10-12, 12:01 to 12:11 UTC), the same tent, region and image, --allow-single-server, a job of one allocation and the system job. The run passed. The script's own verdict first read FAILED for one line: it took a poll's start for the time of its Raft read, and the poll that began 0.3 s before the first removal read the configuration after it. The script is fixed, and its analysis of the saved data has no failure.

  • The new node: 10-node.hcl has no bootstrap_expect (read over SSH), the old node's has bootstrap_expect = 1. The create call took 51.7 s; from its end the node read ready after 81.2 s and the server voted after 98.7 s (a nonvoter at 12:07:22, a voter at 12:07:39); tent's wait for the join ended after 99.2 s.
  • The drain took 9.6 s (12:08:35.4 to 12:08:45.0). The job's allocation ran on the old node at the poll of 12:08:40.7, nowhere at 12:08:42.0 and on the new node from 12:08:43.7: Nomad stops the one allocation before its replacement runs. It ran on the new node 126 s before the stop call.
  • The removals: the transfer at 12:08:45.05 took 0.05 s; the window ran until 12:09:55; the first RemovePeer at 12:09:55.13 took 0.14 s (two voters before it, one after it); the hold began at 12:09:56.5 and lasted 52.0 s; the poll that began at 12:10:42.2 was the first to show the old node in the Raft configuration again, as a nonvoter (the leader's reconcile two minutes after it took the leadership was at 12:10:45.1); the second RemovePeer at 12:10:48.53; the stop call at 12:10:49.78, 7.6 s after that poll began, took 2.4 s. The old server never read as a voter after the first removal, and the Raft configuration never held two voters with one stopped.
  • The old node's client read ready and ineligible at every poll in the 54 s from the first removal to the stop: the client of a server that is out of the Raft configuration kept its heartbeats.
  • After the stop: force-leave at 12:10:54.0, the delete at 12:10:54.3, done at 12:10:54.6 (4.8 s after the stop call began), the wait for the node to read down 21.8 s, and the purge at 12:11:17.2. Nomad listed the node down 27.4 s after the stop call began. The poller never saw it down: the purge came in the same second.
  • The service: the poller saw a leader at each of its 202 polls and one change of leader, at the transfer; the polls came 1.3 to 2.4 s apart, at most 5.2 s. All 142 observation lines of the loop name a leader. The system job's allocation on the old node read complete at the last poll before the stop.
  • The run took 372 s and ended with Rolled: 1 created, 1 drained, 1 stopped, 1 deleted, 1 purged. Then Nothing to roll., validate cluster --allow-single-server exit 0, and Nomad listed one voter, one member and one node, all of e2e-m35one-nodes-1, with both jobs on it.
  • Not measured: a poll every second (the poller needed 1.3 to 2.4 s a poll); a system task that is cut at a stop (none was, in four stops of the two runs).

M3.6 scale-down, first run (2026-10-12, 18:19 to 18:38 UTC), tent v0.1.0-78-g5b4ac01, cluster e2e-m36scale, region ams, plan vc2-1c-1gb, ubuntu-24.04, Nomad 2.0.7: three servers and two workers, and a job of two allocations on distinct hosts, so that each worker runs one and the drain of a worker has one to stop. With one worker left that allocation has no other host: it read complete and was not placed again. A poller read the leader, the Raft configuration, autopilot, the nodes and the job's allocations over the operator's access. All four steps ran. The script ended FAILED at its last line for a wrong expectation of its own: it looked for the line cluster <name> is up to date, which only update --yes prints, and a plan without --yes prints No changes.. It stopped before the servers' logs were read and before the analysis. The analysis of the saved data has no failure, and the second run (below) reads the logs.

  • Step 1, workers from 2 to 1 (the plan: - node e2e-m36scale-workers-1 (ID ..., surplus, after a drain within 1h0m0s)): the mark at 18:29:10, the drain 6.8 s, the delete at 18:29:17, where the run was cut. The plan 8 s later read No changes. (the node still read ready). The node read down 35.4 s after the delete, at a poll. The plan after that held - Nomad node e2e-m36scale-workers-1 (10.64.0.7, down, no machine) and Nomad nodes: 1 to purge., and update --yes purged it in 14 s: Removed: 0 drained, 0 stopped, 1 purged. The drained worker's allocation read complete before the delete. The other worker's allocation ran at each of 222 polls, and its node stayed ready through all four steps.
  • Step 2, servers from 3 to 1 (the plan lists -2 and -0; -1 led and stays).
    • -2: the stop call at 18:30:39 took 2.1 s, the last accepted connect came 0.3 s after the call began, Vultr listed it stopped 2.4 s after, autopilot stopped counting it 42.5 s after, tent removed its peer at 18:31:21, and the delete came 45.2 s after the stop.
    • -0: the first RemovePeer at 18:31:26.1 (two voters to one), the hold from 18:31:27.9, the cut at 18:31:28. In the 80 s that followed, the leader added -0 again as a nonvoter (first seen at the poll of 18:32:15) and autopilot promoted it (18:32:25).
    • The second run removed its peer at 18:33:00.2, held from 18:33:02.4 for 14.7 s, saw the re-add (a nonvoter at the poll of 18:33:15), removed it at 18:33:17.1, and sent the stop at 18:33:18.7, 2.8 s after that poll. The call took 2.6 s and the last accepted connect came 0.4 s after it began; the force-leave came 4.1 s and the delete 4.8 s after the stop. That run took 36 s: Nodes: 0 created, 0 waited for, 1 deleted. Removed: 0 drained, 1 stopped, 0 purged. The Raft configuration never held two voters with one stopped. After it: valid with --allow-single-server, two instances, one voter, one alive member.
  • Step 3: the server led again 59 s after the reboot call (uptime 41 s), with the worker ready and its allocation running. Its 10-node.hcl has bootstrap_expect = 3. The worker's 05-join.hcl still named two addresses 69 s after the shrink ended.
  • Step 4, servers back to 3 (the plan: + node e2e-m36scale-servers-3 and -4): the create calls took 52.0 and 53.2 s; the servers were in the Raft configuration 53.7 and 46.3 s after their create's end and voted 74.0 and 61.1 s after it; the run took 180 s. names/servers holds 4; validate cluster exits 0; the servers -1, -3 and -4 vote at their private addresses with a failure tolerance of 1; the next plan reads No changes.
  • The service: a leader answered at every poll outside the reboot: at 259 of the run's 297 polls, the other 38 falling between 18:33:32 and 18:34:24, while the server rebooted (one leader for the whole run). The polls were 1.7 s apart in the median and at most 5.0 s; all 44 observation lines of the loop name a leader.

M3.6 scale-down, second run (2026-10-12, 18:39 to 18:59 UTC): passed, the same tent, region and image, cluster e2e-m36scale2, the same four steps, plan lines and job as the first run. The script and the analysis report no failure. The cluster was deleted with no instance left. What differs from the first run:

  • Step 1, workers from 2 to 1: the delete at 18:49:30. The plan 7 s later read No changes. The node read down 36.9 s after the delete, and update --yes purged it in 13 s. The other worker's allocation ran and its node read ready at each of 252 polls outside the reboot.
  • Step 2, servers from 3 to 1 (the plan lists -2 and -1; -0 led and stays).
    • -2: the stop call at 18:51:07 took 2.7 s, Vultr listed it stopped 12.8 s after, autopilot stopped counting it 39.9 s after, tent removed its peer at 18:51:47, and the delete came 41.6 s after the stop.
    • -1: the first RemovePeer at 18:51:50, the cut in the hold (failed to wait for the leader's reconcile: context canceled, Error: interrupted). The leader added -1 again as a nonvoter (the poll of 18:52:03) and autopilot promoted it (18:52:14).
    • The second run held from 18:53:26 for 41.2 s (14.7 s in the first run: the leader's reconcile comes once a minute), saw the re-add (a nonvoter at the poll of 18:54:04), removed the peer at 18:54:07 and sent the stop at 18:54:09, 4.9 s after that poll. That run took 62 s. The Raft configuration never held two voters with one stopped.
  • Step 3: the server led again 52 s after the reboot call. The worker's 05-join.hcl named the one server alone (retry_join = ["10.64.0.3:4647"]) at the first read, 60 s after the shrink ended; the first run's two addresses were a file that refresh-join had not rewritten yet.
  • Step 4, servers back to 3 (Nomad: wait for 3 healthy servers.): the create calls took 53.2 and 41.9 s; the servers voted 61.2 and 60.6 s after their create's end; the run took 170 s. names/servers holds 4, and the next plan reads No changes.
  • The servers' logs: no line with conflicting expect value on any of the three servers. The agents started at 18:55:08 (-0, after its reboot), 18:57:15 (-3) and 18:57:55 (-4), 40 s apart or more.
  • The service: a leader answered at every poll outside the reboot: at 291 of the run's 322 polls, the other 31 falling between 18:54:25 and 18:55:08. The polls were 1.7 s apart in the median and at most 9.8 s; all 50 observation lines of the loop name a leader.
  • Not measured: a poll every second; two new servers whose agents start in the same second; combined agents in a scale-down.

M3.6 cluster check (awhnve, spike v13 with the scale-down rows, --only cluster, 2026-10-12, 19:01 to 19:14 UTC) ran tent v0.1.0-78-g5b4ac01. Every row read as expected, and the client check was skipped. tent create cluster --yes exited 0 after 444 s; the leader showed at 204 s and the bootstrap, the healthy servers and the keyring at 205 s; the clients registered 119 s and 239 s after the leader line; five of five instances carried tent/joined=true. The rows of the scale-down, which stand where the rows of the delete guard stood: with one client in the specs tent update cluster exited 0 in 6 s with - node spk-awhnve-workers-1 (ID ..., surplus, after a drain within 1h0m0s) and five instances listed, and tent update cluster --yes exited 0 in 38 s and left four. With the saved specs back, update --exit-code exited 2 in 4 s with + node spk-awhnve-workers-1 (client, vc2-1c-1gb, ams), and update --yes exited 0 in 125 s and left five. tent delete cluster --yes exited 0 after 21 s and left nothing.

M3.8 backup check (2026-10-13, 22:06 to 22:22 UTC: passed), a fish script run by the maintainer's session (not a hack/ spike run), tent at 5d8c2f2, cluster e2e-m38backup, region ams, plan vc2-1c-1gb, ubuntu-24.04: one server and one worker, at most 3 machines at once. A job of one allocation and one Nomad variable ran on it.

  • The cluster was built in 4.5 min. The backups N0 and N1 of the running cluster were 9,678 and 9,673 bytes, each taken in under 3 s. backup restore with latest and two current backups was refused with every backup of cluster e2e-m38backup is of the servers that it runs now.
  • The loss. The server machine was deleted through the Vultr API. update --yes --allow-single-server built a new server in 1 min 40 s, and Vultr gave it the same private address, 10.64.0.3. A backup of the empty new Nomad was 2,927 bytes.
  • Before the restore the new server listed 0 nodes: the old worker could not register with it under strict client introduction. A job that the run registered on the new server made the restore refuse (runs 1 job that was registered after its servers were built again on ...). After its purge the plan named N1 and 0 nodes, and restore --yes took 4 s.
  • After the restore the job and the variable were back, and the management token that export nomad had made before the loss worked again. The old worker's node read ready at every poll for 7 minutes, and validate cluster was valid at once (1 server, 1 client): with the server at its old private address the worker reached the restored server, and Nomad knew its node from the backup. No forced roll was needed in this run.
  • The repeats. restore --yes again printed already restored and exited 0. --from N0 --yes was refused with exit 1, since the servers were restored from N1 already. delete cluster listed the three backups and nomad/restored, deleted them with the cloud objects, and no instance was left.
  • The first run (18:57 to 21:50 UTC) failed on a fault of the script: nomad job run waits for its deployment, and with no node in the rebuilt cluster it waited until the maintainer's session stopped it. The script now uses -detach, and that cluster was deleted.

E2E runs of M3.9 (2026-10-14), ha on ubuntu-24.04 (3 servers and 2 workers) and upgrade on ubuntu-26.04 (3 combined nodes, Nomad 2.0.6 to 2.0.7) at once, at most 10 machines (ADR-0043); w28exz and ae5dhs ran make e2e E2E_RUN='TestHA|TestUpgrade', qkmdrs and hik34s the full make e2e:

  • w28exz (00:46 to 01:09 UTC; ha and upgrade): upgrade passed every step but the leak check. The roll of three combined nodes from 2.0.6 to 2.0.7 took 14 min 27 s and its probe passed. ha passed create in 7 min 56 s, which shows that autopilot's report held a version for every peer at the read before the first client (ADR-0041). Its server roll ended with exit 0 in 13 min 12 s, and the probe failed it: service unreached for 37.2 s, 495 polls led and served, 4 led and unreached, no leaderless poll, the leader moved once (10.64.0.3 to .8, at 01:06:07). The two faults were in the suite: Vultr's zoneless creation date (see 3.6) and the checks reads that fail after a hard stop of a server (see 1.6). Both are fixed.
  • ae5dhs (about 01:19 to 01:58 UTC, at the fixed code): both passed.
    • upgrade: create 4 min 2 s, with tent's warning that 2.0.6 is untested; the roll 14 min 46 s; the probe saw 632 polls, all led, 630 served and 2 unchecked (one stretch of 20.1 s at 01:27:31, a hard stop of a combined node), no leaderless, unserved or unreached poll and 10.1 s as the longest gap between polls; the leader moved once (10.64.0.4 to .6); delete 21 s; no leftovers.
    • ha: create 7 min 43 s; the server roll 12 min 14 s with 476 polls, all led, 475 served and one unreached of 7.1 s (the read of the service's registrations through the server that had just stopped), the leader moved once (10.64.0.4 to .8); the restart of workers-0, the worker roll 5 min 45 s with 336 polls, all led and served; the backup step 9 min 36 s (backup create 3 s, 13,876 bytes; delete of the servers 3 s; update 3 min 12 s; restore 10 s); delete 24 s; no leftovers. The restart and the restore are in 1.6 and 3.5.
  • qkmdrs (about 02:04 to 02:49 UTC, at 0f16490, the full make e2e): every scenario passed. smoke passed on both images (create 3 min 42 s and 4 min 38 s). upgrade: create 4 min 7 s without a warning, since the channel now tests 2.0.6; the roll 14 min 53 s with 629 polls, all led, 628 served and one unchecked of 7.1 s; the leader moved once. ha: create 7 min 26 s; the server roll 12 min 12 s with 478 polls, all led and served; the restart of workers-0 (a new boot after 2 min 18 s, the registration 16 s later, the same node ID, a join file that named the three new servers); the worker roll 5 min 44 s with 336 polls, all led and served; the backup step 9 min 36 s (13,856 bytes; update 3 min 16 s; restore 9 s; the rebuilt servers at 10.64.0.4, .6 and .7, one old address back; the workers back on their own, no forced roll); no leftovers.
  • hik34s (about 03:25 to 04:11 UTC, the full make e2e with the fixes of the final review): every scenario passed, and every poll of the three probes was led and served (624 in upgrade's roll of 14 min 57 s, 488 in ha's server roll of 12 min 30 s, 335 in its worker roll of 5 min 44 s); the probes found a good poll at once after tent exited. One refresh of the addresses timed out after 5 s on Vultr's instance list, and the probe kept the last addresses. The restart: a new boot after 2 min 18 s, the registration 11 s later. The backup step 10 min 12 s, no forced roll; no leftovers.

Still open:

  • A halt whose call gets no answer, and how late Vultr may carry one out.
  • Object Storage conditional writes (3.12).
  • Images other than Ubuntu 24.04 and 26.04 were not checked.
  • Account limits beyond 5 concurrent instances were not tested (the M2.7a check and the three M2.7b runs ran 5).
  • What /vpcs answers in the first 30 s after a create (3.5).

4. Prior art

4.1 kops

Read at kops master @ ab568ea (2026-09-25). Paths are relative to github.com/kubernetes/kops.

Hetzner support:

  • Where the code lives.
    • Tasks: upup/pkg/fi/cloudup/hetznertasks/{servergroup,network,firewall,loadbalancer,sshkey,volume}.go.
    • Model builders: pkg/model/hetznermodel/.
    • Cloud code: upup/pkg/fi/cloudup/hetzner/cloud.go.
  • Labels. Ownership is by labels only: kops.k8s.io/{cluster,instance-group,instance-role,…}. Firewalls and the API load balancer select servers by label.
  • ServerGroup task.
    • It lists servers by label. A server needs an update if its user data hash, location, type, image or IP settings differ.
    • It labels such servers needs-update rather than replacing them.
    • It creates missing servers named <ig>-<random hex>. The count is a floor, and surplus servers are left alone.
  • Rolling update. kops drains the node, then shuts it down and deletes it (polling up to 150 s). Then it re-runs the whole ApplyClusterCmd to create the replacement. MaxSurge defaults to 0 outside AWS.
  • Pitfalls:
    • random names give non-idempotent creation, and concurrent runs over-provision;
    • the whole graph is re-applied per replaced node, under a limit of 3600 requests per hour;
    • a crash between delete and reconcile leaves the group short;
    • the Hetzner docs are outdated.

Bootstrap credentials on Hetzner:

  • Control-plane nodes read the state store directly. S3_ENDPOINT, S3_REGION, S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY sit in plaintext in user data.
  • Worker nodes get only kops-controller URLs and the CA bundle.
  • HCLOUD_TOKEN, the project-wide Read & Write token, is copied into the kops-controller environment, the etcd-manager manifests and a Kubernetes Secret, all stored in plaintext in the state store.
  • How kops-controller verifies a node:
    1. The node claims x-hetzner-id <serverID>.
    2. The controller looks the server up through the hcloud API.
    3. It connects to the API-reported private IP on port 3987 with a pinned certificate, and the node must answer a one-time challenge, sha256(secret‖nonce).
    4. The request is rejected if a Ready Node with that name already exists.
    5. The controller issues certificates and the node configuration.

The fi task framework:

  • Lifecycle: Find → reflection-based BuildChanges ("nil means don't care") → CheckChanges → Render<Cloud>, with the method selected by reflection.
  • Dependencies are discovered by walking struct fields, with deferred placeholder links.
  • Executor: parallel waves with a 10-minute retry deadline per task.
  • Pain points:
    • contracts are checked only at runtime;
    • the dependency graph is implicit;
    • removing a field cannot be expressed;
    • imperfect normalisation causes perpetual diffs and needless rolls;
    • deletion lives in separate code (pkg/resources) and drifts;
    • every task needs its own Terraform renderer;
    • ServerGroup fakes its "actual" object.

Delete: list by cluster label with retries, blocking edges between resources, and parallel passes retried every 10 seconds for up to 10 minutes. Load balancers created by the cloud controller manager and volumes created by CSI carry no cluster label and leak.

State store:

  • Layout: config, cluster-completed.spec, kops-version.txt (older kops refuses), instancegroup/, igconfig/, addons/, pki/, secrets/, backups/etcd/.
  • No locking. Issue #5086 went stale.

Channels:

  • Channels are fetched at runtime from GitHub raw. They list images per provider, Kubernetes versions and the enforced kops versions.
  • kops upgrade cluster rewrites the spec only.

Assets: nodeup is downloaded from mirrors with sha256 values in user data. A change of KOPS_BASE_URL changes the user data and rolls every node.

4.2 Other tools

Project Status (2026-09) Notes
vitobotta/hetzner-k3s active (v2.6.0, 2026-06) Crystal CLI; direct Hetzner API; SSH install; deterministic names (re-running create repairs); in-place k3s upgrades; sleeps until RateLimit-Reset
syself/cluster-api-provider-hetzner (CAPH) active (v1.1.8, 2026-08) labels on everything; deterministic names + adopt on uniqueness_error; invalid_input/resource_unavailable treated as permanent; pauses an object 5 min on rate limit; CSR approver checks node requests against Hetzner-reported IPs/names
jsiebens/hashi-up unmaintained (last commit 2023-06) SSH installer for Nomad/Consul/Vault, no infrastructure
Terraform modules for Nomad on Hetzner dead or dormant (2022–2024) e.g. wenzel-felix/terraform-hetzner-nomad-consul-module; hetznercloud/nomad-dev-env is internal, no compatibility promise
Hashistack Ansible collections configuration only no cluster lifecycle
"kops for Nomad" does not exist the niche is open

4.3 Lessons adopted by tent

Copied:

  • ownership by labels;
  • deletion by label with explicit dependency edges and retries;
  • a user-data/config hash label for drift detection;
  • label-selector firewalls and load balancers;
  • a version guard file in the state store;
  • refusing to delete unknown state files;
  • deterministic names with adopt-on-conflict (CAPH, hetzner-k3s);
  • reading RateLimit-Reset (hetzner-k3s);
  • an identity check through the cloud API plus a callback to the private IP (kops-controller, for the v2 bootstrap controller).

Avoided:

  • reflection-driven tasks;
  • random names;
  • re-planning the whole cluster per replaced node;
  • having no lock;
  • cloud and state store credentials on nodes;
  • environment-dependent node hashes.

5. S3-compatible object stores

5.1 Conditional writes ⏳

The conditional-put lock (architecture §10.4) needs PutObject with If-None-Match: * (create only) and If-Match: <ETag> (replace only that version), atomic under concurrent writers. Few servers document how they behave.

Documented:

  • AWS S3 supports both headers. A failed condition gets 412. A concurrent request may get 409 ConditionalRequestConflict instead, and If-Match on a missing object gets 404.
  • Cloudflare R2 lists If-Match and If-None-Match for PutObject (S3 API compatibility page, updated 2026-07-31), but says nothing about concurrent writers. The race subtests in CI check that against a real R2 bucket.
  • R2 throttling. R2 takes at most one write per second to a key and answers faster writes with 429 TooManyRequests (error 10058). It does not document whether conditional puts that fail their condition count toward that limit.
  • AWS S3 and Ceph RGW throttle with 503 SlowDown.

Verified on 2026-09-26 by running each server in Docker and sending it single and concurrent conditional puts through aws-sdk-go-v2:

Server Version Conditional puts
Garage v2.4.1 both headers ignored: a second create-only put returns 200
Scality CloudServer 9.4.3 both headers ignored
Ceph RGW on the DBStore backend 20.2.4 both headers ignored
S3Proxy 4.1.1 honoured one request at a time, not atomic under concurrent writers
Adobe S3Mock 5.2.3 honoured one request at a time, not atomic under concurrent writers
Ceph RGW on RADOS, the backend Vultr runs 20.2.4 honoured; the loser of a race gets 412 or 409 ConcurrentModification
versitygw 1.8.0 honoured, atomic in every race
RustFS 1.0.0 honoured, atomic in every race
SeaweedFS 4.47 honoured, atomic in every race
moto 5.2.3 honoured, atomic in every race
pgsty/silo, a MinIO fork — honoured, atomic in every race
  • If-Match on a missing key returns 404 NoSuchKey on most servers and 412 on SeaweedFS.
  • Every server accepts the SDK's default CRC32 request checksum.
  • Ceph RGW and moto send no response checksum.

What the s3 backend does with this:

  • It never sends a conditional put again after a 500 or a lost answer (architecture §10.1).
  • It sends a throttled request (429, TooManyRequests or SlowDown) again after a random wait of 1–2 seconds, up to 30 attempts in all, conditional puts included: the server did not carry out a throttled request. The SDK does not retry R2's 429 TooManyRequests, but it retries a 503 SlowDown on a plain request (3 attempts, backoff up to 20 s) inside each of these attempts.
  • It reads 412, any 409, and a 404 on an If-Match put as "precondition failed", and 501 as "no conditional puts".
  • It validates response checksums only where the API requires them.
  • A probe decides at run time whether the server enforces the headers. A server that ignores them gets the provider's lock or the best-effort one instead of a broken one. The probe cannot tell S3Proxy and S3Mock from atomic servers.
  • It does not probe Hetzner Object Storage (your-objectstorage.com and its subdomains) and treats it as a store without conditional writes until E2E proves them (ADR-0010). A Hetzner cluster then locks with the firewall mutex (M4); any other cluster that keeps its state there gets the best-effort lease with a loud warning.

MinIO. The community edition's repository has been archived since 2026-04-25, and it ships as source only: there are no binaries, and its container images can no longer be pulled. So CI runs no local S3 server: the maintainer decided on 2026-09-26 to test the s3 backend against Cloudflare R2 only (issue #22 first named MinIO). A MinIO server that someone already runs is still an S3-compatible store for tent. It was not tested here; pgsty/silo, a fork, passes every check.


6. Ubuntu on nodes

What tent-node's hostfirewall and runtime phases rely on in Ubuntu 24.04 and 26.04 (ADR-0029). Read on 2026-09-29 in the packaging source, Launchpad, packages.ubuntu.com and the cloud image manifests, unless an item says otherwise. What Vultr's images hold is in 3.6.

6.1 Packages ⏳

  • docker.io is built from the source package docker.io-app.
    • 24.04 (noble-updates and -security): 29.1.3-0ubuntu3~24.04.2 (2026-05-05), with containerd 2.2.1 and runc 1.3.4. The release pocket still has 24.0.7.
    • 26.04 (resolute-updates): 29.1.3-0ubuntu4.1, with containerd 2.2.2 and runc 1.4.0.
    • It is in universe, which Vultr's 24.04 and 26.04 images enable (VM check 2026-09-30, 3.6).
    • It depends on iptables and libnftables1, and recommends git, ubuntu-fan, pigz, xz-utils, apparmor and ca-certificates, which --no-install-recommends leaves out. Without pigz Docker unpacks layers with Go's gzip, which is slower.
    • Its unit (debian/docker.io.docker.service in the noble-updates branch of the Launchpad git, read 2026-09-29) has Type=notify, Requires=docker.socket, After=network-online.target firewalld.service containerd.service and TimeoutSec=0, so neither its start nor its stop times out. moby's own contrib/init/systemd/docker.service (docker-v29.1.3) has TimeoutStartSec=0.
    • Its postinst enables and starts Docker on the first install (invoke-rc.d docker start when Docker is not running). It ships no files in /etc/docker, so a daemon.json written before the install is read by the first start. An upgrade does not restart Docker (the debconf default is false).
  • nftables and iptables are in both cloud images: nftables 1.0.9 on 24.04 and 1.1.6 on 26.04 (manifests of 2026-09-26 and 2026-09-29). iptables-nft is the default alternative (the iptables postinst gives nft the priority 20 and legacy 10).
  • firewalld is in neither manifest, and Vultr's 24.04 image lacked it (spike 2026-09-25).

6.2 Firewalls on the host

  • Docker 29 keeps iptables as its firewall backend. Its nftables backend is experimental and only with "firewall-backend": "nftables" (Docker 29 release notes; selectFirewallBackend in moby docker-v29.1.3).
    • When Docker turns ip_forward on itself, it sets the policy of the ip and ip6 filter FORWARD chains to drop; "ip-forward-no-drop": true prevents that (Docker docs, packet filtering and firewalls). It may also set the drop when ip_forward was already 1 (unverified).
    • log-driver and log-opts are not among the settings that Docker reloads on SIGHUP, so a change needs a restart. live-restore keeps the containers of a daemon that started with it running while it restarts (dockerd reference). Neither Docker's nor Nomad's docs mention a conflict between live-restore and Nomad (read 2026-09-29). Nomad 2.0.7 did not reattach after a restart of docker.io 29.1.3 with live-restore on the M2.6b VM checks (2026-10-05, runs bxkllh and g2rl9d): the task ended with unexpected EOF and the client started it again in a new container (3.16); why: 6.4.
  • nftables (nftables wiki, "Configuring chains"):
    • A drop in any base chain is final; an accept is not.
    • nft -f applies a file as one transaction. table inet tent, delete table inet tent, table inet tent { … } replaces one table atomically without destroy table, which needs kernel 6.3 or later.
    • nftables.service is not enabled (--no-enable --no-start), and the default /etc/nftables.conf starts with flush ruleset, which would wipe Docker's and the CNI plugins' tables.
    • JSON: every nft -j list puts a metainfo object first in the nftables array (src/json.c of 1.0.9), so nft -j list tables on an empty ruleset prints only that object and exits with 0. 1.0.9 and 1.1.6 print a table's comment, on Vultr's images too (VM check 2026-09-30); Debian's 1.0.6 does not (the container runs in the next item, and table_print_json in Ubuntu's 1.0.9 src/json.c).
    • tent's rulesets for the three roles loaded on real nft 1.0.9 and 1.1.6 in containers on 2026-09-29, next to an ip filter table as Docker leaves it, and loaded again over each other. nft refuses a set whose elements overlap, and lists ip saddr { 0.0.0.0/0 } as ip saddr 0.0.0.0/0. IPv6 neighbour discovery is untracked, not invalid, so an input chain that drops by default must accept it by type.
    • socket cgroupv2 level N "<path>" (nftables 1.0.9 src/datatype.c, Linux 6.8 net/netfilter/nft_socket.c): nft resolves the path to the cgroup's id when it parses the rule. A missing path fails the whole batch (Error: cgroupv2 path fails: No such file or directory), and a cgroup removed and made again gets a new id, which the rule silently stops matching. It needs kernel 5.13 or later, and on 6.8 works only in prerouting, input and output. Ancestors match by level, and the first SYN matches.
  • SO_MARK needs CAP_NET_ADMIN, or CAP_NET_RAW since Linux 5.17 (sk_setsockopt in v6.8 net/core/sock.c; checked on a 6.10 kernel on 2026-09-29).
  • ufw (Ubuntu's ufw packaging source, ufw 0.36.2: 0.36.2-6 in 24.04 and 0.36.2-9build1 in 26.04, read 2026-09-29):
    • ufw disable always runs ufw-init force-stop: it writes ENABLED=no into /etc/ufw/ufw.conf, deletes ufw's chains and sets the policies of the ip and ip6 filter chains INPUT, OUTPUT and FORWARD to accept. After Docker started, that undoes Docker's drop in FORWARD.
    • At boot ufw-init start does nothing while ENABLED=no. systemctl disable --now ufw alone removes the rules but leaves ENABLED=yes. Package upgrades never restart ufw.
    • Removing the package takes the program and the unit and leaves ufw.conf, a configuration file.

6.3 apt and dpkg

Read in the source of apt 2.8.3 and 3.2.0 and of dpkg 1.22, on 2026-09-29.

  • Locks.
    • dpkg takes its frontend and database locks without waiting (lib/dpkg/dbmodify.c).
    • apt-get update never waits for the lock of the package lists (pkgAcquire::GetLock has no timeout).
    • apt-get install takes /var/cache/apt/archives/lock without waiting, even with -o DPkg::Lock::Timeout=<s>, which makes it wait for dpkg's lock only (private-install.cc, acquire.cc).
    • So while unattended-upgrades installs, apt-get install fails on /var/lib/dpkg/lock-frontend with exit status 100, and while apt-daily downloads, on the lock of the archives.
    • The errors: apt-get update prints E: Could not get lock /var/lib/apt/lists/lock. It is held by process <pid> (apt-get) and exits with 100 (apt 2.8), and dpkg prints dpkg: error: dpkg frontend lock was locked by another process with pid <pid> and exits with 2 (dpkg 1.22.6). 26.04's dpkg may word it differently (unverified).
  • Package lists. With package_update: false cloud-init does not refresh the package lists, so the image's lists may be stale or missing (unverified).
  • dpkg-query -W -f='${Status}' <package> prints three words: the selection, a flag and the state, such as install ok installed, hold ok installed or deinstall ok installed. The state is config-files after a remove and half-configured after an install that stopped. It exits with 1 for a package that dpkg never had (dpkg-query(1)). dpkg drops the = of a short option's value, so -f=${Status} works too.
  • Configuration files. With --force-confdef --force-confold dpkg takes its default, where it has one, and otherwise keeps the installed file, when both the admin and the package changed it. Without them it asks, and without a terminal the question fails (dpkg(1)).

6.4 Restarts of Docker, containerd and Nomad

Read on 2026-10-05 in the Nomad v2.0.7 source and in Ubuntu's packages, whose postinst scripts ran in throwaway containers, unless an item says otherwise.

  • A restart of Docker stops Nomad's containers. Nomad's docker driver waits on each container with ContainerWait (run() in drivers/docker/handle.go, lines 281-353). dockerd cuts that stream when it stops; the driver logs failed to wait for container; already terminated and calls ContainerStop with a timeout of 0, and the task runner's DestroyTask removes the container (ContainerRemove). So Nomad itself stops the container that live-restore kept.
    • The stop is a guard against a wait that "returned incorrectly" (handle.go:330-341, present in v1.8.0), and no option of the driver changes it. hashicorp/nomad#24081 (merged 2024-09-30) made the wait's context endless. hashicorp/nomad#24105 asked for live-restore support and was closed in 2024-10 with a maintainer's note that Nomad picks the containers up again; 2.0.7 did not on the VM checks. #19962 (bridge-mode containers brought back with broken networks) and moby/moby#27987 (docker wait across a live-restore restart) are related.
    • The task restarts under the job's restart block, by default after 15 s plus up to 25% of jitter (17.3 s and 18.7 s on the M2.6b VM checks, 3.16). Each such restart counts toward the block's attempts.
  • An upgrade of docker.io does not restart Docker. The debconf question docker.io/restart defaults to false, and the postinst of 29.1.3-0ubuntu3~24.04.2 and 29.1.3-0ubuntu4.1 restarts Docker on an upgrade only when it is true (run with DEBIAN_FRONTEND=noninteractive on both releases; debconf-show docker.io gave false on Vultr's images, on the M2.6b VM reruns). unattended-upgrades installs docker.io from <codename>-security/universe (Allowed-Origins of 50unattended-upgrades, with an empty Package-Blacklist), so it upgrades the package without restarting Docker, and a security fix of Docker takes effect only at the next reboot or restart of Docker.
  • An upgrade of containerd restarts it. containerd 2.2.1-0ubuntu1~24.04.3 and 2.2.2-0ubuntu1.1 restart containerd.service on every upgrade without asking, and unattended-upgrades installs them from -security. apt-daily-upgrade.timer runs at 06:00 with RandomizedDelaySec=60m, so a fleet takes such an upgrade within an hour. It does not touch Nomad's docker tasks: on the M2.6b VM reruns a restart of containerd kept the task, and neither Docker nor Nomad restarted (3.16). docker.service has Wants= and After= on containerd.service, and no Requires=, BindsTo= or PartOf= on it.
  • needrestart, which ubuntu-server recommends, restarts services after library upgrades under APT. It skips docker.service (qr(^docker) => 0) but not nomad.service, since the Nomad binary is dynamically linked: a libc6 security upgrade restarts Nomad. The tasks survive a restart of Nomad (3.16). Vultr's images have needrestart (3.6-7ubuntu4.5 on 24.04, 3.11-1ubuntu2 on 26.04), with no $nrconf{restart} line, the package's default, and unattended-upgrades on (20auto-upgrades), on the M2.6b VM reruns of 2026-10-05.

6.5 cloud-init and the stub

  • cloud-init refuses a cloud-config that loads to nothing. The handler (cloudinit/handlers/cloud_config.py) raises ValueError("empty cloud config"). The stub of M2.7b first held a header and a comment, which is YAML that loads to nothing. Checked on 2026-10-06 with the handler itself, in an ubuntu:24.04 container with cloud-init 26.1-0ubuntu1~24.04.1: that stub logs Failed at merging in cloud config part from part-001: empty cloud config, and the same stub with a line {} after the comment loads as an empty mapping and merges without a warning.
  • A degraded status keeps status: done and errors: []. cloud-init status --wait --long shows it in extended_status: degraded done, in the items under recoverable_errors:, and in exit code 2. A healthy node prints extended_status: done, recoverable_errors: {} and exits 0.
  • On a real node. After the reboot of a scrubbed client, run rugw2m (2026-10-06) showed the degraded status, with the warning above. With the stub of three lines (#cloud-config, the comment, {}), run sv3vwb showed the healthy one.
  • --wait prints a dot for each wait, on the line of the status (..status: done in run sv3vwb; the line had no dots in rugw2m), so a reader of the output must not expect the status at the start of a line.

7. Sources

Nomad:

Hetzner:

Vultr:

Nomad status and agent API:

Ubuntu on nodes:

S3-compatible object stores:

Prior art: