Skip to content

spawn burst never installs spored; it only works on an AMI that already has it #924

Closed

Description

@scttfrdmn

Found while fixing #905 and #917.

generateBurstUserData (cmd/burst.go) does not install spored. It waits up to 300s for /usr/local/bin/spored to appear, then runs systemctl enable/start spored. If the AMI does not already contain spored, the script exits 1 and spored never runs. spawn launch installs spored from spawn-binaries-<region> through the shared bootstrap (pkg/launcher.BuildLinuxBootstrap, with signature verification). Burst does not use that bootstrap.

The AMI choice makes this likely. Without --ami, findLatestSpawnAMI takes the newest self-owned AMI whose name matches spawn-*. It does not check that spored is baked in, or the architecture against --instance-type, or the OS. With --ami set to a stock AMI, spored is never present.

Cost impact after #905/#917: burst members now carry spawn:managed=true and a spawn:ttl-deadline (default 8h), so the TTL reaper bounds them even without spored. Without spored, though, there is no idle termination, no on-complete, no hybrid-registry registration and no DNS. In-instance enforcement (#50) is missing, and burst cannot do its job.

Suggested: build burst's user-data with launcher.BuildLinuxBootstrap, adding the burst-specific steps to it, so spored is installed and verified the way spawn launch installs it. Then default the AMI the way spawn launch does (GetRecommendedAMI for the instance type), not by name pattern.

Verified by reading the code only. No instances were launched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions