Error: "Unable to deploy network" when powering on VM
search cancel

Error: "Unable to deploy network" when powering on VM

book

Article ID: 379499

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Unable to deploy network "Network_Name"
  • Error stack includes "com.vmware.vcloud.net.InadequateNetworkBackingException: Network Pool assigned to this VDC does not have any more available networks."
  • The network pool indicates there is consumption when all VMs in this OvDC are powered off. 

Environment

  • 10.x

Cause

This is caused by stale database entries in the network_backing table of the vCloud Director database.

Resolution

0. Take a backup of the vCloud Director database


1. Check the Network Pool assigned to this OvDC from the vCD Provider UI. 

2. Query network_pool to grab the id for this network pool.

# select * from network_pool where name='network_pool_name';

3. Query real_network_backing with the network_pool id. 

# select * from real_network_backing where where rnet_id in (select id from real_network where pool_id='network_pool id');

4. Query the network_backing with the network_pool id.

# select * from network_backing where pool_id='network_pool id';

5. Update the network_backing to set the rnet_id to null. This will release the pool consumption to 0 to allow us to deploy networks for this vapp. 

# UPDATE network_backing set rnet_id=NULL where pool_id='network_pool id';


6. Re-attempt VM power On.