Skip to content

fix: Fix EC2NodeClass readiness to not stuck in False #7970

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mumoshu
Copy link

@mumoshu mumoshu commented Apr 4, 2025

Fixes #7875

Description

We observed some EC2NodeClasses stuck in Ready=False with message of Failed to detect the cluster CIDR. We believe this is caused by an issue in Karpenter when EKS API failed temporarily, and this PR fixes that.

I noticed this is just another way to fix the same issue the PR #7965 by @AlexeyPetroff trying to solve!

How was this change tested?

The first commit adds a failing test case, and the second commit fixes the implementation to let the test pass.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mumoshu mumoshu requested a review from a team as a code owner April 4, 2025 00:25
@mumoshu mumoshu requested a review from danxwang22 April 4, 2025 00:25
mumoshu added 2 commits April 4, 2025 09:25
We observed some EC2NodeClasses stuck in Ready=False with message of `Failed to detect the cluster CIDR`. We believe this is caused by a bug in Karpenter, and this commit fixes that.

The previous commit adds a failing test to reproduce and the demonstrate the issue, and this commit fixes the implementation.
@mumoshu mumoshu force-pushed the nodeclass-readiness-will-be-back branch from f2242bc to c6c42a7 Compare April 4, 2025 00:25
Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit f2242bc
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67ef26f9cce1bd000883c5bf

Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit c6c42a7
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/67ef27035b917d0008c85b82

@jonathan-innis
Copy link
Contributor

Thanks for opening this @mumoshu! Take a look at the feedback that I gave here: https://github.com/aws/karpenter-provider-aws/pull/7965/files#r2024015633. I think we should move this to the validation controller.

@jonathan-innis jonathan-innis self-assigned this Apr 4, 2025
@jonathan-innis jonathan-innis added lifecycle/stale triage/needs-information Marks that the issue still needs more information to properly triage labels May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale triage/needs-information Marks that the issue still needs more information to properly triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Karpenter doesn't update EC2NodeClass status after Failed to detect the cluster CIDR error
2 participants