-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes pod is getting IP assigned to main host interface (eth0, eth1, eth2, etc) - what cause routing issues #1094
Comments
Hi @michalzxc, What do you mean by "pod is getting IP assigned to main host interface"? The first IP on every ENI is ignored by the CNI. Pods with If you could run |
The node I send logs from was spot and it is gone now, I will upload it when I will see it happening again - I saw it like 3 times this week already. |
@mogren Got it
This pod (not hostNetworking:true) got IP of eht0 interface:
aws-cni-support result: |
@michalzxc Thanks a lot! Will take a look at the logs today. |
as per the logs attached As per logs, ENI and IPs are provisioned but completing the setup failed. But ENI is already added to DS only thing missing is adding PrimaryIP to datastore. This line was not executed https://github.com/aws/amazon-vpc-cni-k8s/blob/v1.7.1/pkg/ipamd/ipamd.go#L781
Now when ipamd found that ip pool needs to be increased, it added all the IPs to the Datastore and started allocating the IPs which also included the primary IP of the ENI.
Possible solutions: Ideally we shouldn't add it to DS unless the network is setup completely. |
This has been resolved in #1177 and will be included in the next release. |
I am not sure, if there is suppose to be mechanism what would make it work, but issue can be fixed by hand, by changing host IP to one of the unused ones attached to host:
And that fixed it:
The text was updated successfully, but these errors were encountered: