eksctl-io / eksctl

The official CLI for Amazon EKS
https://eksctl.io
Other
4.93k stars 1.41k forks source link

[Help] What is the right way to upgrade a nodegroup with different launch template version? #7786

Closed ok512 closed 1 month ago

ok512 commented 5 months ago

eksctl version: 0.179.0

I'm trying to follow doc Note: If you're upgrading a node group that's deployed with a launch template to a new launch template version, add --launch-template-version version-number to the preceding command.

All these commands:

eksctl upgrade nodegroup --kubernetes-version 1.30 --profile tnet-dev --cluster test --name ng1
eksctl upgrade nodegroup --kubernetes-version 1.30 --profile tnet-dev --cluster test --name ng1 --launch-template-version 4
eksctl upgrade nodegroup --launch-template-version 4 --kubernetes-version 1.30 --profile tnet-dev --cluster test --name ng1

show error: [ℹ] waiting for CloudFormation stack "eksctl-test-nodegroup-ng1" Error: error fetching launch template data: operation error EC2: DescribeLaunchTemplateVersions, https response error StatusCode: 400, RequestID: 98c3e445-3160-45e7-8c28-a469a875c5d2, api error InvalidLaunchTemplateId.VersionNotFound: Could not find the specified version 1 for the launch template with ID lt-0f3e2efa769a315f6.

Why and what for eksctl wants version 1 of launch template? The nodegroup uses version 4 and it's default and latest launch template version too.

Am I missing something? 😕

github-actions[bot] commented 5 months ago

Hello ok512 :wave: Thank you for opening an issue in eksctl project. The team will review the issue and aim to respond within 1-5 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

cPu1 commented 5 months ago

@ok512, did you happen to delete the version of the launch template the nodegroup was originally created with? Can you post the output of the following command, redacting any sensitive information?

$ aws ec2 describe-launch-template-versions --launch-template-id lt-0f3e2efa769a315f6
ok512 commented 5 months ago

did you happen to delete the version of the launch template the nodegroup was originally created with? Can you post the output of the following command, redacting any sensitive information?

Yes, because it's not used anywhere. Why would it be a problem for eksctl?

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 months ago

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 5 days with no activity.