F5Networks / f5-azure-arm-templates

Azure Resource Manager Templates for quickly deploying BIG-IP services in Azure
84 stars 118 forks source link

deployment works, but terraform will never come back + destroy issue #101

Closed rabru closed 6 years ago

rabru commented 6 years ago

Description

If I use the template within terraform, this will do the deployment as expected, but terraform will never come back:

azurerm_template_deployment.bigip: Still creating... (24m0s elapsed)
azurerm_template_deployment.bigip: Still creating... (24m10s elapsed)
azurerm_template_deployment.bigip: Still creating... (24m20s elapsed)
azurerm_template_deployment.bigip: Still creating... (24m30s elapsed)
azurerm_template_deployment.bigip: Still creating... (24m40s elapsed)

Alfter changing deployment_mode = "Complete" to deployment_mode = "Incremental" It works fine:

azurerm_template_deployment.bigip: Still creating... (8m40s elapsed)
azurerm_template_deployment.bigip: Still creating... (8m50s elapsed)
azurerm_template_deployment.bigip: Still creating... (9m0s elapsed)
azurerm_template_deployment.bigip: Creation complete after 9m6s (ID: /subscriptions/3f2792ab-041b-81e9-24a3-...osoft.Resources/deployments/bigip-temp)

Is there a specific reason to use Complete? Can we change this to Incremental by default?

Additional I want to mention, that the destruction still doesn't work. I does something, but the VE didn't get removed:

azurerm_template_deployment.bigip: Destroying... (ID: /subscriptions/3f2792ab-041b-81e9-24a3-...osoft.Resources/deployments/bigip-temp)
azurerm_template_deployment.bigip: Still destroying... (ID: /subscriptions/3f2792ab-041b-81e9-24a3-...osoft.Resources/deployments/bigip-temp, 10s elapsed)
azurerm_template_deployment.bigip: Still destroying... (ID: /subscriptions/3f2792ab-041b-81e9-24a3-...osoft.Resources/deployments/bigip-temp, 20s elapsed)
azurerm_template_deployment.bigip: Still destroying... (ID: /subscriptions/3f2792ab-041b-81e9-24a3-...osoft.Resources/deployments/bigip-temp, 30s elapsed)
azurerm_template_deployment.bigip: Destruction complete after 34s

Is it possible to implement a destructor part as well in the arm template to get this working? I am not sure, if this is an arm template or terraform issue, or if this is in principle not possible.

Thanks

Template

I use the following template with version 5.5.0.0 https://github.com/F5Networks/f5-azure-arm-templates/blob/master/supported/standalone/3nic/existing-stack/byol/azuredeploy.json

Severity Level

Severity: 4

rabru commented 6 years ago

The deployment_mode setting is part of the terraform setting and not part of the arm template. Thats why I close this one.