Error "Load Balancer Cloud is not in ready state" when enabling load balancer for Edge Gateway in VMware Cloud Director
search cancel

Error "Load Balancer Cloud is not in ready state" when enabling load balancer for Edge Gateway in VMware Cloud Director

book

Article ID: 378824

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Fails to enable load balancer on the edge gateway for a tenant.
  • Navigate to Tenant UI > Org VDC > Networking > Edges > Edge Gateway > Load Balancer > General Settings > Edit > Toggle the Active Switch, it fails with the below error:

Load Balancer Cloud is not in ready state when enabling load balancer for Edge Gateway xxxxxxxx with Tier-1 xxxxxxxxxxxxxxxxxxxxxxxxx. Cloud has state CLOUD_STATE_PLACEMENT_READY and reason: .- VrfContext is not ready yet for Edge Gateway.

  • Under /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, you see messages similar to:

com.vmware.vcloud.api.presentation.service.InternalServerErrorException: Load Balancer Cloud is not in ready state when enabling load balancer for Edge Gateway xxxxxxxx with Tier-1 xxxxxxxxxxxxxxxxxxxxxxxxx. Cloud has state CLOUD_STATE_PLACEMENT_READY and reason: .
 at com.vmware.vcloud.networking.model.edge.nsxt.services.loadbalancer.NsxTEdgeLoadBalancer.waitForCloudReadyStateAndReturnVrfContext(NsxTEdgeLoadBalancer.java:570)
 at com.vmware.vcloud.networking.model.edge.nsxt.services.loadbalancer.NsxTEdgeLoadBalancer.registerGatewayAndLoadBalancerServiceNetworkOnNsxAlbCloud(NsxTEdgeLoadBalancer.java:546)

Caused by: com.vmware.vcloud.common.network.NsxAlbApiException: VrfContext is not ready yet for Edge Gateway xxxxxxxx with Tier-1 xxxxxxxxxxxxxxxxxxxxxxxxx.

  • On the NSX ALB -> Operations -> All Events, you would see the following:

error_message: "Cannot delete, object is referred by: ['Pool VCD-LoadBalancer-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx']"

Environment

VMware Cloud Director 10.x

VMware Avi Load Balancer

Cause

This issue occurs when the pool is not being used but still referred by a vrf context because of which the Load balancer fails to enable on the edge gateway from the VCD UI.

Resolution

  1. Browse to the VMware Avi Load Balancer UI.
  2. Click on the Application tab and go to Pools.
  3. Select the Pool name identified in the error message.
  4. Delete the pool if not in use.
  5. Once completed, try enabling the Load balancer on the Edge gateway via the VCD UI.