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

Add Delete option in timeouts for ibm_container_vpc_alb resource #2667

Closed
kapild-devops opened this issue May 22, 2021 · 3 comments
Closed
Labels
enhancement service/Kubernetes Service Issues related to Kubernetes Service Issues

Comments

@kapild-devops
Copy link

kapild-devops commented May 22, 2021

hi team,

can you please add delete options in timeouts for ibm_container_vpc_alb resource?

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/container_vpc_alb#timeouts

we faced issue while deleting the subnet but load balancer is taking longer time to delete.

PFB error logs :
while destroying the resource

    "Result": {
        "errors": [
            {
                "code": "subnet_in_use_network_interface_exists",
                "message": "Cannot delete the subnet while it is in use by one or more network interfaces. Please delete the network interface or virtual server instance associated with the network interface 0717-a0af8a66-d198-408c-a593-15ba5ed53957-jvtzh and retry.\n\nThere was a request to delete a subnet, but oneor more network interfaces are using the subnet. The network interfaces must be deleted before this subnet can be deleted.",
                "target": {
                    "name": "id",
                    "type": "parameter",
                    "value": "0717-9d83782e-4bc5-4d52-8c4d-ee033772cb56"
                }
            }
        ],
        "trace": "ca611d50-70f0-47dd-a065-14285e67e717"
    },

Delete option is not supported for now.

Error: Unsupported argument

  on main.tf line 36, in resource "ibm_container_vpc_alb" "alb_zone1":
  36:     delete = "90m"

An argument named "delete" is not expected here.

Thanks,

@hkantare
Copy link
Collaborator

In ibm_container_vpc_alb we don't delete anything we just set back the ID to empty in statefile....

We already have some wait logic on ibm_container_vpc_cluster where we are waiting for load balancer to be deleted along with cluster.

@kdhamecha-conga
Copy link

In ibm_container_vpc_alb we don't delete anything we just set back the ID to empty in statefile....
we faced this issue while the plan reach to destroying the subnet, where loadbalancer is still attached to the subnet or taking more time to delete , so destroy plan fail and only works after some retry.

what is internal wait time for this ?

@kavya498 kavya498 added the service/Kubernetes Service Issues related to Kubernetes Service Issues label May 26, 2021
@kavya498
Copy link
Collaborator

Similar to #2779 and it is been fixed in recent releases..
Kindly, open new issue and tag this for ref if you still encounter this error..

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/Kubernetes Service Issues related to Kubernetes Service Issues
Projects
None yet
Development

No branches or pull requests

4 participants