Skip to content

Route reconciliation fails with "expected to receive a single instance only" when multiple instance IDs are passed to describeInstanceBatcher #1351

@unholyFigaro

Description

@unholyFigaro

What happened:
Route reconciliation fails with the error "expected to receive a single instance only" when multiple instance IDs are passed to describeInstanceBatcher.

What you expected to happen:
Route reconciliation should handle multiple instance IDs without failing.

How to reproduce it (as minimally and precisely as possible):

  1. Use AWS cloud-controller-manager with route-based pod networking.
  2. Ensure the route table contains routes pointing to multiple instances.
  3. Route reconciliation fails with:
    "Couldn't reconcile node routes: error listing routes: expected to receive a single instance only, found N".

Anything else we need to know?:
The issue occurs because getInstancesByIDs passes multiple instance IDs to describeInstanceBatcher.DescribeInstances, while the batcher implementation expects exactly one instance ID per request.

Environment:

  • Kubernetes version (use kubectl version): v1.34.1 && v1.35.0
  • Cloud provider or hardware configuration: aws ec2
  • OS (e.g. from /etc/os-release): Amazon Linux 9 / RHEL9-based
  • Kernel (e.g. uname -a): 5.14.0-229.el9.x86_64
  • Install tools: Deckhouse
  • Others: simple-bridge CNI with route-based pod networking

/kind bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions