vultr / terraform-provider-vultr

Terraform Vultr provider
https://www.terraform.io/docs/providers/vultr/
Mozilla Public License 2.0
191 stars 65 forks source link

[BUG] - Failed to delete reserved IPs #348

Open idy opened 1 year ago

idy commented 1 year ago

Describe the bug Failed to remove reserved IPs.

To Reproduce Steps to reproduce the behavior:

  1. Add a reserved IP address with terraform-apply
  2. Remove it from config file and run terraform-apply

Expected behavior The reserved IP removed success.

Screenshots

Error: error destroying Reserved IP (537eb479-6c77-4f21-b9c7-d82663d298f0): {"error":"Unable to detach subnet, please restart your server from the control panel","status":400}

Desktop (please complete the following information where applicable: Terraform v1.4.2 on darwin_arm64

optik-aper commented 1 year ago

It looks like you're attaching the reserved IP to an instance. If you get a chance, it would be helpful to see the config you're using. I think it's just passing the error from API here, so, we might need to add some code to handle removing reserved IPs that are attached to an instance which is being preserved.