Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to terminate a subnet on Oracle Cloud

I am trying to terminate a subnet on oracle cloud but I get this issue:

The Subnet ocid1.subnet.oc1.iad.aaaaaaaaxzhssdvwh4pc2pk7uwpyokeluklqkdqcjnsib7idmdp7wkh7o5iq references the VNIC ocid1.vnic.oc1.iad.abuwcljs2ggk7yk4fpvvytdt74ya7wolg3xwoz4nauryrifd3dl4t4cfbonq. You must remove the reference to proceed with this operation.

I haven't been able to find out how to remove the VNIC reference. Thx

oracle cloud vcn issue

like image 205
tojumikie Avatar asked Oct 30 '25 15:10

tojumikie


1 Answers

FINALLY FIGURED IT OUT

I have figured it out. The disadvantage of using the free tier of Oracle Cloud that I am on is that you don't get any support from Oracle.

steps taken to solve the issue:

  1. delete/terminate the internet gateway associated with the Virtual Cloud Network
  2. also delete/terminate the service gateway associated with the VCN/Virtual Cloud Network
  3. terminate the NAT Gateway
  4. remove security lists (you can leave the default security list on)
  5. remove route tables (default route table can stay on)
  6. terminate the load balancer associated with the subnet
  7. NOW you can terminate the subnet
  8. finally, terminate the VCN

helpful links: (these links will help but you might have to figure some of it out if you set up your VCN differently than how it is shown in the docs. https://docs.oracle.com/en-us/iaas/Content/Network/Troubleshoot/subnetdelete.htm https://docs.oracle.com/en-us/iaas/Content/File/Troubleshooting/orphanedmounttarget.htm#Cannot_Delete_VCN_Mount_Target_VNIC_Still_Attached

like image 191
tojumikie Avatar answered Nov 01 '25 13:11

tojumikie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!