[Bug] Subnet validation fails on previously valid subnet configuration (<= 0.176) with "Error: all private subnets from [az], that the cluster was originally created on, have been deleted" #7785
Labels
area/managed-nodegroup
EKS Managed Nodegroups
area/nodegroup
kind/bug
priority/important-soon
Ideally to be resolved in time for the next release
What were you trying to accomplish?
I am trying to create new private managed node groups
with eksctl version > 0.176 in an existing VPC with existing subnets.
What happened?
Private node group creation fails when the keys for the existing subnets do not match the names of the availability zones specified in the nodegroups.
This issue happens since eksctl 0.177.
How to reproduce it?
Create a new cluster with eksctl v0.176 and the following configuration (snippet). The cluster uses subnets in an existing VPC:
Install eksctl v0.177 (or newer) and try to add a new node group with the same configuration but a different name.
Logs
Anything else we need to know?
It looks like a new validation was introduced in 00934fd and #7714 which checks if there are (is?) subnets under a given availability zone key:
In our case, subnets are named differently (and at this time we do not have the information which subnet is in which AZ). This has been working properly with eksctl <= 0.176 and broke with eksctl 0.177.
Versions
Working up to eksctl v0.176
Broken since eksctl v0.177
The text was updated successfully, but these errors were encountered: