Files
floci/src/test/java
Sam Fakhreddine 5648be79c4 fix(ec2): let dnf swap curl-minimal for curl when installing the IMDS proxy (#3284)
public.ecr.aws/amazonlinux/amazonlinux:2023, the fallback image
AmiImageResolver uses for any unrecognized AMI ID, ships curl-minimal by
default. metadataProxyInstallCommand()'s dnf branch asked for the full
curl package alongside iproute and socat; curl and curl-minimal both
provide /usr/bin/curl and can't coexist, so dnf aborted the whole
transaction on that conflict. iproute and socat never installed either,
even though neither of them conflicts with anything.

The failure was only ever logged as a WARN by Ec2ContainerManager and the
instance still reported running, so a caller had no signal the link-local
IMDS endpoint was dead. Reproduced against the real image: dnf reported
dozens of "package curl-minimal-... conflicts with curl provided by
curl-..." lines for every curl-minimal version in the repo.

--allowerasing lets dnf swap curl-minimal for curl instead of aborting.

Closes floci-io/floci#3281
2026-09-14 09:58:45 -04:00
..