eks-cluster-upgrade: Bug: Error occurred while upgrading Node Group in EC2 instance created through Karpenter
Expected Behaviour
I tried to upgrade via eksupgrade CLI from 1.25 to 1.26.
Unfortunately, I’ve got an error about checking node group stage. I created EKS Cluster via Terraform and there’s no issues about it.
And the instance where the error occurred is an instance created through Karpenter.
As far as I know, Karpenter doesn’t generate nodes via ASG, do I need an ASG name to use the eksupgrade CLI ?
Please let me know what’s the best way to upgrade EKS Cluster that in using Karpenter via eksupgrade CLI.
Current Behaviour
Code snippet
eksupgrade --force <CLUSTER_NAME> 1.26 ap-northeast-2
Possible Solution
No response
Steps to Reproduce
eksupgrade --force <CLUSTER_NAME> 1.26 ap-northeast-2
Amazon EKS upgrade version
1.26
Python runtime version
3.11
Packaging format used
PyPi
Debugging logs
i-0f8bafc14f3d4bc9c cannot be upgraded because the cluster version is not compatible with the node version
Error occurred while checking node group details - Error: cannot access local variable 'autoscale_group_name' where it is not associated with a value
Post flight unsuccessful because of the following errors: ["Error occurred while checking node group details cannot access local variable 'autoscale_group_name' where it is not associated with a value"]
Post flight check for cluster <CLUSTER_NAME> failed after it upgraded
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (4 by maintainers)
@bryantbiggs, I appreciate your reply. I totally understood what you’re saying and I’m looking forward to develop feature to upgrade smoothly Karpenter nodes.