Skip to content

Land #89 on main: pin services to hosts (it merged into its stack base) - #93

Merged
wmantly merged 3 commits into
mainfrom
feat/per-host-bridge-subnet
Nov 5, 2026
Merged

wmantly merged 3 commits into
mainfrom
feat/per-host-bridge-subnet

Conversation

@wmantly

@wmantly wmantly commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Lands #89 on main. Part of #43.

#89 was stacked on #88. #88 merged into main at 03:17:16, and #89 merged 47 seconds later into its stack base, feat/per-host-bridge-subnet, which had not been retargeted to main yet. So #89's commit (e9d9b88, "Pin services to hosts: each daemon plans and applies its own share") is not on main.

This PR brings exactly that in: the same reviewed commit, with no new changes. The diff against main is #89's diff (21 files).

Checked by test-merging it onto current main: clean. #92 (OCI environment and external routes) merges cleanly on top of it as well.

No self-merge.

🤖 Generated with Claude Code

wmantly and others added 3 commits November 4, 2026 22:14
A service names its host (`host:`, else fleet.yml's `default_host`; with one
host that host is the default). `serve --host-name` tells a daemon which host
it is. Its plan holds only that host's services, lists the others as skipped
("on host X") without reading them, and leaves dns_records to the default
host's daemon. The plan hash covers only what the daemon would apply plus the
host name, so each host approves its own share. A daemon with no host name
refuses to plan a fleet of two or more hosts, and apply re-checks that every
service it changes is its host's.

A single-host fleet plans byte for byte as before (text, JSON and hash),
checked against a golden plan from the previous release.

Also: --host-name on the unit survives daemon.flags (serveflags.Merge), and
fleet.yml refuses it in daemon.flags with several hosts; reconcile puts it on
the hosts it creates and refuses --deploy-services for several hosts; the
CLI plan and apply take --host-name. Docs: docs/daemon.md "Several hosts",
README, and a CI matrix example (docs/ci-examples/deploy-hosts.yml).
Remote fan-out is later.

Stacked on the per-host bridge subnet: with the host known (--host-name, or
the single-host default), planBridge checks and apply ensures this host's
network (HostNetwork of the daemon's own host), so the "not checked" note
no longer appears when the host is known. LocalNetwork takes the host name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin services to hosts: each daemon plans and applies its own share (#43)
…ackups

Resolves the conflicts with #90, #91 and #92:
- serve: start the backup scheduler (#91) and log the host name (#89).
- config: DefaultHost (#89) beside Backup and Snapshots (#91).
- The daemon had two HostName fields: #91's for backup object keys and
  #89's --host-name. They are one now: --host-name (env
  NATIVE_OPS_HOST_NAME, as #91 already read) names the host's plans and
  its backup keys; empty still falls back to the OS host name for backups.
- One writeFleet test helper in pkg/config (both PRs added it).
- The single-host golden plan is regenerated from main without #89: the
  only difference is #92's environment.* line for an OCI image, so #89
  still changes nothing for a single host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wmantly

wmantly commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged main in (48d1b61), now that #90, #91 and #92 have landed. It merges cleanly again, and the full check set passes (gofmt, mod tidy, vet, go test -race ./..., node).


Drafted by William's agent (Claude).

@wmantly
wmantly merged commit c2a4b44 into main Nov 5, 2026
2 checks passed
@wmantly
wmantly deleted the feat/per-host-bridge-subnet branch November 5, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant