OpenShift 5’s safer EgressIP path can delay the first connection
A startup-time race drops the first SYN rather than leaking a pod address, which can trip applications configured with sub-second connect timeouts.
OpenShift 5 can add roughly one second to a pod’s first outbound TCP connection when an EgressIP uses a secondary host interface, according to a new Red Hat operations note. The delay is the visible result of a security correction: the platform drops a packet that arrives before its source-network-address-translation rule exists instead of allowing the packet to leave with the pod address.
The Red Hat Customer Portal article, updated November 16, describes a narrow startup-time race in OpenShift Container Platform 5.0. The public summary is detailed, although the full solution is subscriber-exclusive.
What happens at pod startup
A pod or init container can try to connect externally immediately after it starts. If the pod’s EgressIP is hosted on a secondary interface, its first packet may reach the egress node before OVN-Kubernetes has programmed the corresponding source NAT entry.
OpenShift 5’s protection rule drops that packet. Red Hat says it does not leave the node carrying the pod IP. A TCP client then retransmits the initial SYN after its first retransmission timeout, making the connection appear about one second slower.
That behavior matters for applications with a connect timeout shorter than roughly one second. Such an application can report a failure even though the EgressIP path is functioning and the next connection attempt would succeed.
Why OpenShift 5 behaves differently
Red Hat contrasts the result with OpenShift 4 releases that used an older iptables source-NAT chain. In the same timing window, those releases could allow the packet to leave with the pod IP. The OpenShift 5 behavior is the fix for that address leak, tracked as OCPBUGS-65865.
The verified environment used OpenShift 5.0.0, Kubernetes 1.36.5 and OVN-Kubernetes, with the EgressIP assigned to a secondary host network interface configured through the NMState Operator. Red Hat tested on vSphere but notes that OpenShift 5 documentation lists bare metal as the supported platform for EgressIP on secondary host networks; teams should confirm support before using the configuration on vSphere in production.
What operators should check
Platform teams using this network pattern should inspect application connect timeouts before treating a startup-only failure as a broken EgressIP route. Raising a sub-second timeout or adding bounded retry behavior may accommodate the initial retransmission, but teams should validate that change against their own latency and failure budgets rather than masking persistent connection problems.
sources
- EgressIP SNAT timing for connections started immediately in OCP 5.0access.redhat.com
comments · 0