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

unknown resource type eks:index:VpcCni #1547

Open
shashiranjan84 opened this issue Dec 20, 2024 · 4 comments
Open

unknown resource type eks:index:VpcCni #1547

shashiranjan84 opened this issue Dec 20, 2024 · 4 comments
Assignees
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Milestone

Comments

@shashiranjan84
Copy link

What happened?

After updating to EKS 3.5 and updating default node group(after setting AMI id), we seeing this error at end of deployment.

 Error: unknown resource type urn:pulumi:main.bob-infra.staging::bob-infra::eks:index:Cluster$eks:index:VpcCni::us-east-1-staging-bob-vpc-cni: Error: unknown resource type urn:pulumi:main.bob-infra.staging::bob-infra::eks:index:Cluster$eks:index:VpcCni::us-east-1-staging-bob-vpc-cni

To give a context, we currently on Kubernetes version 1.29 and trying to upgrade to 1.31. EKS and Kubernetes plugin version are respectively 2.2.1 and 4.8.1, which we also planning to upgrade to latest. So 1st we updated the EKS and K8s plugins to latest and then tried to update the cluster inline with explicit AL2023 NodeAmiId.

Example

const EKS_VERSION = '1.29';
const ami = pulumi.interpolate`/aws/service/eks/optimized-ami/${EKS_VERSION}/amazon-linux-2023/x86_64/nvidia/recommended/image_id`.apply((name) =>
      aws.ssm.getParameter({ name,  }, { async: true, provider: ... }),
    ).apply((result) => result.value);

const cluster = new eks.Cluster(
      `${regionalNamespace}-cluster`,
      {
        name: `${regionalNamespace}`,
        version: EKS_VERSION,
        vpcId: ...,
        privateSubnetIds: ...
        publicSubnetIds: ...,
        enabledClusterLogTypes: ['api', 'audit', 'authenticator'],
        tags: projectTags,
        endpointPrivateAccess: true,
        endpointPublicAccess: true,
        nodeAssociatePublicIpAddress: false,
        providerCredentialOpts: {
          profileName: aws.config.profile,
        },
        roleMappings: [
          ...
        ],
        instanceType: 'g5.2xlarge',
        // gpu: true,
       nodeAmiId: ami,
        nodeRootVolumeSize: 200,
        ...,
      },
      { provider: ... },
    );

Output of pulumi about

CLI          
Version      3.142.0
Go Version   go1.23.3
Go Compiler  gc

Host     
OS       debian
Version  11.7
Arch     x86_64

Backend        
Name           fv-az1490-728
URL            s3://prod-pulumi-state-transcend-io
User           root
Organizations  
Token type     personal

Additional context

Also noticed all addon getting redeployed every time we deploy some changes.

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@shashiranjan84 shashiranjan84 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Dec 20, 2024
@shashiranjan84
Copy link
Author

cc @flostadler

@flostadler
Copy link
Contributor

flostadler commented Dec 23, 2024

Thanks for opening this @shashiranjan84!
EKS v2.2.1 was affected by a bug (#1087) that made it use the latest version of the provider for the VPC CNI resource. This was fixed in v2.7.2.
Can you try upgrading to a more up-to-date version of v2 (e.g. v2.8.1) before going to EKS v3?

@flostadler flostadler added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Dec 23, 2024
@flostadler flostadler assigned flostadler and unassigned flostadler Dec 23, 2024
@shashiranjan84
Copy link
Author

Thanks for opening this @shashiranjan84! EKS v2.2.1 was affected by a bug (#1087) that made it use the latest version of the provider for the VPC CNI resource. This was fixed in v2.7.2. Can you try upgrading to a more up-to-date version of v2 (e.g. v2.8.1) before going to EKS v3?

That not possible we already updated to EKS 3.5.0

@pulumi-bot pulumi-bot added needs-triage Needs attention from the triage team and removed awaiting-feedback Blocked on input from the author labels Dec 23, 2024
@flostadler
Copy link
Contributor

You can try removing the offending resource from state:

pulumi state delete 'urn:pulumi:main.bob-infra.staging::bob-infra::eks:index:Cluster$eks:index:VpcCni::us-east-1-staging-bob-vpc-cni'

After that pulumi up should work. In the meantime I'm gonna try to reproduce this behavior and if necessary update our migration guide.

@flostadler flostadler added awaiting-feedback Blocked on input from the author and removed needs-triage Needs attention from the triage team labels Dec 23, 2024
@flostadler flostadler self-assigned this Jan 7, 2025
@flostadler flostadler added this to the 0.115 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback Blocked on input from the author kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants