-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
vnet hangs indefinitely on destroy #373
Comments
Hey @tomasquith Thanks for opening this issue :) So that we can investigate this further - would it be possible for you to post a reproducible Terraform Configuration that you're seeing the issue with? Thanks! |
accidentally hit "close and comment" and not "comment" 🤦♂️.. reopened, sorry! |
ping @tomasquith |
I can reproduce exactly the same behaviour on my Terraform stack. I checked on the Azure portal, there is no locks on the VNet, no resources linked.. On my side, I'm using the resource like this :
|
hey @alexandreg19 Would you be able to provide a reproducible Terraform Config where you're seeing this issue? In particular I'd be interested to know if the Virtual Network, Subnets, Network Security Groups or Network Security Rules have the same name? Thanks! |
Hi again @tombuildsstuff , Here my Terraform Config :
At the beginning, the resource_group and virtual_network blocs got both the same name. I changed it, but the issue is still here. I'm running Terraform on version v0.10.7. Thanks for your help. |
Hi @tombuildsstuff , I run the exact same code with two values for
Hope it can help. |
Hi, i'm having the same issue here. My TF content (which is used as a module) and called by another .tf file :
Hopes it helps too. |
``` $ acctests azurerm TestAccAzureRMVirtualNetwork_bug373 === RUN TestAccAzureRMVirtualNetwork_bug373 --- PASS: TestAccAzureRMVirtualNetwork_bug373 (102.89s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 102.911s ```
hey @tomasquith @alexandreg19 @fvillain Sorry for the delayed response here! I've taken a look into this today and have opened #620 which contains a fix for this - which has now been merged. This will go out in the next release - which should be later this week. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Terraform Version
latest core and provider
Affected Resource(s)
Please list the resources as a list, for example:
Expected Behavior
The environment is all destroyed within a reasonable time.
Actual Behavior
Upon destroying my whole environment, the destruction of the vnet hangs indefinitely. There is nothing else in the resource group other than the vnet (the subnets/peerings have been removed)
module.network.virtual_network.azurerm_virtual_network.virtual-network: Still destroying... (ID: /subscriptions/XXXXXX-...rk/virtualNetworks/tom-XXXXXX-vnet, 1h9m11s elapsed)
if I then ctrl c to cancel, unlock the state and plan destroy - I can see null resources (with remote-exec provisioners) and consul keys as well as the network and resource group. These have no dependencies on the vnet.
If I then destroy, it works as intended.
Steps to Reproduce
Unable to reproduce with a simple config
The text was updated successfully, but these errors were encountered: