Skip to content

[ipam/eni] Wait for ENI interface before CNI ADD route setup - #677

Closed
jaredledvina wants to merge 1 commit into
v1.19-ddfrom
jared.ledvina/dd-eni-ifindex-race
Closed

[ipam/eni] Wait for ENI interface before CNI ADD route setup#677
jaredledvina wants to merge 1 commit into
v1.19-ddfrom
jared.ledvina/dd-eni-ifindex-race

Conversation

@jaredledvina

Copy link
Copy Markdown
Member

Backport of the ENI ifindex-by-MAC race fix onto v1.19-dd. During CNI ADD on ENI IPAM, the plugin resolves the parent interface index by MAC before setting up masquerade reply routing; if the ENI netlink interface has not appeared yet, this silently leaves ParentInterfaceIndex at 0 and breaks IPv4 masquerade routing. This waits (bounded backoff) for the ENI interface to appear before resolving the ifindex and before per-endpoint route setup.

Resolved against the v1.19-dd code structure, where the masquerade ifindex logic lives in plugins/cilium-cni/cmd/endpoint.go rather than cmd.go.

See #675 for full context and review discussion.

Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
(cherry picked from commit fe893a6)
Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant