Skip to content
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

(aws-eks): nodegroup already exists when re-sizing a node #26931

Closed
juweeks opened this issue Aug 30, 2023 · 3 comments
Closed

(aws-eks): nodegroup already exists when re-sizing a node #26931

juweeks opened this issue Aug 30, 2023 · 3 comments
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. effort/medium Medium work item – several days of effort p2

Comments

@juweeks
Copy link

juweeks commented Aug 30, 2023

Describe the bug

trying to resize nodes in a nodegroup and get a cloudformation failure saying that the nodegroup already exists. seems it's trying to replace the nodegroup itself.

Untitled

Expected Behavior

resized nodes in a nodegroup

Current Behavior

deployment failure

11:24:19 PM | UPDATE_FAILED        | AWS::EKS::Nodegroup                      | eksclusterworkers
Resource handler returned message: "NodeGroup already exists with name workers and cluster name mycluster (Service: Eks, Status Code: 409, Request ID: 11b219b7-c960-4ad1-a645-e6b4
cfe049ec)" (RequestToken: e712139f-280f-0b53-57cb-6798386d48b6, HandlerErrorCode: AlreadyExists)

Reproduction Steps

  1. deploy an eks nodegroup (say c5.large)
  2. re-deploy nodegroup with different size instance (say, t3a.medium)

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.91.0 (build eea12ea)

Framework Version

2.91.0

Node.js Version

20.5.1

OS

Mac 13.4.1 (Ventura)

Language

Python

Language Version

Python (3.9.4)

Other information

No response

@juweeks juweeks added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 30, 2023
@github-actions github-actions bot added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Aug 30, 2023
@pahud
Copy link
Contributor

pahud commented Aug 30, 2023

If you update the instance type of the nodegroup, this will trigger cloudformation resource update replacement, which means new NG with exactly the same name will be created before the old one being destroyed hence the error ""NodeGroup already exists with name workers and cluster name mycluster ".

I think you will need to update the nodegroup name as well to avoid this or just leave the name undefined.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Aug 30, 2023
@juweeks
Copy link
Author

juweeks commented Aug 30, 2023

k. thanks.

@juweeks juweeks closed this as completed Aug 30, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. effort/medium Medium work item – several days of effort p2
Projects
None yet
Development

No branches or pull requests

2 participants