Repository navigation
Description
What happens
A stack that is Compose only: every process runs in a container (Linux binaries, built by a command of the stack file), there is no [services.*] entry. A lane of it runs on a dedicated node of the pool. In the dashboard, "serve main ports" on that lane answers 200 and says "Lane … serves the main ports"; the lane list shows it as the owner of the main slot. Nothing moved: the fixed ports (db 3306, api 8080, …) still reach the main tree's containers. Back to main is just as silent.
Why
take_main (crates/devstack-daemon/src/lanes.rs) moves the fixed ports of [services.*] only: a proxied service's proxy points at the lane, a dev server gets a TCP forward (ADR-0043), workers move with the slot (ADR-0008). A Compose container's published port is bound by Docker itself, devstack is not in front of it, so the main slot cannot move it. With no services at all the loop has nothing to do, main_served_by is set anyway and the call returns Ok.
Adding to the confusion: devstack status lists Compose containers under a SERVICE column, while "service" in the stack file and in "main ports" means a [services.*] entry only.
Proposal
- Bug, small:
take_mainrefuses when nothing would move: "this stack has no services on main ports; Compose containers keep their own ports" (409), instead of a success that changes only the owner. The dashboard then shows the reason. Docs (docs/pool.md,docs/dashboard-api.md) say that the main ports are the services' fixed ports, not the containers'. - Feature, needs an ADR first: the main ports include the published ports of Compose containers, the way ADR-0043 made a dev server's fixed port devstack's. Sketch: devstack holds the fixed host port and forwards it (TCP,
tcpfwd.rs) to the main tree's container on a shifted port, or to the lane's port (here or on its node) while a lane serves the main ports. Open questions for the ADR:- Does the main tree's container keep running while a lane has the ports (it no longer publishes the fixed port), or does it stop, as a main-tree service does?
- Rewriting a Compose service's
ports:(fixed to shifted) for the main tree: always, or opt-in per Compose group/service (main_ports = true)? - UDP ports (game servers, DNS): TCP forward only, or out of scope?
- Clients inside the Compose network address the container directly and are not affected; only host-side clients move. Is that enough?
- Optional: the
SERVICEcolumn ofdevstack statusnames containers differently (or the column gets a neutral header).
Seen with
devstack 0.15.0, Windows 11, lane on a dedicated Linux node.
Activity
docs(adr): accept 0047; ADR-0024 links it, #184 noted
docs(adr): 0047, the dashboard makes a lane from a branch (#187)
fix(daemon): serving the main ports refuses a stack of containers only (
docs(adr): 0048, a container's main port can move with the main slot (#…
feat: a lane from a branch, in the dashboard (ADR-0047) (#189)
7schmiede commentedon Oct 22, 2026
Parts 1 and 2 are done: part 1 with #188 (
take_mainrefuses a stack with nothing on main ports, the dashboard hides the action), part 2 with ADR-0048 (#190) and its implementation (#194,[compose.<group>] main_ports). What remains is part 3:devstack statuslists Compose containers under aSERVICEcolumn, while "service" elsewhere means a[services.*]entry.[-]serve main ports does nothing for a Compose-only stack, and says it worked[/-][+]devstack status: Compose containers listed under a SERVICE column (part 3 of the main-ports confusion)[/+]