Skip to content

bug(AL2023): $Base ami created but instance not booting up as networking fails for IMDS calls #2360

@Tavisca-Ashish-Sharma

Description

@Tavisca-Ashish-Sharma

Summary:
On AL2023 (and CIS-hardened) AMIs, nodeadm-config.service is currently installed with Before=cloud-init.service. This causes nodeadm-config to run before cloud-init brings up networking/DHCP, so attempts to reach IMDS (169.254.169.254 / fd00:ec2::254) fail with "Network is unreachable" and node bootstrap fails.

Repro:

  1. Use current amazon-eks-ami AL2023 build (build from repo).
  2. Boot instance in a VPC (no special proxy).
  3. Observe cloud-init logs: repeated HTTPConnectionPool(host='169.254.169.254', ...): Network is unreachable messages.
  4. nodeadm-config.service fails because IMDS and network were not ready.

Root cause:
Unit ordering: nodeadm-config runs before cloud-init and before network-online.target. On AL2023 the network is initialized by cloud-init (and CIS-hardening may delay/alter network startup), so nodeadm-config must wait for network-online.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions