VCN Cannot Be Deleted Due To An Orphan VNIC

(Doc ID 2370074.1)

Last updated on MARCH 16, 2018

Applies to:

Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Goal

After creating a Kubernetes cluster with Terraform-Kubernetes-Installer, the destroy failed with 2 errors:


Attempts to delete the VCN from cloud portal returns the following error:

The VCN cannot be deleted because there are associated resources in one or more compartments that you do not have access to.

(IncorrectState - The Subnet ocid1.subnet.oc1.iad<blank> references the VNIC ocid1.vnic.oc1.iad.<blank>.

You must remove the reference to proceed with this operation.)
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms