Skip to content

Nodegroup not deployed with no errors if stack is in ROLLBACK_COMPLETE #4006

@hryamzik

Description

@hryamzik

What were you trying to accomplish?

Redeploy nodegroup that failed to deploy earlier, cloud formation is in ROLLBACK_COMPLETE state.

How to reproduce it?

  1. Create node group with restricted labels using conf:
  - name: test
    instanceType: m5.large
    minSize: 1
    maxSize: 2
    desiredCapacity: 2
    labels:
      role: test
      kubernetes.io/test: ok
  1. It should fail with expected message: AWS::EKS::Nodegroup/ManagedNodeGroup: CREATE_FAILED – "Label cannot contain reserved prefixes [kubernetes.io/, k8s.io/, eks.amazonaws.com/]

  2. Update config to fix labels:

  - name: test
    instanceType: m5.large
    minSize: 1
    maxSize: 2
    desiredCapacity: 2
    labels:
      role: test
      node-role.kubernetes.io/test: ok

What happened?

Node group wasn't updated. No errors thrown, see output below.

Logs

2021-07-22 13:00:13 [ℹ]  eksctl version 0.57.0
2021-07-22 13:00:13 [ℹ]  using region us-east-1
2021-07-22 13:00:24 [ℹ]  nodegroup "services" will use "" [AmazonLinux2/1.18]
2021-07-22 13:00:24 [ℹ]  nodegroup "test" will use "" [AmazonLinux2/1.18]
2021-07-22 13:00:24 [ℹ]  nodegroup "workers" will use "" [AmazonLinux2/1.18]
2021-07-22 13:00:31 [ℹ]  3 existing nodegroup(s) (services,test,workers) will be excluded
2021-07-22 13:00:33 [ℹ]  2 sequential tasks: { fix cluster compatibility, no tasks }
2021-07-22 13:00:33 [ℹ]  checking cluster stack for missing resources
2021-07-22 13:00:36 [ℹ]  cluster stack has all required resources
2021-07-22 13:00:36 [ℹ]  no tasks
2021-07-22 13:00:36 [✔]  created 0 nodegroup(s) in cluster "testcluster"
2021-07-22 13:00:36 [✔]  created 0 managed nodegroup(s) in cluster "testcluster"
2021-07-22 13:00:41 [ℹ]  checking security group configuration for all nodegroups
2021-07-22 13:00:41 [ℹ]  all nodegroups have up-to-date configuration

Anything else we need to know?

Versions

$ eksctl info
eksctl version: 0.57.0
kubectl version: v1.21.2
OS: darwin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions