Skip to content

Bootstrap can abort before starting spored on low-memory instances (OOM-killed acpid install, then set -e): workload runs with no TTL #1291

Closed

Description

@scttfrdmn

Found by the live boot test of #1290 (#1274 PR A), dev account, us-west-2, 2026-10-24.

On a t4g.nano (0.5 GiB), the bootstrap aborted before it started spored. The task's --command had already started in the background, ran, and uploaded its records. But the instance stayed running with no spored: no TTL, no idle shutdown and no on-complete terminate. I terminated it by hand.

Console output (i-09149847a2c98fe44):

[   33.624628] Out of memory: Killed process 2321 (dnf) total-vm:1229024kB, anon-rss:161520kB ...
[   33.260380] cloud-init[2069]: /etc/spawn/bootstrap-body.sh: line 494:  2321 Killed   dnf install -y acpid 2> /dev/null

The bootstrap body has:

dnf install -y acpid 2>/dev/null || yum install -y acpid 2>/dev/null || true   # OOM kill tolerated
systemctl enable --now acpid                                                    # acpid absent → fails → set -e aborts
...
systemctl start spored                                                          # never reached

The same lines are in the inline bootstrap every current release ships, so this is not specific to #1274. A plain launch of the same type in the same test got past this point (spored heartbeat seen), so the failure depends on memory pressure at that moment.

The fix is being added to #1290:

  • a pre-spored EXIT/ERR safety net that retires the instance through the new self-terminate;
  • spored starts before the optional steps (acpid, MOTD);
  • systemctl enable --now acpid becomes non-fatal.

Activity

  1. scttfrdmn commented on Oct 24, 2026

    @scttfrdmn
    ContributorAuthor

    Fixed by #1290 (7a38162), which ships in the next release:

    • spored now starts before the optional steps (acpid, MOTD);
    • systemctl enable --now acpid is non-fatal;
    • an EXIT/ERR guard retires the instance if the bootstrap exits for any reason before spored is up.

    Confirmed live on a t4g.nano: dnf was OOM-killed installing acpid after spored had started, the boot continued, and spored kept sending heartbeats (results in the #1290 comment).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions