From 020786af62f43d0897eed24131a6998d69fad277 Mon Sep 17 00:00:00 2001 From: Igor Churmeev Date: Wed, 14 Oct 2026 08:42:56 +0000 Subject: [PATCH] docs: describe release v0.2.0, its day-2 operations and how they were checked --- CLAUDE.md | 2 +- README.md | 70 ++++++++++++++++++++++++++++++++++++---------- docs/quickstart.md | 15 +++++----- docs/roadmap.md | 3 +- 4 files changed, 66 insertions(+), 24 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 25b1a3d..d17a00f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,7 +15,7 @@ Providers, in order: **Status:** M0 Foundation (2026-09-27), M1 Vultr infrastructure (2026-09-28), M2 Nomad bootstrap (2026-10-07) and M3 Day-2 operations (2026-10-14) are complete. v0.1.0, the first release that builds a Nomad cluster, was tagged on 2026-10-07: archives, `.deb` and `.rpm` packages, a Homebrew cask (`ingvarch/tap/tent`), and the tent-node binaries -that its nodes download. +that its nodes download. v0.2.0, with the day-2 operations of M3, was tagged on 2026-10-14. - The skeleton is in place: Go module, `tent version`, Makefile, lint rules, CI on Linux, macOS and Windows, and a GoReleaser release pipeline. The repository is public, the release secrets are set, and the archives and packages ship third-party licence notices (ADR-0020). Renovate updates the Go modules and GitHub Actions. diff --git a/README.md b/README.md index eebbb4f..e79f716 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,11 @@ clusters on cloud providers. It aims to be what [kops](https://github.com/kubernetes/kops) is for Kubernetes. A nomad pitches a tent anywhere; tent pitches a Nomad cluster on any cloud. -> **Status: early development, release v0.1.0.** `tent update cluster --yes` builds a running Nomad cluster on -> [Vultr](https://www.vultr.com): servers with a leader, ACLs bootstrapped and clients registered, and it scrubs a -> node's keys from its user data once the node has joined. `tent export nomad`, `tent ui` and `tent validate cluster` -> give you access to the cluster and check it. An end-to-end suite builds clusters on Vultr and checks them. It is not -> for production yet: tent cannot scale a running cluster down or roll it before M3. Vultr is the first provider, then -> [Hetzner Cloud](https://www.hetzner.com/cloud). AWS is planned. +> **Status: early development, release v0.2.0.** tent builds a secured Nomad cluster on [Vultr](https://www.vultr.com) +> and runs its day-2 operations: rolling updates that keep the Raft quorum and drain clients, scaling up and down, +> upgrades of Nomad, and backups. Each of them has run on Vultr, in the end-to-end suite or in a check of its own +> ([how it was checked](#how-it-was-checked)). Vultr is the only provider so far. +> [Hetzner Cloud](https://www.hetzner.com/cloud) is next, and AWS is planned. ## What works now @@ -38,21 +37,54 @@ pitches a tent anywhere; tent pitches a Nomad cluster on any cloud. cluster, an open `access.api` and a single failure domain are warnings. - **Safe re-runs.** A run that stops halfway can run again. tent adopts what it created by the markers on each object and never creates a second machine for one node. +- **Rolling updates** with `tent rolling-update cluster [--yes]`. After a change of the specs or of tent, `update` + lists the nodes that are outdated, and `rolling-update` replaces them with new machines: + - servers and combined nodes one at a time, with the new one in the cluster first; a leader hands its leadership + over before it stops; + - clients by the group's `maxSurge` and `maxUnavailable`, each drained before its machine goes; + - `--force` replaces nodes whatever their specs, and `--nodegroups` picks the groups. +- **Scaling** with `tent update cluster --yes`. It grows a group, and it shrinks one: a client is drained before it is + deleted, and a server leaves Raft and the gossip pool first. Server groups go from 3 to 1 and back. +- **Upgrades of Nomad** with `tent upgrade cluster --yes`. It moves the cluster to the version that its release channel + recommends, once HashiCorp's signed checksums of that release verify, by at most one minor version at a time. Then + `update` and `rolling-update` replace the servers first and the clients after them. - **Backups of Nomad's state.** `tent backup create` stores a snapshot of the jobs, tokens and variables in the state store, `tent backup list` shows them, and `tent backup restore --yes` puts one back into servers that `tent update cluster` built again after a loss. -- **Full teardown** with `tent delete cluster --yes`: every object with the cluster's markers, then its state. -- **An end-to-end suite on Vultr** (`make e2e`): it builds a cluster on Ubuntu 24.04 and one on 26.04, runs a job - with a service, checks that containers cannot reach the metadata service and that the servers refuse a node - without an intro token, and deletes the clusters ([details](test/e2e/README.md)). +- **Full teardown** with `tent delete cluster --yes`: every object with the cluster's markers, then its state and its + backups. +- **An end-to-end suite on Vultr** (`make e2e`) with three scenarios ([details](test/e2e/README.md)): + - `smoke` builds a cluster on Ubuntu 24.04 and one on 26.04. It runs a job with a service, checks that containers + cannot reach the metadata service and that the servers refuse a node without an intro token, and deletes the + clusters. + - `ha` rolls a cluster of 3 servers and 2 workers, restarts a client after every server was replaced, and restores + a backup into rebuilt servers. + - `upgrade` moves a combined cluster of 3 nodes from Nomad 2.0.6 to 2.0.7. + - During each roll a probe asks the servers for a leader and Nomad for a healthy allocation of the service, once a + second. + +## How it was checked + +- **The end-to-end suite** passed in full on Vultr on 2026-10-14, in runs `qkmdrs` and `hik34s`, the second on the + code of v0.2.0. In the rolls of `ha` and `upgrade`, no poll found the cluster without a leader, and none found the + service without a healthy allocation. The restarted client came back with its node ID. After the restore, the + workers came back on their own. +- **A check on Vultr for each part of the day-2 work:** + - the roll of clients (2026-10-08); + - the roll of three servers, with three workers whose allocations kept running, and of a single server + (2026-10-10); + - the roll of combined nodes (2026-10-12); + - workers from 2 to 1 and servers from 3 to 1 and back to 3 (2026-10-12); + - a backup, the loss of the server and a restore (2026-10-13). +- The runs, with their times and what they found, are in + [platform notes ยง3.16](docs/platform-notes.md#316-spike-runs). The unit and flow tests run every roll, scale-down, + upgrade, backup and restore on fakes of Vultr and Nomad, and they cut runs short to show that a run started again + finishes the work. ## What comes next -- **Run day-2 operations with Nomad semantics** (M3). - - Rolling updates drain clients and replace servers without losing Raft quorum. - - Upgrades and scaling (before M3 `update` refuses to delete a node that joined, since it cannot drain a node or - check the Raft quorum). - **More providers:** Hetzner Cloud (M4), then AWS (M6). +- **Provider polish** (M5): load balancers, DNS, cost, CSI addons, a private topology and diagnostics. ## Quick start @@ -75,6 +107,16 @@ tent delete cluster demo --yes # delete them, the specs and the secrets The [quick start guide](docs/quickstart.md) walks through each step with its output, SSH access, a job with the `nomad` CLI and the Nomad web UI. +Day-2 operations on the same cluster: + +```sh +tent edit cluster demo # change the specs in an editor, then: +tent update cluster demo --yes # apply them; the plan lists the nodes that are outdated +tent rolling-update cluster demo --yes # replace the outdated nodes +tent upgrade cluster demo --yes # move to the Nomad version that the channel recommends +tent backup create demo # store a snapshot of Nomad's state +``` + A build from `main`, such as `go install github.com/ingvarch/tent/cmd/tent@main`, is a development build: its nodes need a tent-node built from the same commit, which you give with `TENT_NODE_URL` and `TENT_NODE_SHA256`. In a clone of the repository, `make dev-upload` prints the lines that set them ([details](hack/tent-node-upload/README.md)). diff --git a/docs/quickstart.md b/docs/quickstart.md index 1a2bd65..df04057 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -3,14 +3,13 @@ This guide builds a small Nomad cluster on Vultr and deletes it again. It takes about fifteen minutes and costs a few cents. -> This guide uses tent v0.1.0, the first release that builds a Nomad cluster ([roadmap](roadmap.md)). `update cluster -> --yes` builds the network, the firewalls, the machines and a running, secured Nomad cluster: a leader, ACLs -> bootstrapped with the secret in the state store, and registered nodes. Once a node has joined, tent replaces its -> user data, which holds its keys, with a stub. `tent export nomad` gives you a short-lived certificate and token for -> the Nomad API, `tent validate cluster` checks the cluster, and `tent ui` serves the Nomad web UI on a port of your -> machine. Not done yet: -> - tent cannot scale a running cluster down before M3: `update` refuses to delete a node that joined Nomad, since it -> cannot drain a node or check the Raft quorum yet. `delete cluster` still deletes everything. +> This guide was written with tent v0.1.0, the first release that builds a Nomad cluster ([roadmap](roadmap.md)). +> `update cluster --yes` builds the network, the firewalls, the machines and a running, secured Nomad cluster: a +> leader, ACLs bootstrapped with the secret in the state store, and registered nodes. Once a node has joined, tent +> replaces its user data, which holds its keys, with a stub. `tent export nomad` gives you a short-lived certificate +> and token for the Nomad API, `tent validate cluster` checks the cluster, and `tent ui` serves the Nomad web UI on a +> port of your machine. Since v0.2.0 tent also rolls, scales down, upgrades and backs up a running cluster +> ([README](../README.md#what-works-now)). ## What you need diff --git a/docs/roadmap.md b/docs/roadmap.md index 89d9421..60029e7 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -1,7 +1,8 @@ # Roadmap > **Current status (2026-10-14):** M0 Foundation, M1 Vultr infrastructure, M2 Nomad bootstrap and M3 Day-2 -> operations are complete. +> operations are complete. Release v0.1.0 (2026-10-07) builds a Nomad cluster; v0.2.0 (2026-10-14) adds the day-2 +> operations of M3. > > M0 built the Go module, `tent version`, the Makefile, the import rules in golangci-lint, CI on Linux, macOS and > Windows, the release pipeline for `tent`, the API types with defaults and validation, the spec reader and writer,