Virtual Service creation fails with error : Placement segment not found in Cloud config
search cancel

Virtual Service creation fails with error : Placement segment not found in Cloud config

book

Article ID: 396852

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

The error message "Placement segment not found in Cloud config" is observed when creating a Virtual Service (VS) after enabling NSX Manager Proxy

 

VsVip gets created with wrong T1Lr reference.

 

Environment

TKGs with NSX networking

 

Cause

This can happen due to the following sequence of events : 

  1. svc-nsx-mgmt-proxy namespace is created and proxy-loadbalancer service is deployed.
  2. NCP is yet to realise the T1LR for the namespace, but given the service is already created, AKO triggers VS creation in Avi without T1LR with VRFContext set to global.
  3. Avi incorrectly resolves the global VRFContext to /infra/tier-1s/global during VSVip creation. 
  4. NCP realises the T1 and updates the namespacenetworkinfos CR with the correct T1LR, However, when AKO tries to reconcile the VS with the correct T1LR it fails as it's an immutable field in Avi NSXT cloud configuration. 

Resolution

Workaround: 

Delete the nsx-management-proxy virtual service on Avi and restart the AKO operator on the supervisor. 

Fix: 

Upgrading Avi Load balancer version to 30.2.2 will fix the issue.