Skip to content

IP are assigned to wrong ENI #12

@tunkukhairi-ecvmy

Description

@tunkukhairi-ecvmy

I have a node group that has multiple ENIs attached to it. Some of the ENIs are from the same subnet. From NAD, I specifically mention to use "master":"eth2" which from eni-id eni-qwertyuiop but it assigned the IPs to eth3 eni-asdfghjkl. Both eni in the same node and same subnet.

All data are anonymized to protect confidential info but here's the logs from initcontainer

---Not-working pod---

~# kubectl logs pod-a -c awsipmgmt
{"type":"log","level":"notice","time":"2025-10-15T10:39:37.411131638Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"ebc124","host":"","timezone":"UTC","log":{"msg":"Got InstanceId:  region: ap-southeast-5"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:38.499836175Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"ebc124","host":"","timezone":"UTC","log":{"msg":"Node ENIC: eni-qwertyuiop cidr: 172.1.1.0\/25 subnetID: subnet-zxcvbnm"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:39.194263485Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"ebc124","host":"","timezone":"UTC","log":{"msg":"Node ENIC: eni-asdfghjkl cidr: 172.1.1.0\/25 subnetID: subnet-zxcvbnm"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:39.613308868Z","process":"assign-ip4-ip6[19]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"ebc124","host":"","timezone":"UTC","log":{"msg":"Going to reassign iplist: ['172.1.1.1', '172.1.1.2', '172.1.1.3', '172.1.1.4'] to ENI:eni-asdfghjkl"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:40.274728633Z","process":"assign-ip4-ip6[19]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"ebc124","host":"","timezone":"UTC","log":{"msg":"Finished reassign iplist: ['172.1.1.1', '172.1.1.2', '172.1.1.3', '172.1.1.4'] to ENI:eni-asdfghjkl"}}

This is a working pod with the same deployment and same NAD attached.

---Working pod---

~# kubectl logs pod-b -c awsipmgmt
{"type":"log","level":"notice","time":"2025-10-15T10:39:37.379837429Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"dfg321","host":"","timezone":"UTC","log":{"msg":"Got InstanceId:  region: ap-southeast-5"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:38.520426450Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"dfg321","host":"","timezone":"UTC","log":{"msg":"Node ENIC: eni-asdfghjkl cidr: 172.1.1.0\/25 subnetID: subnet-zxcvbnm"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:39.221270276Z","process":"assign-ip4-ip6[7]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"dfg321","host":"","timezone":"UTC","log":{"msg":"Node ENIC: eni-qwertyuiop cidr: 172.1.1.0\/25 subnetID: subnet-zxcvbnm"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:39.776959273Z","process":"assign-ip4-ip6[19]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"dfg321","host":"","timezone":"UTC","log":{"msg":"Going to reassign iplist: ['172.1.1.1', '172.1.1.2', '172.1.1.3', '172.1.1.4'] to ENI:eni-qwertyuiop"}}
{"type":"log","level":"notice","time":"2025-10-15T10:39:40.461947014Z","process":"assign-ip4-ip6[19]","service":"aws-ip-manager","system":"unknown","neid":"unknown","container":"dfg321","host":"","timezone":"UTC","log":{"msg":"Finished reassign iplist: ['172.1.1.1', '172.1.1.2', '172.1.1.3', '172.1.1.4'] to ENI:eni-qwertyuiop"}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions