OpenShift 5 can strand AWS EgressIP addresses after ENI exhaustion
The allocator can retain an address under a failed object, blocking reuse until operators free interface capacity and clear the stale owner.
OpenShift 5 can accept an EgressIP assignment for an AWS worker even when the node’s elastic network interface has no IPv4 slots left, according to a newly published Red Hat operations note. The cloud-side assignment then fails, but the OpenShift allocator can continue to treat the address as owned by the failed object.
The Red Hat Customer Portal article, updated November 16, documents the failure pattern for OpenShift Container Platform 5 with OVN-Kubernetes on AWS. Its public summary includes the observable status and event data; the full solution is subscriber-exclusive.
How the failure presents
When the allocator selects a node without remaining ENI address capacity, AWS rejects the request with PrivateIpAddressLimitExceeded. The corresponding CloudPrivateIPConfig reports Assigned=False with reason CloudResponseError, while the new EgressIP remains without status.
OpenShift also emits an UnsupportedRequest warning saying the requested address is already allocated to the older EgressIP object. The cloud-network-config-controller retries, but the assignment cannot succeed until an IPv4 slot becomes available on the interface.
Deleting and recreating the new EgressIP with the same address does not resolve the collision while the older failed object still exists. Red Hat says the allocator retains the address under that older EgressIP name.
Capacity is the first diagnostic
Red Hat’s tested topology used one ENI per worker and one worker per subnet. An m6i.xlarge worker on a /19 subnet reported an IPv4 EgressIP capacity of 14 in the cloud.network.openshift.io/egress-ipconfig node annotation.
That annotation gives platform teams a cluster-side signal to compare with the AWS error before cycling objects. The important distinction is between an address that is merely cached under a failed owner and an interface that still lacks the capacity required to make any retry succeed.
Red Hat notes that the same pattern can occur on other cloud platforms when CloudPrivateIPConfig assignments are constrained by network-interface address capacity.
What operators should check
When a new EgressIP has no status, teams should inspect its events, the related CloudPrivateIPConfig and the node’s advertised EgressIP capacity. Freeing interface capacity is a prerequisite; object recreation alone is ineffective while the earlier owner remains and the underlying ENI limit is unchanged.
sources
- EgressIP allocation beyond AWS ENI IPv4 capacity on OCP 5access.redhat.com
comments · 0