Comments (6)
@jorgemoralespou I believe the stated bug is not emanating from TMC terraform provider, as its also seen when you do delete operation from TMC UI. I see an internal VMware bug report (OLYMP-33128) on EKS/Auth team to ensure they cleanup the said EC2 ELB resource when delete call is made.
from terraform-provider-tanzu-mission-control.
I'm no engineer, but looking at the code, it seems that on creation, the cluster is attached and the required k8s manifests installed on the cluster (https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/main/internal/resources/cluster/resource_cluster.go#L343-L362) but on deletion, no similar approach is taken, but rather delegating to TMC deletion (https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/main/internal/resources/cluster/resource_cluster.go#L463) which seems to call the TMC API (https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/main/internal/client/cluster/cluster_resource.go#L74-L92). If the operation fails, the message is concerning (https://github.com/vmware/terraform-provider-tanzu-mission-control/blob/main/internal/resources/cluster/resource_cluster.go#L468-L469) as it points to https://docs.vmware.com/en/VMware-Tanzu-Mission-Control/services/tanzumc-using/GUID-3061A796-CA3D-4354-A0B7-19F50F2617CE.html where it's not specified how to delete the pinniped svc that creates the ELB.
from terraform-provider-tanzu-mission-control.
@jorgemoralespou not sure I completely understand what steps you took- did you detatch the cluster from TMC and then delete it? If it had been detached, do you mean that you deleted it manually in EKS, not using terraform?
from terraform-provider-tanzu-mission-control.
No, terraform does create with VPC and EKS module, then tanzu-mission-control provider does the attach. On destroy, TMC provider does the de-attach, and TF EKS module does the cluster deletion and then VPC deletion. At this point, VPC can not be deleted as there's referenced resources that had not been cleared up.
We pivoted from using TMC provider creating EKS cluster to using it to Attach, as we expected detaching would remove the k8s resources that create ELB (pinniped). This has not been the case.
We're considering now not using TMC at all for our cluster management, since it gives us more problems in automation than expected and desired.
from terraform-provider-tanzu-mission-control.
The TMC engineering team recently updated the Cloud Formation template which creates permissions used by TMC to lifecycle manage EKS clusters. This change added loadbalancing permissions including DescribeLoadBalancers, DescribeTags and DeleteLoadBalancer. This change was done in order to fix an issue where cleaning up EKS clusters could leave behind loadbalancers in AWS accounts. You may notice that credentials become INVALID, and will want you to update your permission template, which will return your credentials to a VALID state. While credentials are invalid, it will prevent you from making new lifecycle operations on your EKS clusters, but has no effect on the state of your clusters.
Please follow these steps to update your credential permissions : https://docs.vmware.com/en/VMware-Tanzu-Mission-Control/services/tanzumc-using/GUID-E64C94C6-447B-47E3-BB8A-8D300F4A6512.html
@jorgemoralespou : EKS team has fixed a bug for "Delete pinniped created load balancer when deleting EKS cluster" - OLYMP-39798. So can we confirm the issue report again, as the fix (OLYMP-39798) is live and can you please try with said changes?
from terraform-provider-tanzu-mission-control.
Closing issue - as we believe it was fixed by TMC EKS and users are requested to ensure credential permissions are as outlined in earlier comment.
from terraform-provider-tanzu-mission-control.
Related Issues (20)
- EKS Cluster Deletion Deletes Node Pool, but not Cluster HOT 5
- EKS Cluster Ready Wait Timeout should default to 30m, but is actually 3m HOT 1
- EKS Credential Resource is tracking label "tmc.cloud.vmware.com/cred-cloudformation-key" HOT 5
- Cannot provision TKG workload clusters with TKG 2.2 HOT 3
- Adding EKS Nodepool reports error, but really succeds HOT 2
- Can't create cluster with vSphere v8.0 due to missing "ClusterClass" HOT 3
- `ready_wait_timeout` is not respected for EKS anymore. HOT 2
- Network Policies require to_pod_labels which should be optional HOT 2
- TMC Rate Limiting issue HOT 3
- Unable to use K8s Service account as role binding subject HOT 1
- Unable to scale node pool HOT 3
- Unable to update or destroy a terraform when utilizing execution_cmd. HOT 9
- Cluster creation does not wait for TMC components to be healthy HOT 2
- Fully Support for Tanzu Package HOT 2
- Upgrading workload cluster failures HOT 9
- Issue modifying spec.cluster_group_name HOT 8
- Data inventory fields are mismatched in policy template
- panic: runtime error: invalid memory address or nil pointer dereference
- tanzu-mission-control_tanzu_kubernetes_cluster fails with error "Couldn't read TKG cluster"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-tanzu-mission-control.