I've only tested this with the network view, network, and ip_allocation resources, so there may be more resources with similar problems.
The actions
- start an infoblox nios 8.4.4 vmware appliance for testing
- clone https://gitlab.com/adrift/terraform-infoblox
- build the plugin, install to
~/.terraform/plugins
- terraform init
- create a set of resources with a
terraform apply
terraform destroy
- attempt another
terraform apply
Expected outcome
The resources are created, destroyed, and created once again.
Actual outcome
network views are not destroyed
The network view not being destroyed means that your state conflicts with what's actually out there. Any subsequent run whether plan or apply will fail.
ip allocation belongs to the network, which does not get destroyed until the network is.
networks are only moved to the recycle bin
The network only being moved to the recycle bin means that any attempt to create that network will fail as reportedly the network name is already in use.
Knowing this issue we can carefully work around it, but it'd be great to see this resolved by
- truly deleting network views
- running a recycle bin clean when a resource has been moved there as part of delete
I've only tested this with the network view, network, and ip_allocation resources, so there may be more resources with similar problems.
The actions
~/.terraform/pluginsterraform applyterraform destroyterraform applyExpected outcome
The resources are created, destroyed, and created once again.
Actual outcome
network views are not destroyed
The network view not being destroyed means that your state conflicts with what's actually out there. Any subsequent run whether plan or apply will fail.
ip allocation belongs to the network, which does not get destroyed until the network is.
networks are only moved to the recycle bin
The network only being moved to the recycle bin means that any attempt to create that network will fail as reportedly the network name is already in use.
Knowing this issue we can carefully work around it, but it'd be great to see this resolved by