aws / amazon-vpc-cni-k8s

Networking plugin repository for pod networking in Kubernetes using Elastic Network Interfaces on AWS
Apache License 2.0
2.28k stars 742 forks source link

IPAMD fails to start after reboot #2384

Closed joejulian closed 1 year ago

joejulian commented 1 year ago

What happened: When I reboot a worker node the aws-cni pod for that node fails to connect:

Defaulted container "aws-node" out of: aws-node, aws-vpc-cni-init (init)
{"level":"info","ts":"2023-05-12T20:37:22.188Z","caller":"entrypoint.sh","msg":"Validating env variables ..."}
{"level":"info","ts":"2023-05-12T20:37:22.189Z","caller":"entrypoint.sh","msg":"Install CNI binaries.."}
{"level":"info","ts":"2023-05-12T20:37:22.208Z","caller":"entrypoint.sh","msg":"Starting IPAM daemon in the background ... "}
{"level":"info","ts":"2023-05-12T20:37:22.209Z","caller":"entrypoint.sh","msg":"Checking for IPAM connectivity ... "}
{"level":"info","ts":"2023-05-12T20:37:24.215Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"}
[47 duplicate lines deleted]
{"level":"info","ts":"2023-05-12T20:39:00.559Z","caller":"entrypoint.sh","msg":"Retrying waiting for IPAM-D"}

Attach logs

What you expected to happen: I expected the cni to start and function correctly

How to reproduce it (as minimally and precisely as possible):

  1. Spin up an EKS 1.23 cluster using the v1.10.4 cni
  2. Attach workers using the ubuntu-eks/k8s_1.23/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20230430 ami
    • the workers all come up normally, the cni is working
  3. reboot a worker

Anything else we need to know?:

Environment:

jdn5126 commented 1 year ago

@joejulian this indicates an issue in the IPAM daemon. What do the IPAM logs on the node show: /var/log/aws-routed-eni/ipamd.log? And have you tried the latest release, v1.12.6 against this?

joejulian commented 1 year ago

I emailed the debug bundle. I have not tried a different cni version.

jdn5126 commented 1 year ago

Responded via email

joejulian commented 1 year ago

Upgrading to v1.12.6 fixed this.

github-actions[bot] commented 1 year ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.