top of page

v2t migration cleanup failed with an error "Failed to delete Org VDC networks"

  • sicnarflatosa
  • Feb 28, 2024
  • 1 min read

At this time the nsx v2t migration is completed and I'm running the final touch which is cleaning up the source Org VDC and I encounter the below issue.


Here is the actual error: Error: 2023-07-24 08:14:16,685 [vcdNSXMigratorCleanup]:[run]:230 [ERROR] [Org Name]| Failed to delete Org VDC networks ['VLANID_1350'] - as it is in use


Moving forward with the v2t cleanup we need to fix the issue first. Today I will share this to you :)


Steps:

  • First get the network lnet_id to get that Login to Provider vCD > Cloud Resource > External Network > Click the specific network in questioned

  • In this screen capture we can see the network lnet_id. Take note of that


Note: We need to manually cleaned-up the referenced network entries from DB post taking the database backup.


  • SSH Primary Cell, login as a root

  • Type "sudo -su postgress psql vcloud"

  • Type \x so that you have good display

  • Here are the commands run to clean-up the db

  • Type delete from network_interface where lnet_id = 'f4b6151a-510a-4958-950b-79053eb2836a'

  • Type delete from logical_network where name = 'VLANID_1350'

  • Try to re-run the nsx migration tool to cleanup the source Org VDC

  • Post which the migration cleanup run successfully as expected


Note: This is my personal and owned experience that I love to share in the VMware Community. I hope you appreciate it, thank you

Recent Posts

See All
Can't delete vApp and VM

Error: [ bfe374cf-fd73-4076-86da-e842ba50b13a ] No row with the given identifier exists: [com.vmware.vcloud.common.model.logicalresource....

 
 
 

1 Comment


emanuele.roserba
Oct 09, 2024

Hi, isn't quicker using the network ID you gather, to delete the network using the integrated APIs swagger portal?

Like

©2022 by FLATOSA. Proudly created with Wix.com

bottom of page