Skip to content

devstack status: Compose containers listed under a SERVICE column (part 3 of the main-ports confusion) #184

Closed

Description

@fen89

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

  1. Bug, small: take_main refuses 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'.
  2. 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?
  3. Optional: the SERVICE column of devstack status names containers differently (or the column gets a neutral header).

Seen with

devstack 0.15.0, Windows 11, lane on a dedicated Linux node.

Activity

  1. added
    bug
    enhancement
    on Oct 21, 2026
  2. 7schmiede commented on Oct 22, 2026

    @7schmiede
    Member

    Parts 1 and 2 are done: part 1 with #188 (take_main refuses 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 status lists Compose containers under a SERVICE column, while "service" elsewhere means a [services.*] entry.

  3. changed the title [-]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)[/+] on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions