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

[Bug] eksctl delete cluster errors with: panic: send on closed channel #7177

Closed
lucasrod16 opened this issue Oct 13, 2023 · 1 comment · Fixed by #7217
Closed

[Bug] eksctl delete cluster errors with: panic: send on closed channel #7177

lucasrod16 opened this issue Oct 13, 2023 · 1 comment · Fixed by #7217
Labels

Comments

@lucasrod16
Copy link

lucasrod16 commented Oct 13, 2023

What were you trying to accomplish?

Delete an EKS cluster using eksctl version v0.162.0 and v0.161.0

What happened?

eksctl delete cluster command produced the following error:

     2023-10-13 18:52:39 [ℹ]  deleted serviceaccount "kube-system/aws-node"

     2023-10-13 18:52:40 [ℹ]  will delete stack "eksctl-zarf-init-aws-private-test-addon-aws-ebs-csi-driver"

     2023-10-13 18:52:40 [ℹ]  waiting for stack "eksctl-zarf-init-aws-private-test-addon-aws-ebs-csi-driver" to get deleted

     2023-10-13 18:52:40 [ℹ]  waiting for CloudFormation stack "eksctl-zarf-init-aws-private-test-addon-aws-ebs-csi-driver"

     2023-10-13 18:52:40 [ℹ]  will delete stack "eksctl-zarf-init-aws-private-test-cluster"

     2023-10-13 18:52:40 [ℹ]  waiting for stack "eksctl-zarf-init-aws-private-test-cluster" to get deleted

     2023-10-13 18:52:40 [ℹ]  waiting for CloudFormation stack "eksctl-zarf-init-aws-private-test-cluster"

     2023-10-13 18:53:10 [ℹ]  waiting for CloudFormation stack "eksctl-zarf-init-aws-private-test-addon-aws-ebs-csi-driver"

     panic: send on closed channel
     panic: close of closed channel

goroutine 889 [running]:
github.com/weaveworks/eksctl/pkg/cfn/manager.(*StackCollection).waitUntilStackIsDeleted(0xc00046b650?, {0x64c9268?, 0xc000078158?}, 0x860ea6?, 0xc000747e00)
	github.com/weaveworks/eksctl/pkg/cfn/manager/waiters.go:119
      +0xb5
created by github.com/weaveworks/eksctl/pkg/cfn/manager.(*StackCollection).DeleteStackBySpecSync
	github.com/weaveworks/eksctl/pkg/cfn/manager/api.go:595 +0x158

Downgraded to v0.161.0 and got the same error. Downgrading to v0.160.0 resolved the issue

How to reproduce it?

  1. Create a config file:
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: zarf-init-aws-private-test
  region: us-east-1
  version: 1.27

# Specify AZs to avoid insufficient capacity error in us-east-1e AZ: https://github.com/eksctl-io/eksctl/issues/3816
availabilityZones:
  - us-east-1a
  - us-east-1d

iam:
  withOIDC: true

addons:
  - name: aws-ebs-csi-driver
    version: v1.21.0-eksbuild.1
    attachPolicyARNs:
      - arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy

managedNodeGroups:
- instanceType: t3.small
  name: zarf-init-aws-private-test-ng
  minSize: 3
  maxSize: 6
  spot: true
  1. Download eksctl binary for Darwin arm64 or Linux amd64 (v0.161.0 or v0.162.0)

  2. Create a cluster

eksctl create cluster -f eks.yaml

  1. Delete the cluster

eksctl delete cluster -f eks.yaml --disable-nodegroup-eviction --wait

Anything else we need to know?

Using a downloaded binary from github releases. Error occurred on both Darwin arm64 (M1 Mac) and Linux amd64 (Ubuntu 22.04.3 LTS, GitHub Actions runner)

Versions

$ eksctl info

eksctl version: 0.162.0-dev+06acd0c7b.2023-10-13T10:55:30Z
kubectl version: v1.28.2
OS: darwin
@lucasrod16 lucasrod16 changed the title [Bug] eksctl delete cluster errors with: panic: send on closed channel [Bug] eksctl delete cluster errors with: 'panic: send on closed channel' Oct 13, 2023
@github-actions
Copy link
Contributor

Hello lucasrod16 👋 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

@lucasrod16 lucasrod16 changed the title [Bug] eksctl delete cluster errors with: 'panic: send on closed channel' [Bug] eksctl delete cluster errors with: panic: send on closed channel Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant