You can place instances using OpenStack server groups with an affinity or anti-affinity policy. Affinity indicates that all instances in the group must placed on the same host, and anti-affinity indicates that no instances in the group can be placed on the same host.
Affinity and anti-affinity policies cannot determine the specific ESXi host on which instances are placed. These policies only control whether instances are placed on the same hosts as other instances in a server group. To place instances on specific hosts, see Use DRS to Control OpenStack Instance Placement.
Prerequisites
Verify that the intended filter configuration does not conflict with any existing administrative configuration, such as DRS rules that manage instance placement on hosts.
Procedure
What to do next
Confirm that the affinity rules and instances are configured correctly. In vCenter Server, select the compute cluster, open the Configure tab, and click VM/Host Rules.