-
Notifications
You must be signed in to change notification settings - Fork 673
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
VPNServer Route failed timeout #4962
Comments
I solved this issue by adding a 20 minutes delete timeout on each route
|
Looking at the source code, I believe the timeout is missing on the function |
this is the timeout defined for the resourceIBMIsVPNServerRouteDelete method.
It is the same across resources. |
As updated in the internal slack thread, We couldn't reproduce the issue and could see the Routes getting deleted on time. |
Sharing @deepaksibm note
It was indeed intermittent. I added a clause depends_on = [ibm_iam_authorization_policy.secret_group_to_vpn] . I tested several times and i cannot reproduce the issue any more 🙂 The depends-on prevents the IAM authorization from being deleted before the route! Tricky one. Here is the solution.
Additional timeout was not required. |
Community Note
Terraform CLI and Terraform IBM Provider Version
IBM Cloud Terraform Provider Version
1.60.0
Affected Resource(s)
resource "ibm_is_vpn_server_route"
Terraform Configuration Files
Full sample to reproduce`
https://github.com/lionelmace/ibmcloud-utils/tree/master/terraform/vpn
Expected Behavior
VPN Route should be able to delete within 90seconds timeframe.
Actual Behavior
VPN Routes are not able to destroy within 10mins leading a terraform destroy fails.
Steps to Reproduce
terraform int
terraform apply
terraform destroy
The text was updated successfully, but these errors were encountered: