In VMware Cloud Director, enabling an affinity rule fail with the following error message:
VMware Cloud Director 10.x
This occurs when the CPU reservation or resource guarantee settings at the Org VDC level are overly strict, limiting the placement engine’s ability to find suitable resources. In such cases, a high CPU reservation (e.g., 18000 MHz) and a high resource guarantee (e.g., 75%) may be configured at the Org VDC level, while no CPU reservations are set at the individual VM level.
Additionally, if the cluster contains a small number of hosts (e.g., two), placement flexibility is further reduced. These factors collectively prevent the placement engine from satisfying the affinity and compute requirements, resulting in the reported error.
To resolve the issue:
Reduce the CPU resource guarantee in the Org VDC settings to around 60% or lower.
Set the CPU quota to "Unlimited" within the Org VDC.
Ensure these changes are made within VMware Cloud Director, not directly on the vCenter Server.
After making these adjustments, re-enable the affinity rule.
Once the CPU constraints are relaxed, the placement engine should be able to successfully deploy VMs in compliance with the affinity rule.
For more details, please see: Understanding Allocation Models in VMware Cloud Director