-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
KEv2 clusters imported using the Rancher client have their config improperly rewritten #36128
Comments
I fixed this issue with direction from @thedadams. If a I opened three PRs to fix each KEv2 operator and three more PRs to fix code in the terraform provider and bump the operator and crd versions in Fixes
Integration PRs |
Testing templateRoot causeUnnecessary What was fixed, or what changes have occurred
Areas or cases that should be testedTest importing an EKS and AKS cluster into Rancher using terraform (GKE didn't actually have the bug but did receive code updates)
EKS terraform config
AKS terraform config
What areas could experience regressions ?KEv2 provider import and cluster provisioning. Are the repro steps accurate/minimal ?Yes. |
Test cases to validate:
|
Test Environment:Rancher version: v2.6-head Downstream cluster type: EKS v2 cluster Testing:Tested this issue with the following scenarios:
Result |
@timhaneunsoo I was unable to reproduce the specific error that you showed above. I did, however, test importing an EKS cluster on v2.6-head run on a DO node, and ran into an intermittent issue that I've seen before where the UI hangs with This is my terraform config
Here's the result of trying to import EKS ablender-eks-test The mgmt cluster shows This means node groups in EKS will not get deleted on import. The node group for my cluster is also still active. @kinarashah and I believe this issue is fixed. I will open a new GitHub issue for the error I saw on 2.6-head. This issue can be retested. |
Here's the new GitHub issue #36700 that blocked my EKS import when I replicated the QA tests. To verify the fix for this issue, check the mgmt cluster yaml in the Rancher UI and verify that |
Rancher Server Setup
Information about the Cluster
Describe the bug
If a KEv2 cluster is imported using the Rancher client (like with terraform), then the config will be improperly applied. For example, importing an EKS cluster with terraform while leaving out any mention of node groups (which is proper) will end up deleting all the node groups from the EKS cluster when it is imported into Rancher.
To Reproduce
Use the terraform provider to import an EKS cluster. Do not specify any node groups in the terraform config.
Result
All the node groups of the EKS cluster will be deleted after the EKS cluster is imported.
Expected Result
The cluster should be imported and not updated at all in EKS.
Additional context
The underlying issue here is that the slice types in the KEv2 structs have the struct tag
norman:pointer
. This is improper because a slice type is already a pointer.To fix this:
go generate
in Rancher.After Rancher is updated, the terraform provider and the CLI also should be updated.
rancher/terraform-provider-rancher2#800
SURE-3842
SURE-3833
The text was updated successfully, but these errors were encountered: