Skip to content

Network resources (like subnet) fail to delete #2185

@BobyMCbobs

Description

@BobyMCbobs

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

Affected Resource(s)

  • oci_core_internet_gateway
  • oci_core_route_table
  • oci_core_security_list
  • oci_core_subnet
  • oci_core_vcn

Terraform Configuration Files

https://github.com/sharingio/infra/pull/3/files

Debug Output

2024-09-05T11:23:13.383+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: {
2024-09-05T11:23:13.383+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0:   "code" : "Conflict",
2024-09-05T11:23:13.383+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0:   "message" : "The Subnet ocid1.subnet.oc1.us-sanjose-1.aaaaaaaa6rl5mazewi4auq6nkk5wtih46ei7iphxvaamd3wrfgwcg73jxyea references the service VNIC ocid1.vnic.oc1.us-sanjose-1.abzwuljrfbvcrycpco53w73cnxvivllln3lnpsqdvc3dxoa2jr6keahusuta. You must remove the reference to proceed with this operation."
2024-09-05T11:23:13.383+1200 [DEBUG] provider.terraform-provider-oci_v6.7.0: }

Expected Behavior

Resources should all cleanly destroyed in order of reverse dependency (subnet depends on VCN)

Actual Behavior

Destroy is stuck on deleting subnets indefinitely.

Steps to Reproduce

  1. terraform apply
  2. wait for completion
  3. terraform delete

References

wip: sharingio/infra#3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions