Skip to content

Commit 111ac20

Browse files
Uwe Schwaekeuw-sc
authored andcommitted
fix(neutron): give real mode a network node and a firewall per port
Round 2 of SPEC-033's real-mode layout, as upstream's: one network node (neutron.network_node; without VXLAN every node is its own) holds every router in a qrouter-<id> namespace and each network's DHCP and metadata in a qdhcp-<network> namespace. Every port is firewalled on the node it is bound to (binding:host_id) by its own iptables chains, built from its groups with remote groups resolved to their members, in iptables and ebpf mode alike. The per-fixed-IP floating-IP filter is retired. - A request stores its change, has the node that holds the state apply it before the answer (a function call there, an authenticated one-second node call otherwise), and undoes its own change compare-and-set when that fails. A deletion removes the host state before its record and re-applies it when the record stays. - The DHCP port takes the lowest free pool address; dnsmasq serves static ranges with option 121; metadata is served in the namespace and identifies a guest by network and address. Ports honour fixed_ips. - Nova binds a port before the guest starts, a revived guest's too, and every domain names the guest's TAP for its port. - Each node's reconciler converges what it holds both ways, removing by "no record" only after a complete read; it removes what earlier layouts left where it recognises it, the uplink's stray proxy entries, and the VXLAN entries and devices no record holds. Teardown and its database-less fallback remove the new layout. - At start, real mode loads br_netfilter and turns on bridge-nf-call- iptables and -ip6tables; readiness fails, naming bridge-netfilter, while they do not hold. - The chart's pod and the KVM Compose file mount the host's /run/netns both ways and /lib/modules read-only; the teardown purge Job mounts /run/netns. The chart runs real mode privileged, as bidirectional propagation needs, and refuses multi-node VXLAN without neutron.networkNode. - Removed: TAPDeviceManager and the metadata DNAT remover, which nothing called any more, github.com/coreos/go-iptables, which nothing imports, and pkg/networking's eBPF wrapper, which lost its last caller with Neutron's TAP; pkg/networking/ebpf stays for the separate decision. - Docs: UPGRADING.md (round 2's answers, the clean break), EBPF_STATUS.md, the networking, VXLAN, configuration, troubleshooting, scaling and architecture docs, the chart README, CLAUDE.md; the host runbook; the Horizon compatibility report, recording instance Edit Security Groups as verified. - A security group rule is checked and stored as upstream's: its direction, ethertype, protocol, ports and remote prefix, each refusal a 400 under upstream's name. The port firewall writes a rule only as it parses it and leaves out what it cannot express: a newline in a rule's remote or protocol reached iptables-restore's input, which runs as root. - A subnet's DNS servers are checked as upstream's on create, and the DHCP configuration writes a gateway or DNS server only as an IPv4 address: a newline in one reached dnsmasq's configuration, which starts as root. - The branch review's findings (tasks T169-T239): router ports are the router's records, so the port API refuses them (ServicePortInUse) and no member's port is routed; a port forwarding finds its router from its internal port, as upstream's, and frees it with the last one; every undo takes the allocation lock and leaves an address someone took meanwhile; a revived guest's TAP is named and filtered; deletions re-check under their locks; a subnet's gateway change reaches its routers. Answers follow upstream: in-use refusals carry upstream's messages, If-Match is read as upstream reads it, a port's and a subnet's create and update answer as their show, listings and creates ensure the project's default group. The port firewall writes a MAC as iptables-save prints it, so an unchanged node is only read, which tests now check against captured iptables-save output. The node call is served before the users' auth, with plain absent and absent_ids; unit locks go with their last user; migration 085 keeps an index on security_groups (project_id, name), and its marker is "-- lightstack:foreign-keys-off", read on the file's first line only. - The second branch review's findings (tasks T242-T310): a subnet's ip_version must match its CIDR, and DHCP serves IPv4 subnets only, so no record stops the reconciler; a deleted port's still-running TAP is dropped both ways before any port's chains (ls-bound-in and -out); protocols are written as iptables prints them, so vrrp no longer fails a node's commit; a rule's delete locks its group first; a server's deletion frees its forwardings' floating IPs, and a losing deletion binds nothing back; requests waiting on a unit share one converge; one request gives each address once, and a gateway keeps the address it is not asked to change; a port forwarding's update is checked as its create; router:external stays while a gateway uses it; trunks take only ports the caller can see; add_router_interface takes a port. Answers follow upstream for trusted ports, an empty remote group, the rule listing's filters, fixed_ip_address without a port and zoned pools. The node call bypasses HTTP proxies, network_node is read trimmed, the chart refuses multi-node without VXLAN, and the turnkey Compose mounts the host's /run/netns. - A subnet's enable_dhcp, turned on or off, moves the network's DHCP port onto or off the subnet, and the network node applies it before the answer; when it cannot, the update is undone, compare-and-set. - A network's connection-tracking zone is read and taken under one transaction-scoped lock, and the statement runs once: it no longer retries a zone another request took (constitution Article III). database.AdvisoryLock takes that lock, and the quota and floating-IP locks, which each wrote the statement out. - An update's undo puts a floating IP's old association back only where the rules still allow it, under an association's locks, as a deletion's restore does; otherwise the floating IP comes back unassociated. Migration 084 refuses a second floating IP of a network on one fixed IP of a port, as upstream's unique constraint does. - An orphan TAP's frames addressed to this host are dropped too, not only those the bridge forwards. - A router interface port with several fixed IPs, which add by port accepts as upstream's, has every one on its leg and joins the router to each subnet: the duplicate check, a removal and an undo see them all, and a removal by one subnet takes only it off the port. One IPv6 port of a network per router, and an IPv6 subnet added by subnet joins that port, as upstream's. - A gateway on a new port takes the default route onto its new leg before the old leg goes, also when the next hop stays the same. - Every query for a router's gateway port asks for the one the router code writes, without a project: an undone gateway change no longer restores a member's port naming the router as its gateway, a router's deletion leaves such a port, and the reconciler does not take its address for Lightstack's. Run on one Kubernetes node (k3s, real libvirt, Horizon) on 2026-11-23 with the host runbook: every step passed. Two nodes are not supported yet, so their host run is dropped from the spec and the tasks. Known gap, outside this change: VXLAN devices have no flooding destination, so broadcast does not cross nodes and a guest off the network node gets no DHCP lease (follow-ups.md, 5.1). Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Uwe Schwaeke <uwe.schwaeke@sap.com>
1 parent 8672d46 commit 111ac20

305 files changed

Lines changed: 31643 additions & 11228 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.specify/memory/constitution.md‎

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SYNC IMPACT REPORT — constitution amendment
33
===========================================
44
Version change: 1.5.0 → 1.6.0 (MINOR — two new permitted exceptions; one exception's scope stated to
55
match the component it was written for; one divergence registered). Refined in place on
6-
2026-11-18 and 2026-11-20, before reaching `main`.
6+
2026-11-18 and 2026-11-20, and editorially on 2026-11-24, before reaching `main`.
77
88
Modified principles:
99
- I. OpenStack Flamingo API Compatibility — rules unchanged. Known Divergences gains entry 5:
@@ -37,6 +37,8 @@ Modified principles:
3737
Changed sections:
3838
- Technology Constraints → Forbidden Patterns: the async-worker exemption names loops that make
3939
node-local state match the record.
40+
- Technology Constraints → Required Dependencies (editorial refinement, 2026-11-24): iptables is run
41+
as commands; the go-iptables binding is gone (SPEC-033 T232).
4042
- Known Divergences from Upstream: entry 5 (entry 6 added and withdrawn on 2026-11-20).
4143
- Amendment Log: entry for v1.6.0.
4244
@@ -55,11 +57,12 @@ Runtime guidance updated in the repo:
5557
- docs/specs/033-sg-port-membership/ — spec (both analysis sessions; FR-007b, FR-008, FR-008a–c,
5658
FR-010, FR-021a), plan (the Constitution Check cites v1.6.0), research (R5, R8, R19–R24) and
5759
tasks.
58-
- CLAUDE.md — Project Isolation: security groups resolve only in their own project (register
59-
entry 5); since 2026-11-20, a name in an administrator's server action resolves in the server's
60-
project, an id may name any group the caller can see. Two database backends: a change to security-group membership or rules, or to a
61-
floating IP's association, stores, applies and, on failure, undoes. Refined 2026-11-20: the
62-
node that holds the state applies it; deletions remove host state before their record.
60+
- CLAUDE.md — Project Isolation: security groups resolve only in their own project (register entry 5);
61+
since 2026-11-20, a name in an administrator's server action resolves in the server's project, an id
62+
may name any group the caller can see. Two database backends: a change to security-group membership
63+
or rules, or to a floating IP's association, stores, applies and, on failure, undoes. Refined
64+
2026-11-20: the node that holds the state applies it; deletions remove host state before their
65+
record.
6366
6467
Follow-up TODOs:
6568
- ✅ (2026-11-20) The Neutron request paths that logged a failed node-local step and answered
@@ -134,11 +137,11 @@ removes nothing on a read of the records it knows to be incomplete. Either way:
134137
synchronous, bounded call — or fails and undoes it ("a change undone when its external work fails",
135138
below); a deletion removes that state before its record ("a removal applied before its record
136139
goes", below).
137-
- It exists only to correct drift: a guest that crashed, a resource removed out of band, a record
138-
that has aged past its retention, or node-local state lost to a restart or edited by hand. For
139-
node-local state it also covers three cases no request can reach without a queue: state on the
140-
nodes other than the one a change applies on, a request whose process stopped after storing its change, and a node whose
141-
own undo could not restore its state after the request had already answered with an error.
140+
- It exists only to correct drift: a guest that crashed, a resource removed out of band, a record that
141+
has aged past its retention, or node-local state lost to a restart or edited by hand. For node-local
142+
state it also covers three cases no request can reach without a queue: state on the nodes other than
143+
the one a change applies on, a request whose process stopped after storing its change, and a node
144+
whose own undo could not restore its state after the request had already answered with an error.
142145

143146
A loop that accepts work from a request, or that an API response waits on, remains forbidden.
144147

@@ -355,7 +358,8 @@ undocumented divergence does not merely go unfixed; it silently bounds the value
355358
- **Real Mode** (Linux only):
356359
- libvirt + KVM (github.com/digitalocean/go-libvirt)
357360
- netlink (github.com/vishvananda/netlink)
358-
- iptables (github.com/coreos/go-iptables)
361+
- iptables, ip6tables and their `-save`/`-restore`, and iproute2's `ip`, run as commands with a
362+
one-second bound (no Go binding; SPEC-033 removed github.com/coreos/go-iptables)
359363
- Optional: Ceph RBD (github.com/ceph/go-ceph), S3 (AWS SDK v2)
360364

361365
### Forbidden Patterns
@@ -426,7 +430,7 @@ Amendments require:
426430

427431
## Amendment Log
428432

429-
### v1.6.0 — 2026-11-17, refined 2026-11-18 and 2026-11-20 — a change undone when its external work fails; a removal applied before its record goes; loops that make node-local state match the record (Article II); register entry 5 (Article I)
433+
### v1.6.0 — 2026-11-17, refined 2026-11-18 and 2026-11-20, editorially 2026-11-24 — a change undone when its external work fails; a removal applied before its record goes; loops that make node-local state match the record (Article II); register entry 5 (Article I)
430434

431435
**Rationale**: SPEC-033 (cloud-storage#579) makes security-group membership reach the ports and the
432436
firewall built from them. Its analysis found the plan justifying two departures from Article II
@@ -479,6 +483,14 @@ node-local step and answered success — network, subnet and DHCP changes, route
479483
interfaces and gateways, port forwarding, port creation's FDB and eBPF steps, port and instance-port
480484
teardown, the LS-SG chains, network creation's undo — is brought in line by the same feature (FR-045),
481485
so this amendment names no departure. No deployment exists; the layout change is a clean break.
486+
Article V's network-isolation bullet, which described per-project namespaces that no longer exist,
487+
names the layout instead: one bridge per network, router and DHCP namespaces on the network node, and
488+
per-port firewall chains. Its rules are unchanged; it records what isolates projects.
489+
490+
**Editorial refinement 2026-11-24** (SPEC-033 T232, before reaching `main`): Required Dependencies
491+
named `github.com/coreos/go-iptables`, which SPEC-033 removed from `go.mod`. They now name iptables,
492+
ip6tables and their `-save`/`-restore`, and iproute2's `ip`, run as commands with a one-second bound.
493+
No principle, rule or limit changes.
482494

483495
### v1.5.0 — 2026-11-06 — re-establishing a dependency in the background (Article III); no runtime fallback to stub (Article IV)
484496

‎CLAUDE.md‎

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -207,23 +207,27 @@ pkg/ # Public/reusable packages
207207
**Project Isolation**:
208208
- All resources scoped by `project_id` from JWT token
209209
- Per-network L2 isolation comes from one Linux bridge per network, **not** from a namespace per
210-
project. Nothing creates per-project namespaces (`light-ns-<project>`) any more — bridges, TAPs,
211-
dnsmasq, the VXLAN devices and the egress NAT rules all live in the namespace Lightstack itself runs in,
212-
because libvirt has to reach them there (SPEC-024 F10). `NetworkNamespaceManager` survives only so
213-
teardown can reclaim what older deployments left behind. Router namespaces (`qrouter-*`,
214-
`RouterManager`) are separate and still live. **SPEC-033 round 2 (planned, not yet implemented)
215-
changes this layout**: one network node holds every router namespace and a `qdhcp-*` namespace
216-
per network (DHCP, metadata), egress NAT moves into the router namespaces, bridges hold no
217-
address, and every port gets firewall chains on its node (constitution Article V as amended). `BridgeManager`, `TAPDeviceManager` and
210+
project, and no bridge holds an address. Nothing creates per-project namespaces (`light-ns-<project>`)
211+
any more; `NetworkNamespaceManager` survives only so teardown can reclaim what older deployments left
212+
behind. Bridges, the guests' TAPs (libvirt's, `tap<port id[:11]>`) and the VXLAN devices live in the
213+
namespace Lightstack itself runs in, because libvirt has to reach them there (SPEC-024 F10). One
214+
**network node** (`neutron.network_node`; without VXLAN every node is its own) holds every router in a
215+
`qrouter-<id>` namespace — floating-IP NAT, port forwardings, SNAT — and each network's DHCP and
216+
metadata in a `qdhcp-<network>` namespace (SPEC-033). Every port is firewalled on the node it is
217+
bound to (`binding:host_id`) by its own chains, `ls-i`/`ls-o`/`ls-s`, as upstream's iptables driver,
218+
in `iptables` and `ebpf` mode alike (SPEC-033 FR-041, FR-047). `BridgeManager` and
218219
`VXLANManager.AttachToBridge` take **no namespace argument** — do not add one back
219220
- Database queries auto-filter by `project_id`
220221
- **Except for the administrative override** (SPEC-023): a caller holding the `admin` role may act
221222
on any project's *server*, matching upstream Nova's `admin_or_owner` default. Creation is not
222223
overridable, and a server addressed by **name** never resolves outside the caller's own project —
223224
Lightstack accepts a name where upstream accepts only a UUID, so a shared name must not become a way to
224225
reach the wrong tenant's server.
225-
- Listings never widen implicitly. `?all_tenants` is the opt-in, administrators only; a
226-
non-administrator passing it is silently ignored, not refused.
226+
- Compute listings never widen implicitly. `?all_tenants` is the opt-in, administrators only; a
227+
non-administrator passing it is silently ignored, not refused. Networking API listings follow
228+
upstream instead: an administrator's list every project's resources, `project_id`/`tenant_id`
229+
narrowing them, and an administrator may show, update and delete any project's resource by id;
230+
names still resolve in the caller's own project only (SPEC-033 FR-057, FR-058).
227231
- Surfaces belonging to the **deployment** rather than to a project — host aggregates, the
228232
deployment-wide migration list, the aggregate usage report — are administrator-only. They have no
229233
`project_id` to filter on, so they take a role gate instead of a scoping predicate.
@@ -235,7 +239,7 @@ pkg/ # Public/reusable packages
235239

236240
**Dependency Injection Pattern**: Every database-using service receives the process's one `database.DB` as the first parameter of its constructor, for example `nova.NewService(pool, libvirtURI, libvirtMode, cache)` in `internal/nova/handlers.go`. Handlers query through it with `svc.pool.Query(ctx, ...)`. Package-level helpers take it as a parameter, e.g. `database.WithTx(ctx, pool, fn)`. There is no process-wide handle. Tests hand services a database of their own (see `internal/keystone/pool_injection_test.go`). See ADR-001 and ADR-003.
237241

238-
**Two database backends** (SPEC-028, ADR-003): `database.DB` is an interface over the method set the code calls on pgx, with a PostgreSQL implementation (pgxpool, unchanged) and a SQLite one (`modernc.org/sqlite`, pure Go). `database.url`'s scheme picks one at startup — `postgres://…` or `sqlite:///absolute/path`; SQLite serves a single node only (VXLAN is refused). Write SQL in PostgreSQL syntax from the set `internal/database`'s package documentation lists; SQLite translates casts, `= ANY($n)`, `LIMIT NULL`, `FOR UPDATE` and `~`, and `TestSQLConstructs` fails the build on anything only PostgreSQL runs (jsonb operators, `ARRAY_AGG`, `DISTINCT ON`, `CURRENT_TIMESTAMP`, …). Never hold a transaction across storage, libvirt, network or HTTP work: on SQLite one transaction holds the whole file. Volume and snapshot creates reserve their row, do the backing work outside, then finalise. A request that changes real-mode network state stores the change, has the node that holds that state apply it — the network node for routers, DHCP and floating IPs, the port's bound node for its firewall chains, asked through a synchronous one-second call when that is another node — and undoes exactly its own change, compare-and-set, if that fails; a deletion removes the host state before its record and re-applies it on failure. The network reconciler re-asserts what the records hold and removes Lightstack's state they no longer hold (constitution v1.5.0, Article II).
242+
**Two database backends** (SPEC-028, ADR-003): `database.DB` is an interface over the method set the code calls on pgx, with a PostgreSQL implementation (pgxpool, unchanged) and a SQLite one (`modernc.org/sqlite`, pure Go). `database.url`'s scheme picks one at startup — `postgres://…` or `sqlite:///absolute/path`; SQLite serves a single node only (VXLAN is refused). Write SQL in PostgreSQL syntax from the set `internal/database`'s package documentation lists; SQLite translates casts, `= ANY($n)`, `LIMIT NULL`, `FOR UPDATE` and `~`, and `TestSQLConstructs` fails the build on anything only PostgreSQL runs (jsonb operators, `ARRAY_AGG`, `DISTINCT ON`, `CURRENT_TIMESTAMP`, …). Never hold a transaction across storage, libvirt, network or HTTP work: on SQLite one transaction holds the whole file. Volume and snapshot creates reserve their row, do the backing work outside, then finalise. A request that changes real-mode network state stores the change, has the node that holds that state apply it — the network node for routers, DHCP and floating IPs, the port's bound node for its firewall chains, asked through a synchronous one-second call when that is another node — and undoes exactly its own change, compare-and-set, if that fails; a deletion removes the host state before its record and re-applies it on failure. The network reconciler re-asserts what the records hold and removes Lightstack's state they no longer hold (constitution v1.6.0, Article II).
239243

240244
## Operating Modes
241245

@@ -267,9 +271,15 @@ Requires Linux with appropriate dependencies.
267271
that need it fail, never return fake data
268272

269273
**Neutron real mode** (`networking_mode: iptables` or `ebpf`):
270-
- Requires Linux with network namespaces
271-
- Uses `github.com/vishvananda/netlink` for namespace/bridge creation
272-
- iptables via `github.com/coreos/go-iptables` for security groups
274+
- Requires Linux with network namespaces, `iptables`/`ip6tables` with their `-save`/`-restore`, and
275+
`br_netfilter`: Lightstack loads it and sets `net.bridge.bridge-nf-call-ip(6)tables` at start, and
276+
readiness fails, naming `bridge-netfilter`, while they do not hold
277+
- Uses `github.com/vishvananda/netlink` for bridges and VXLAN devices, and `ip`, `iptables-restore`
278+
and `ip6tables-restore` through a command runner bounded at one second per command for the router
279+
and DHCP namespaces and the port firewall (`pkg/networking/router_namespace.go`,
280+
`dhcp_namespace.go`, `port_firewall.go`)
281+
- The port firewall enforces security groups in both modes; the eBPF filter is not wired
282+
(`docs/EBPF_STATUS.md`)
273283

274284
**Cinder/Glance real mode** (`storage_mode: local`, `rbd`, `s3`, or hybrid):
275285
- `local`: Host filesystem storage
@@ -278,7 +288,7 @@ Requires Linux with appropriate dependencies.
278288

279289
## Database Schema
280290

281-
72 tables, the same on PostgreSQL and SQLite (`TestSchemaParity` proves it). Key tables:
291+
76 tables, the same on PostgreSQL and SQLite (`TestSchemaParity` proves it). Key tables:
282292

283293
- **users**: User credentials (bcrypt hashed passwords)
284294
- **projects**: Projects/tenants
@@ -501,7 +511,7 @@ if requestedVersion == "" {
501511
- Go 1.27.3 (`go.mod`; the constitution requires 1.26+). Helm 3.12+ chart templates (Go `text/template` + Sprig), JSON Schema draft-07. Markdown. + `digitalocean/go-libvirt` at the pinned `v0.0.0-20260609165003-6254771e63a8` (`socket.Dialer`, `ConnectToURI`, `Disconnected()`); `golang.org/x/sync/singleflight` (already required, now direct); `gin`; `internal/health`; helm-unittest. **No new module.** (031-realmode-dns-libvirt-fixes)
502512
- nothing new. No database schema change, no migration. Node-local ownership only: `<state_path>/console-sockets` (as today) and `<state_path>/instances/<id>` (now ensured before every launch). (031-realmode-dns-libvirt-fixes)
503513
- Go 1.27.3 (`go.mod`). Markdown. + `gin`; `internal/database` over pgx/pgxpool and `modernc.org/sqlite`; `google/uuid`. In real mode: `iptables`/`ip6tables` and their `-restore` from Alpine's `iptables` package, `ip`/`ip netns` from iproute2, BusyBox `modprobe` for `br_netfilter`; the chart mounts the host's `/run/netns` (bidirectional) and `/lib/modules`. `gophercloud` v1.14.1 for contract tests. **No new module.** (033-sg-port-membership)
504-
- PostgreSQL or SQLite, chosen by `database.url`. Migration 076 (pair): `subnet_allocation_pools`, `subnets.pools_stored`, `ports.binding_host_id`, `networks.ct_zone`, `security_groups.revision_number` and `stateful`, the seeded `default`'s member rules. `server_security_groups` is retired, not dropped. New setting `neutron.network_node` (033-sg-port-membership)
514+
- PostgreSQL or SQLite, chosen by `database.url`. Migration 084 (pair): `subnet_allocation_pools`, `subnets.pools_stored`, `ports.binding_host_id`, `networks.ct_zone`, `security_groups.revision_number` and `stateful`, one floating IP of a network per fixed IP (a unique index), the seeded `default`'s member rules. `server_security_groups` is retired, not dropped. Migration 085 (pair): group names may repeat, one `default` per project (a partial unique index), and an index on `security_groups (project_id, name)`; its SQLite file runs with foreign keys off. New setting `neutron.network_node` (033-sg-port-membership)
505515

506516
## Recent Changes
507517
- 028-sqlite-database-layer: plan — SQLite as a second backend behind a backend-neutral `internal/database` contract whose method sets mirror pgx's, so the 736 call sites change types only. PostgreSQL passes SQL through untouched; SQLite translates casts, `= ANY($n)`, `FOR UPDATE` and the console expiry, registers `now()`/`gen_random_uuid()`/no-op advisory locks, and converts times, JSON, lists and `[]byte` (a STRICT TEXT column refuses BLOBs). Ten rewrite sites, the same for both backends; `name ~` stays a database match (`REGEXP` on SQLite), as upstream's. Cinder creates reserve a `creating` row and build the backing outside any transaction (+ a per-node startup sweep); Nova gains a binding quota recheck under an advisory lock and answers **403** instead of 413 (with FR-036a's 400s, the two API changes). Probe-verified: deferred read-then-write hits `SQLITE_BUSY_SNAPSHOT` (517) → immediate transactions expected (SPEC-028 plan)

‎Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,13 @@ test-compose-identity:
119119

120120
# Check that the KVM Compose stack mounts the whole state root at the same path inside and out,
121121
# with the root, the config directory and the database URL overridable, so one file runs either
122-
# backend (SPEC-028). Renders the stack with `compose config`; nothing is started.
122+
# backend (SPEC-028), and that the turnkey stack mounts the host's /run/netns and /lib/modules
123+
# (SPEC-033 T246). Renders the stacks; nothing is started.
123124
test-compose-kvm:
124125
@echo "Running KVM Compose stack tests..."
125126
@docker compose version >/dev/null 2>&1 || (echo "ERROR: 'docker compose' not found." && exit 1)
126127
@bash test/compose_kvm_state_test.sh
128+
@bash test/compose_turnkey_mounts_test.sh
127129

128130
# Run the OpenStack CLI conformance suite against this checkout's binary.
129131
# Rebuild every time and force the isolated binary-test Compose stack so a

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ Just as K3s removed heavyweight components from Kubernetes:
113113
- Horizontal scaling via load balancer
114114

115115
### Multi-Tenancy
116-
- Network namespace per project
117-
- Linux bridges (single-node) or VXLAN (multi-node)
118-
- iptables-based security groups (eBPF in future)
116+
- One Linux bridge per network, joined across nodes by VXLAN
117+
- Routers, DHCP and metadata in namespaces on one network node
118+
- Security groups as each port's iptables chains, on the node its guest runs on
119119
- Project-scoped JWT tokens
120120

121121
## 📚 Documentation

0 commit comments

Comments
 (0)