Skip to content

The share switch makes the machine a node: it runs the node agent (Linux in the hub, Windows via #168) #171

Closed

Description

@7schmiede

Context

The share switch (ADR-0031 point 3) only reported capacity. No member could start a lane on a machine that only switched it on: a lane needs a node agent (devstack node agent), granted by an admin, and the switch never ran one. On Windows a node agent cannot run lanes at all (#168). The switch is removed from the dashboard for now (#169).

What it should mean, on both platforms: "other members' lanes may run on this machine", and then they can.

Proposal

To decide

  1. Listen address and --api.
    • Proposal: 0.0.0.0:4261, and as the API the local address of the connection to the coordinator. That is the address other members reach in the LAN or VPN.
    • What happens when it changes (laptop, Wi-Fi)?
  2. Admin grant (ADR-0032). The first switch-on is refused until an admin grants the machine as a node.
    • The tile says "waiting for an admin".
    • Admins see the request in the pool area. A request list, or the existing member row?
  3. Checks before switching on, with a reason when one fails:
    • Docker running, the user able to use it (docker group or rootless),
    • the egress helper able to set rules,
    • disk free.
  4. Firewall: an inbound rule for 4261 (ufw/firewalld) needs root. Show the command? Have doctor check it?
  5. Switching off. Two options:
    • "no new lanes, running ones keep running until their owners stop them",
    • or "end them now", which needs the node owner to be able to end a guest lane (an amendment to ADR-0033).
    • And what the switch shows while lanes still run.
  6. Caps and kind. The caps come from the share settings. The node is not --dedicated (it may be reclaimed). Its own policy.json applies?
  7. Sleep and offline. A laptop that sleeps loses its leases' renewal. A lane's data outlives the lease (ADR-0038). Is that enough, or does the switch keep the machine awake while lanes run (macOS support (developer machine, distribution, pool node) #66 lists that for macOS)?
  8. Upgrading machines that ran devstack node agent by hand next to a hub: the hub then must not start a second agent.

Before code

An ADR that replaces ADR-0031 point 3 ("the share switch makes the machine a node"), together with #168 as the Windows way. It also answers the switch-off question above.

Related: #167 (guest lanes shown), #168, #169, #170.

Activity

  1. added
    icebox
    on Oct 28, 2026
  2. 7schmiede commented on Nov 18, 2026

    @7schmiede
    MemberAuthor

    Fixed in 0.50.0 by #580: the share switch runs the node agent (ADR-0113).

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

    icebox

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions