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

DeleteVPNServerWithContext failure occurring when attempting to destroy using ibm_is_vpn_server #4722

Closed
ocofaigh opened this issue Jul 28, 2023 · 2 comments · Fixed by #4758
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@ocofaigh
Copy link
Contributor

ocofaigh commented Jul 28, 2023

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

Terraform v1.5.4
on darwin_amd64

  • provider registry.terraform.io/ibm-cloud/ibm v1.54.0

Affected Resource(s)

  • ibm_is_vpn_server

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

resource "ibm_is_vpn_server" "vpn" {
  certificate_crn = var.server_cert_crn
  client_authentication {
    method            = var.client_auth_methods
    identity_provider = var.client_auth_methods == "username" ? "iam" : null
  }
  client_idle_timeout    = var.client_idle_timeout
  client_ip_pool         = var.client_ip_pool
  client_dns_server_ips  = var.client_dns_server_ips
  enable_split_tunneling = var.enable_split_tunneling
  name                   = var.vpn_gateway_name
  subnets                = local.subnet_ids
  resource_group         = var.resource_group_id
}

Debug Output

trace.log

Panic Output

Expected Behavior

Destroy should not error

Actual Behavior

Destroy fails with:
The provided If-Match 'W/a73da6b9d89df0cf5247fe9e80ecd8c63cc496dee1bf8fc92355b383c527bd68' value does not match the current ETag value of the VPN server 'W/4b592fc271bd220031b1c13e3b2517b1c7bb0c1fb94c43bc2ec9fd79e256a185'.

See full trace log above

Steps to Reproduce

  1. terraform destroy

Important Factoids

On retry the destroy usually passes, so probably some race condition?

References

Some further internal discussions on this in #ibmcloud-vpn

  • #0000
@ocofaigh
Copy link
Contributor Author

PR -> ibm-vpc#287

@ocofaigh
Copy link
Contributor Author

ocofaigh commented Aug 22, 2023

Looks like previous PR was closed and replaced with #4758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
1 participant