Skip to content

Resources are not truly destroyed upon destroy #57

@gravcat

Description

@gravcat

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

  1. start an infoblox nios 8.4.4 vmware appliance for testing
  2. clone https://gitlab.com/adrift/terraform-infoblox
  3. build the plugin, install to ~/.terraform/plugins
  4. terraform init
  5. create a set of resources with a terraform apply
  6. terraform destroy
  7. 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

  1. truly deleting network views
  2. running a recycle bin clean when a resource has been moved there as part of delete

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions