When attempting to create Anti-Affinity rules in Cloud Director 10.3x versions:
One or more exceptions have occurred - Internal Server Error
Unable to create Anti Affinity rules in Cloud Director for auto imported virtual machines.
Error message while creation of AntiAffinity/Affinity rules in cloud director show:
Internal Server Error - Failed to configure drs Rule id <Rule id> in cluster ManagedObjectReference: type = ClusterComputeResource, value = domain-######, serverGuid = null
Conflicting anti-affinity rules in vCenter are blocking the placement engine.
These rules were likely remnants from a VNF termination process preceding the upgrade activity.
Cloud Director creates drsShellVm to ensure affinity rules are created
This is a known issue affecting VMware Cloud Director 10.3.x versions.
The issue is resolved in VMware Cloud Director 10.4, available at Broadcom Downloads.
If you dont see the rule in vcd UI affinity rule and you see the rule in vcenter server, perform the following: