Skip to content

bootstrap: acpid install retries with yum after dnf is OOM-killed (AL2023 yum = dnf), which later kills spored and systemd-resolved #1521

Closed

Description

@scttfrdmn

Bug

The Linux bootstrap installs acpid like this (pkg/launcher/bootstrap.go:1729):

if { command -v dnf >/dev/null 2>&1 && dnf install -y acpid 2>/dev/null; } || { command -v yum >/dev/null 2>&1 && yum install -y acpid 2>/dev/null; }; then

On AL2023, yum is dnf. So when dnf install is OOM-killed on a small instance, the || runs the same install again under the name yum. That puts more memory pressure on an instance that just ran out.

Evidence

This happened live on 2026-11-03, on a t4g.nano running AL2023 arm64 (the #1515 egress-proxy test, instance i-0eec9354e21437234).

From cloud-init-output.log:

line 595:  2241 Killed   dnf install -y acpid 2> /dev/null
line 595:  2290 Killed   yum install -y acpid 2> /dev/null

From the journal:

  • cloud-final.service: Unit process 2290 (yum) remains running after unit stopped
  • 20:59:37: the OOM killer took spored: task_memcg=/system.slice/spored.service
  • 20:59:41: yum invoked oom-killer and systemd-resolved was killed

#1274 made the acpid step non-fatal, which kept spored from depending on it. But the doubled install can still take spored and DNS down afterwards, once the step is "done".

Fix

  • Run exactly one package manager, and don't retry with the other once one has started:
    if command -v dnf …; then dnf install …; elif command -v yum …; then yum install …; fi
  • Consider skipping acpid below a memory floor. spawn already has renderSporedMemoryFloorWarning.
  • This is in the published bootstrap body, so it ships through the normal release with sha verification.

#1515 avoids it for the proxy by using a t4g.micro and turning off dnf-makecache.timer (#1518).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:lifecyclearea:sporedbugcomponent:spawn

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions