How to correct missing VM to VM Affinity rules in vCenter for TKGI Availability Zones
search cancel

How to correct missing VM to VM Affinity rules in vCenter for TKGI Availability Zones

book

Article ID: 382531

calendar_today

Updated On:

Products

VMware Tanzu Kubernetes Grid Integrated Edition VMware Tanzu Application Service

Issue/Introduction

  •  VM placement for TKGI nodes does not adhere to the AZ configurations in Bosh Director.
  • When checking vCenter, the VM-VM Affinity rule associating VM's to hosts in the AZ is missing.

 

Environment

This might occur on any Bosh managed deployment built on vCenter.

Cause

In certain scenarios, the VM-VM Affinity rules created by Bosh may be removed from vCenter. If these rules are removed, Bosh will not automatically add them back.

Resolution

This problem can be resolved by manually creating a VM-VM Affinity rule with the name of the AZ, the type of rule, and _vm_group_rule at the end. Example for a MUST rule that matches Bosh named Availability Zone "US-TKG-AZ1":

 

US-TKG-AZ1MUST_vm_group_rule

 

If this is a SHOULD rule in Bosh, replace MUST with SHOULD.