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

KUBE-216 ensure IAM resources exist during cluster disconnect #57

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

furkhat
Copy link
Contributor

@furkhat furkhat commented Apr 11, 2024

Before azurerm_*, azuread_* and castai_aks_cluster destroyed simultaneously.

�[0m�[1mmodule.castai-aks-cluster.null_resource.wait_for_cluster[0]: Destroying... [id=3780274727434240189]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.null_resource.wait_for_cluster[0]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_spot_handler: Destroying... [id=castai-spot-handler]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_pod_pinner: Destroying... [id=castai-pod-pinner]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_cluster_controller: Destroying... [id=cluster-controller]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_kvisor: Destroying... [id=castai-kvisor]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration_default.this: Destroying... [id=0e4d5125-f005-4f6b-baab-bbf93bf45936]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["default_by_castai"]: Destroying... [id=default-by-castai]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["spot_tmpl"]: Destroying... [id=spot_tmpl]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration_default.this: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["default_by_castai"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["spot_tmpl"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["test_node_config"]: Destroying... [id=8b413096-2741-4e61-b19b-dcbb99832d3c]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_autoscaler.castai_autoscaler_policies: Destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["default"]: Destroying... [id=0e4d5125-f005-4f6b-baab-bbf93bf45936]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["default"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_autoscaler.castai_autoscaler_policies: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_evictor: Destroying... [id=castai-evictor]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["test_node_config"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_resource_group: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104/providers/Microsoft.Authorization/roleAssignments/2d4de9d7-a070-9034-00e9-92dc0d8183f5]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_node_resource_group: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104-ng/providers/Microsoft.Authorization/roleAssignments/48a19287-228c-ef43-6675-515b5871bb56]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_spot_handler: Destruction complete after 4s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_resource_group: Destruction complete after 3s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_node_resource_group: Destruction complete after 3s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/providers/Microsoft.Authorization/roleDefinitions/4066be1f-f4da-d533-7975-69487bc55709|/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Destroying... [id=6c9a8672-eddb-4bc0-91b1-b460f6c2ca8d]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_pod_pinner: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_kvisor: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_cluster_controller: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_evictor: Destruction complete after 7s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_agent: Destroying... [id=castai-agent]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_agent: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Still destroying... [id=6c9a8672-eddb-4bc0-91b1-b460f6c2ca8d, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 10s elapsed]�[0m�[0m

With PR changes it gets linear

�[0m�[1mmodule.castai-aks-cluster.null_resource.wait_for_cluster[0]: Destroying... [id=4809799034211303495]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_spot_handler: Destroying... [id=castai-spot-handler]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.null_resource.wait_for_cluster[0]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_pod_pinner: Destroying... [id=castai-pod-pinner]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_kvisor: Destroying... [id=castai-kvisor]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_cluster_controller: Destroying... [id=cluster-controller]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration_default.this: Destroying... [id=0e4d5125-f005-4f6b-baab-bbf93bf45936]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration_default.this: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["default_by_castai"]: Destroying... [id=default-by-castai]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["spot_tmpl"]: Destroying... [id=spot_tmpl]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["default_by_castai"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_template.this["spot_tmpl"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_autoscaler.castai_autoscaler_policies: Destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["default"]: Destroying... [id=0e4d5125-f005-4f6b-baab-bbf93bf45936]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["test_node_config"]: Destroying... [id=d4429b6a-a993-46ed-bb72-9a47cbdda2e4]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["default"]: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_autoscaler.castai_autoscaler_policies: Destruction complete after 0s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_evictor: Destroying... [id=castai-evictor]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_node_configuration.this["test_node_config"]: Destruction complete after 1s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_spot_handler: Destruction complete after 4s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_pod_pinner: Destruction complete after 7s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_kvisor: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_cluster_controller: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_evictor: Destruction complete after 7s�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_agent: Destroying... [id=castai-agent]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.helm_release.castai_agent: Destruction complete after 8s�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 1m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 2m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 3m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Still destroying... [id=066a1783-ddd5-4d01-a0ed-598fca69e3b7, 4m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.castai_aks_cluster.castai_cluster: Destruction complete after 4m50s�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application_password.castai: Destroying... [id=8eb6b696-0e61-4de4-904a-e39dfbcbf374/password/6ffe6f2c-f0fb-4cde-b063-a3f8b26fe3d6]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_resource_group: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104/providers/Microsoft.Authorization/roleAssignments/a3b441be-011e-aacb-d9a0-fdfc347ae69e]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_node_resource_group: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104-ng/providers/Microsoft.Authorization/roleAssignments/12e75652-56d3-32fb-f57b-877ed2b7f5e2]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_node_resource_group: Destruction complete after 4s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_assignment.castai_resource_group: Destruction complete after 4s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/providers/Microsoft.Authorization/roleDefinitions/4591076b-0e2f-07ed-70b5-b8a27cfef307|/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Destroying... [id=dd7b0fee-e44f-4edf-aa68-821a865a7137]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application_password.castai: Still destroying... [id=8eb6b696-0e61-4de4-904a-e39dfbcbf374/pa...d/6ffe6f2c-f0fb-4cde-b063-a3f8b26fe3d6, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Still destroying... [id=dd7b0fee-e44f-4edf-aa68-821a865a7137, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application_password.castai: Still destroying... [id=8eb6b696-0e61-4de4-904a-e39dfbcbf374/pa...d/6ffe6f2c-f0fb-4cde-b063-a3f8b26fe3d6, 20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application_password.castai: Destruction complete after 22s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Still destroying... [id=dd7b0fee-e44f-4edf-aa68-821a865a7137, 20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_service_principal.castai: Destruction complete after 22s�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application.castai: Destroying... [id=/applications/8eb6b696-0e61-4de4-904a-e39dfbcbf374]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application.castai: Still destroying... [id=/applications/8eb6b696-0e61-4de4-904a-e39dfbcbf374, 10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application.castai: Still destroying... [id=/applications/8eb6b696-0e61-4de4-904a-e39dfbcbf374, 20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azuread_application.castai: Destruction complete after 21s�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 1m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m20s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m30s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m40s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 2m50s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 3m0s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...66e90ccea/resourceGroups/furkhatk-1104, 3m10s elapsed]�[0m�[0m
�[0m�[1mmodule.castai-aks-cluster.azurerm_role_definition.castai: Destruction complete after 3m20s�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104/providers/Microsoft.ContainerService/managedClusters/furkhatk-1104]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 10s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 20s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 30s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 40s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 50s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m0s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m10s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m20s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m30s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m40s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 1m50s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m0s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m10s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m20s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m30s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m40s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 2m50s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 3m0s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 3m10s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...rService/managedClusters/furkhatk-1104, 3m20s elapsed]�[0m�[0m
�[0m�[1mazurerm_kubernetes_cluster.this: Destruction complete after 3m26s�[0m
�[0m�[1mazurerm_subnet.internal: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104/providers/Microsoft.Network/virtualNetworks/furkhatk-1104-network/subnets/internal]�[0m�[0m
�[0m�[1mazurerm_subnet.internal: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-...furkhatk-1104-network/subnets/internal, 10s elapsed]�[0m�[0m
�[0m�[1mazurerm_subnet.internal: Destruction complete after 11s�[0m
�[0m�[1mazurerm_virtual_network.this: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104/providers/Microsoft.Network/virtualNetworks/furkhatk-1104-network]�[0m�[0m
�[0m�[1mazurerm_virtual_network.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-.../virtualNetworks/furkhatk-1104-network, 10s elapsed]�[0m�[0m
�[0m�[1mazurerm_virtual_network.this: Destruction complete after 11s�[0m
�[0m�[1mazurerm_resource_group.this: Destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 10s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 20s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 30s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 40s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 50s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 1m0s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Still destroying... [id=/subscriptions/697e39d3-4b01-469d-b330-75266e90ccea/resourceGroups/furkhatk-1104, 1m10s elapsed]�[0m�[0m
�[0m�[1mazurerm_resource_group.this: Destruction complete after 1m20s�[0m
�[33m╷�[0m�[0m
�[33m│�[0m �[0m�[1m�[33mWarning: �[0m�[0m�[1mSkipping delete of "default-by-castai" node template�[0m
�[33m│�[0m �[0m
�[33m│�[0m �[0m�[0mDefault node templates cannot be deleted from CAST.ai. If you want to autoscaler to stop considering this node template, you can disable it (either from UI or by setting `is_enabled` flag to false).
�[33m╵�[0m�[0m
�[0m�[1m�[32m
Destroy complete! Resources: 24 destroyed.
�[0m

@furkhat furkhat requested a review from a team as a code owner April 11, 2024 18:09
@furkhat furkhat changed the title ensure IAM resources exist during cluster disconnect KUBE-216 ensure IAM resources exist during cluster disconnect Apr 11, 2024
@furkhat furkhat merged commit 8e7b73a into main Apr 12, 2024
1 check passed
@furkhat furkhat deleted the iam-deleted-after-cluster-disconnect branch April 12, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants